]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
3d texcoords now must use rmeshstate_t.pointer_texcoord3f instead of pointer_texcoord...
[xonotic/darkplaces.git] / gl_backend.h
index d5940a3722657d9204165d0ad71cfc8873395b0d..343f66b53be5de64d60a96edc790abb655f9670e 100644 (file)
@@ -46,8 +46,11 @@ typedef struct
        int texalphascale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
        int texcombinergb[MAX_TEXTUREUNITS]; // works with or without combine for some operations
        int texcombinealpha[MAX_TEXTUREUNITS]; // does nothing without combine
+       // matrices
+       matrix4x4_t texmatrix[MAX_TEXTUREUNITS];
        // pointers
-       const float *pointer_texcoord[MAX_TEXTUREUNITS];
+       const float *pointer_texcoord[MAX_TEXTUREUNITS]; // 2D
+       const float *pointer_texcoord3f[MAX_TEXTUREUNITS]; // 3D
 
        // other state set by this
        const float *pointer_vertex;
@@ -68,9 +71,6 @@ void R_Mesh_Finish(void);
 // sets up the requested transform matrix
 void R_Mesh_Matrix(const matrix4x4_t *matrix);
 
-// sets up the requested transform matrix
-void R_Mesh_TextureMatrix(int unitnumber, const matrix4x4_t *matrix);
-
 // set up the requested state
 void R_Mesh_State(const rmeshstate_t *m);