rayzor
diff src/gfx.h @ 0:2a5340a6eee4
rayzor first commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 05 Apr 2014 08:46:27 +0300 |
parents | |
children | 5fcf72837b69 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gfx.h Sat Apr 05 08:46:27 2014 +0300 1.3 @@ -0,0 +1,22 @@ 1.4 +#ifndef GFX_H_ 1.5 +#define GFX_H_ 1.6 + 1.7 +#ifdef __cplusplus 1.8 +extern "C" { 1.9 +#endif 1.10 + 1.11 +void *set_video_mode(int xsz, int ysz, int bpp); 1.12 +int set_text_mode(void); 1.13 + 1.14 +int get_color_depth(void); 1.15 +int get_color_bits(int *rbits, int *gbits, int *bbits); 1.16 +int get_color_shift(int *rshift, int *gshift, int *bshift); 1.17 +int get_color_mask(unsigned int *rmask, unsigned int *gmask, unsigned int *bmask); 1.18 + 1.19 +void set_palette(int idx, int r, int g, int b); 1.20 + 1.21 +#ifdef __cplusplus 1.22 +} 1.23 +#endif 1.24 + 1.25 +#endif /* GFX_H_ */