-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTableFont.h
33 lines (26 loc) · 1.2 KB
/
TableFont.h
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
//==============================================================================
// cTableFont.h
//==============================================================================
//==============================================================================
#ifndef CTABLEFONT_H
#define CTABLEFONT_H
//==============================================================================
//==============================================================================
class cTableFont
{
public:
cTableFont();
void drawString(bool bCenter, int x, int y, int r, int g, int b, const char *pInput, ...);
int iGetLength(const char *pInput, ...);
int iGetWidth(const char *pInput, ...);
private:
void pixel(int x, int y, int w, int h, int r, int g, int b, int a, bool bBlend=false);
void drawChar(const char *pChar);
bool bParseTableFont(const char *pFileName);
bool bTable[255][10][15];
};
extern cTableFont gFont;
//==============================================================================
//==============================================================================
#endif
//==============================================================================