X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2F3dgfx.h;h=2a82284b7a3dfcccebf1d33f6f4b725870c3ac7c;hp=94884ca23ab3d7cfac136c68e903130c71b0635b;hb=45f6f46fe758d15aafccdb69ae837fc7d84ee466;hpb=8cee0ffb00cce3d81487f1161286ac299db7d044 diff --git a/src/3dgfx.h b/src/3dgfx.h index 94884ca..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,7 +99,7 @@ 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);