]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
most of the framework for hardware accelerated transforms is back, just the actual...
[xonotic/darkplaces.git] / gl_backend.h
index 2efbd9a0ff90a38861a2a2d06d7c1ee8d45cbc9c..51c6a12f8a59a0d26ed77bcbe2e4feafe2a91c15 100644 (file)
@@ -6,28 +6,6 @@
 
 extern int c_meshtris, c_meshs, c_transtris, c_transmeshs;
 
-typedef struct
-{
-       int transparent;
-       int depthwrite; // force depth writing enabled even if polygon is not opaque
-       int depthdisable; // disable depth read/write entirely
-       int blendfunc1;
-       int blendfunc2;
-       int numtriangles;
-       int *index;
-       int numverts;
-       float *vertex;
-       int vertexstep;
-       float *color;
-       int colorstep;
-       float cr, cg, cb, ca; // if color is NULL, these are used for all vertices
-       int tex[MAX_TEXTUREUNITS];
-       float *texcoords[MAX_TEXTUREUNITS];
-       int texcoordstep[MAX_TEXTUREUNITS];
-       int texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
-}
-rmeshinfo_t;
-
 typedef struct
 {
        //input to R_Mesh_Draw_GetBuffer
@@ -40,6 +18,8 @@ typedef struct
        int numverts;
        int tex[MAX_TEXTUREUNITS];
        int texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
+       // model to world transform matrix
+       matrix4x4_t matrix;
 
        // output
        int *index;