void createFont(IDirect3DDevice8* pDevice)
{
LOGFONT log_font = {
50, //height
0, //width;
0, // lfEscapement;
0, //lfOrientation;
FW_BOLD, // lfWeight;
FALSE, // lfItalic;
FALSE, // lfUnderline;
FALSE, // lfStrikeOut;
DEFAULT_CHARSET, // lfCharSet;
OUT_DEFAULT_PRECIS, //lfOutPrecision;
CLIP_DEFAULT_PRECIS, // lfClipPrecision;
ANTIALIASED_QUALITY,// lfQuality;
DEFAULT_PITCH,// lfPitchAndFamily;
"Tahoma"// lfFaceName[LF_FACESIZE];
};
// buraya aldanmayın, takip etmek amaçlı yaptım qD3DXCreateFontIndirect 0 donuyor değer burada
AnsiString ps=(DWORD)qD3DXCreateFontIndirect;
AnsiString psx =(DWORD)qDirect3DCreate8 ;
[COLOR=rgb(226, 80, 65)][B] MessageBox(0,psx.c_str() ,0,0); // buraya değer geliyor[/B]
[B] MessageBox(0,ps.c_str() ,0,0); // bu deger 0 dönmekte[/B][/COLOR]
if (qD3DXCreateFontIndirect(pDevice, &log_font, &pFont) != D3D_OK)
{
//console("D3DXCreateFontIndirect error!");
}
}