X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2F3dgfx.h;h=2a82284b7a3dfcccebf1d33f6f4b725870c3ac7c;hp=77104596d186bd7758900625a8ea72f618fb79c3;hb=45f6f46fe758d15aafccdb69ae837fc7d84ee466;hpb=1442212ba0ff24b868dd29facc2278a26c8a9a18 diff --git a/src/3dgfx.h b/src/3dgfx.h index 7710459..2a82284 100644 --- a/src/3dgfx.h +++ b/src/3dgfx.h @@ -28,6 +28,7 @@ enum { G3D_LIGHT3 = 0x0040, G3D_TEXTURE = 0x0080, G3D_BLEND = 0x0100, + G3D_TEXTURE_GEN = 0x0200, G3D_ALL = 0x7fffffff }; @@ -81,6 +82,8 @@ void g3d_ortho(float left, float right, float bottom, float top, float znear, fl void g3d_frustum(float left, float right, float bottom, float top, float znear, float zfar); void g3d_perspective(float vfov, float aspect, float znear, float zfar); +/* returns pointer to the *internal* matrix, and if argument m is not null, + * also copies the internal matrix there. */ const float *g3d_get_matrix(int which, float *m); void g3d_light_pos(int idx, float x, float y, float z); @@ -96,14 +99,16 @@ void g3d_set_texture(int xsz, int ysz, void *pixels); 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); + const uint16_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_color3b(unsigned char r, unsigned char g, unsigned char b); +void g3d_color4b(unsigned char r, unsigned char g, unsigned char b, unsigned char a); +void g3d_color3f(float r, float g, float b); +void g3d_color4f(float r, float g, float b, float a); void g3d_texcoord(float u, float v); #endif /* THREEDGFX_H_ */