eobish

diff src/dos/vbegfx.h @ 7:6a350c554e46

started DOS port
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 15:49:14 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/dos/vbegfx.h	Mon Jan 19 15:49:14 2015 +0200
     1.3 @@ -0,0 +1,24 @@
     1.4 +#ifndef VBEGFX_H_
     1.5 +#define VBEGFX_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 +void wait_vsync(void);
    1.22 +
    1.23 +#ifdef __cplusplus
    1.24 +}
    1.25 +#endif
    1.26 +
    1.27 +#endif	/* VBEGFX_H_ */