blob: 00f78154ba774f98a3f6e9131d9ffef1731a35a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef D9DW_TEXT_H_INCLUDED
#define D9DW_TEXT_H_INCLUDED
#include <d3d9.h>
#include <d3dx9.h>
#include <stdbool.h>
class D9DW_Text
{
private:
static bool bInit;
static ID3DXFont* m_pFont;
public:
bool isInitialized(void) {
return this->bInit;
}
void Create(IDirect3DDevice9* pDev);
void Release(void);
void DrawText(int x, int y, UINT32 rgb_alpha, const char *s_text, va_list p_va);
void DrawText(int x, int y, UINT32 rgb_alpha, const char *s_text, ...)
{
va_list va;
va_start(va, s_text);
this->DrawText(x, y, rgb_alpha, s_text, va);
va_end(va);
}
};
#endif // D9DW_TEXT_H_INCLUDED
|