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