Original Post
Hey,
i am trying to draw rotated text. I was searching now for like 20 minutes for a tutorial how to draw rotated text. I can only draw non-rotated text for now.
Here's my drawing function for non-rotated text:
Can I modify that function or do I need to make a new one?
Thanks
Tuisto
i am trying to draw rotated text. I was searching now for like 20 minutes for a tutorial how to draw rotated text. I can only draw non-rotated text for now.
Here's my drawing function for non-rotated text:
void DispText( LPCWSTR lpText, long lXPos, long lYPos, D3DCOLOR color, bool bBold, bool bItalic, LPDIRECT3DDEVICE9 Device ){ LPD3DXFONT lpFont; RECT rect; UINT unWeight; rect.left = lXPos; rect.right = 800; rect.top = lYPos; rect.bottom = rect.top + 25; if( bBold == true ) unWeight = FW_BOLD; else unWeight = FW_NORMAL; D3DXCreateFont( Device, 20, 0, unWeight, 0, bItalic, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, TEXT("Courier New"), &lpFont ); lpFont->DrawText( NULL, lpText, -1, ▭, 0, color ); lpFont->Release(); lpFont = NULL;}Can I modify that function or do I need to make a new one?
Thanks
Tuisto