-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgraphics.h
37 lines (29 loc) · 828 Bytes
/
graphics.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
34
35
36
37
#pragma once
typedef unsigned char u8;
typedef unsigned u32;
typedef u32 Color;
// allocates memory for framebuffer and initializes it
void psvDebugScreenInit();
// clears screen with a given color
void psvDebugScreenClear(int bg_color);
// printf to the screen
void psvDebugScreenPrintf(const char *format, ...);
// set foreground (text) color
Color psvDebugScreenSetFgColor(Color color);
// set background color
Color psvDebugScreenSetBgColor(Color color);
void *psvDebugScreenGetVram();
int psvDebugScreenGetX();
int psvDebugScreenGetY();
void psvDebugScreenSetXY();
enum {
COLOR_CYAN = 0xFFFFFF00,
COLOR_WHITE = 0xFFFFFFFF,
COLOR_BLACK = 0xFF000000,
COLOR_RED = 0xFF0000FF,
COLOR_YELLOW = 0xFF00FFFF,
COLOR_GREY = 0xFF808080,
COLOR_GREEN = 0xFF00FF00,
COLOR_BLUE = 0xFFFF0000,
COLOR_PURPLE = 0xFFFF00FF,
};