debugging the BSP
[dosdemo] / src / 3dgfx.h
index 94884ca..2a82284 100644 (file)
@@ -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);