SA-MP/saco/fontrender.h

32 lines
676 B
C
Raw Normal View History

#pragma once
class CFontRender
{
public:
//char _gap0[40];
ID3DXFontHook *field_0;
ID3DXFontHook *field_4;
ID3DXFont *field_8;
ID3DXFont *field_C;
ID3DXFont *field_10;
ID3DXSprite *field_14;
IDirect3DDevice9 *m_pD3DDevice;
char *field_1C;
LONG field_20;
LONG field_24;
2024-03-22 23:47:43 +08:00
CFontRender(IDirect3DDevice9* pD3DDevice);
~CFontRender();
void CreateFonts();
2024-03-22 23:47:43 +08:00
void DeleteDeviceObjects();
void RestoreDeviceObjects();
SIZE MeasureText(char * szString, DWORD dwFormat = DT_LEFT);
SIZE MeasureText2(char * szString, DWORD dwFormat = DT_LEFT);
2024-03-22 23:47:43 +08:00
void RenderText(ID3DXSprite * pSprite, char * sz, RECT rect, DWORD dwColor, BOOL bShadowed = TRUE);
};