-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgfx.cpp
More file actions
23 lines (18 loc) · 876 Bytes
/
gfx.cpp
File metadata and controls
23 lines (18 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define FONT_SIZE_SMALL 1
#define FONT_SIZE_LARGE 3
class GFX
{
public:
void print(int screen, int x, int y, const char* text, int color, int font_size);
void print(int screen, int x, int y, const char* text, int color, int font_size, int transparency);
};
void GFX::print(int screen, int x, int y, const char* text, int color, int font_size)
{
// PA_8bitText (u8 screen, s16 basex, s16 basey, s16 maxx, s16 maxy, char *text, u8 color, u8 size, u8 transp, s32 limit)
PA_8bitText(screen, x, y, 255, 40, (char *)text, color, font_size, 0, 100);
}
void GFX::print(int screen, int x, int y, const char* text, int color, int font_size, int transparency)
{
// PA_8bitText (u8 screen, s16 basex, s16 basey, s16 maxx, s16 maxy, char *text, u8 color, u8 size, u8 transp, s32 limit)
PA_8bitText(screen, x, y, 255, 40, (char *)text, color, font_size, transparency, 100);
}