X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2F3dgfx.h;h=77104596d186bd7758900625a8ea72f618fb79c3;hb=1442212ba0ff24b868dd29facc2278a26c8a9a18;hp=8708e211e6d6cbe7c55b883d7fed766235145121;hpb=1bd8af3c3c9ec41903590d6ad24ff6313a5cc19b;p=dosdemo diff --git a/src/3dgfx.h b/src/3dgfx.h index 8708e21..7710459 100644 --- a/src/3dgfx.h +++ b/src/3dgfx.h @@ -7,7 +7,7 @@ struct g3d_vertex { float x, y, z, w; float nx, ny, nz; float u, v; - unsigned char r, g, b; + unsigned char r, g, b, a; }; enum { @@ -19,14 +19,15 @@ enum { /* g3d_enable/g3d_disable bits */ enum { - G3D_CULL_FACE = 1, - G3D_DEPTH_TEST = 2, /* XXX not implemented */ - G3D_LIGHTING = 4, - G3D_LIGHT0 = 8, - G3D_LIGHT1 = 16, - G3D_LIGHT2 = 32, - G3D_LIGHT3 = 64, - G3D_TEXTURE = 128, + G3D_CULL_FACE = 0x0001, + G3D_DEPTH_TEST = 0x0002, /* XXX not implemented */ + G3D_LIGHTING = 0x0004, + G3D_LIGHT0 = 0x0008, + G3D_LIGHT1 = 0x0010, + G3D_LIGHT2 = 0x0020, + G3D_LIGHT3 = 0x0040, + G3D_TEXTURE = 0x0080, + G3D_BLEND = 0x0100, G3D_ALL = 0x7fffffff }; @@ -97,4 +98,12 @@ void g3d_draw(int prim, const struct g3d_vertex *varr, int varr_size); void g3d_draw_indexed(int prim, const struct g3d_vertex *varr, int varr_size, const int16_t *iarr, int iarr_size); +void g3d_begin(int prim); +void g3d_end(void); +void g3d_vertex(float x, float y, float z); +void g3d_normal(float x, float y, float z); +void g3d_color(float r, float g, float b); +void g3d_color4(float r, float g, float b, float a); +void g3d_texcoord(float u, float v); + #endif /* THREEDGFX_H_ */