X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fgfx.h;h=10d6e0b5aae3190bd27145a2e01c9badc583d332;hp=7e12554a8d56694df1d03f19a653ad60cce747a1;hb=637ca39c29b03bd3a2beb99521753e83c043283f;hpb=62c84af3483abd59e3b6672559b19a9ea17ff14d diff --git a/src/dos/gfx.h b/src/dos/gfx.h index 7e12554..10d6e0b 100644 --- a/src/dos/gfx.h +++ b/src/dos/gfx.h @@ -5,7 +5,7 @@ extern "C" { #endif -void *set_video_mode(int xsz, int ysz, int bpp); +void *set_video_mode(int xsz, int ysz, int bpp, int nbuf); int set_text_mode(void); int get_color_depth(void); @@ -15,6 +15,13 @@ int get_color_mask(unsigned int *rmask, unsigned int *gmask, unsigned int *bmask void set_palette(int idx, int r, int g, int b); +enum { + FLIP_NOW, + FLIP_VBLANK +}; +/* page flip and return pointer to the start of the display area (front buffer) */ +void *page_flip(int vsync); + #ifdef __WATCOMC__ void wait_vsync(void); #pragma aux wait_vsync = \