Well I''m getting back to my D3D engine, and I''m going to use ID3DXFont for text.
LOGFONT LogFont;
// Clears out font''s memory
ZeroMemory(&LogFont, sizeof(LOGFONT));
// Sets the font''s basic parameters
strcpy(LogFont.lfFaceName, "Arial");
LogFont.lfHeight = 12;
// Creates font object and checks if it went ok
if(FAILED(D3DXCreateFontIndirect(Direct3DDevice, &LogFont, &Direct3DFont)))
{
MessageBox(NULL, "Error With Font System", "ERROR", NULL);
return false;
}
there is my initialization function.
Here is my text drawring function
RECT r;
SetRect( &r, x, y, 0, 0 );
Direct3DFont->Begin();
Direct3DFont->DrawText ("HI",-1,&r,DT_CALCRECT,0xFFFFFF);
Direct3DFont->End();
I get nothing. MY device is created without any exceptions (I can render meshes and whatnot) and Direct3DFont is created without failure. So WTF?