X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2F3dgfx%2F3dgfx.h;h=c04863f96c821cd9c3dc49eac6b86be8011aa263;hp=e317fabddf1c9bf1f6d2774eecfca5a8f845327c;hb=650644eccabcdceb974c17d5fd19c0546eb753d3;hpb=57bd2dc519c47f434e3e5acf998fb9c72448cbce diff --git a/src/3dgfx/3dgfx.h b/src/3dgfx/3dgfx.h index e317fab..c04863f 100644 --- a/src/3dgfx/3dgfx.h +++ b/src/3dgfx/3dgfx.h @@ -38,7 +38,7 @@ enum { /* g3d_enable/g3d_disable bits */ enum { G3D_CULL_FACE = 0x000001, - G3D_DEPTH_TEST = 0x000002, /* XXX not implemented */ + G3D_DEPTH_TEST = 0x000002, G3D_LIGHTING = 0x000004, G3D_LIGHT0 = 0x000008, G3D_LIGHT1 = 0x000010, @@ -80,6 +80,12 @@ enum { G3D_NUM_MATRICES }; +/* clear bits */ +enum { + G3D_COLOR_BUFFER_BIT = 1, + G3D_DEPTH_BUFFER_BIT = 2 +}; + int g3d_init(void); void g3d_destroy(void); void g3d_reset(void); @@ -88,6 +94,10 @@ void g3d_framebuffer(int width, int height, void *pixels); void g3d_framebuffer_addr(void *pixels); void g3d_viewport(int x, int y, int w, int h); +void g3d_clear_color(unsigned char r, unsigned char g, unsigned char b); +void g3d_clear_depth(uint16_t zval); +void g3d_clear(unsigned int mask); + void g3d_enable(unsigned int opt); void g3d_disable(unsigned int opt); void g3d_setopt(unsigned int opt, unsigned int mask);