Hello,
How can i obtain the font sprite's dimensions I use to render D3DX fonts?
d3dxFontSprite->Begin(D3DXSPRITE_ALPHABLEND | D3DXSPRITE_SORT_TEXTURE);
d3dxFont->DrawText(d3dxFontSprite, str.c_str(), -1, &rct, 0, getD3DColor(color));
d3dxFontSprite->End();
My goal is to rotate the text about the sprite's center instead of the world origin.
Thanks.
Rotating Text
How can I use the RECT structure after the draw call and text is already rendered?
What I want to do is to be able to rotate text around it's center instead of the origin (0, 0)
Thanks.
What I want to do is to be able to rotate text around it's center instead of the origin (0, 0)
Thanks.
You want:
RECT rct;rct.left = rct.top = rct.right = rct.bottom = 0;d3dxFont->DrawText(NULL, str.c_str(), -1, &rct, DT_CALCRECT, 0);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement