annotate src/gfx.h @ 14:a9a948809c6f
starting the renderer screen, plus misc stuff
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Sun, 13 Apr 2014 08:06:21 +0300 |
parents |
2a5340a6eee4 |
children |
|
rev |
line source |
nuclear@0
|
1 #ifndef GFX_H_
|
nuclear@0
|
2 #define GFX_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 #ifdef __cplusplus
|
nuclear@0
|
5 extern "C" {
|
nuclear@0
|
6 #endif
|
nuclear@0
|
7
|
nuclear@0
|
8 void *set_video_mode(int xsz, int ysz, int bpp);
|
nuclear@0
|
9 int set_text_mode(void);
|
nuclear@0
|
10
|
nuclear@0
|
11 int get_color_depth(void);
|
nuclear@0
|
12 int get_color_bits(int *rbits, int *gbits, int *bbits);
|
nuclear@0
|
13 int get_color_shift(int *rshift, int *gshift, int *bshift);
|
nuclear@0
|
14 int get_color_mask(unsigned int *rmask, unsigned int *gmask, unsigned int *bmask);
|
nuclear@0
|
15
|
nuclear@0
|
16 void set_palette(int idx, int r, int g, int b);
|
nuclear@0
|
17
|
nuclear@5
|
18 void wait_vsync(void);
|
nuclear@5
|
19
|
nuclear@0
|
20 #ifdef __cplusplus
|
nuclear@0
|
21 }
|
nuclear@0
|
22 #endif
|
nuclear@0
|
23
|
nuclear@0
|
24 #endif /* GFX_H_ */
|