mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
32 lines
609 B
C++
32 lines
609 B
C++
|
|
#pragma once
|
|
|
|
class CFontRender // size: 40
|
|
{
|
|
private:
|
|
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;
|
|
|
|
public:
|
|
|
|
CFontRender(IDirect3DDevice9* pD3DDevice);
|
|
~CFontRender();
|
|
|
|
void CreateFonts();
|
|
|
|
void DeleteDeviceObjects();
|
|
void RestoreDeviceObjects();
|
|
|
|
SIZE MeasureText(char * szString, DWORD dwFormat = 0);
|
|
|
|
void RenderText(ID3DXSprite * pSprite, char * sz, RECT rect, DWORD dwColor, BOOL bShadowed = TRUE);
|
|
};
|