]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
SV_PointContents removed (all calls replaced with Mod_PointInLeaf, which is faster)
[xonotic/darkplaces.git] / gl_backend.h
index 0082501c2c8989848fdc01c95253628128983a03..9476312b9a32feda9221ff0bec01e9b7116ee840 100644 (file)
@@ -1,4 +1,7 @@
 
+#ifndef GL_BACKEND_H
+#define GL_BACKEND_H
+
 #define MAX_TEXTUREUNITS 8
 
 extern int c_meshtris, c_meshs, c_transtris, c_transmeshs;
@@ -21,7 +24,7 @@ typedef struct
        int tex[MAX_TEXTUREUNITS];
        float *texcoords[MAX_TEXTUREUNITS];
        int texcoordstep[MAX_TEXTUREUNITS];
-       float texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
+       int texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
 }
 rmeshinfo_t;
 
@@ -36,7 +39,7 @@ typedef struct
        int numtriangles;
        int numverts;
        int tex[MAX_TEXTUREUNITS];
-       float texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
+       int texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
 
        // output
        int *index;
@@ -92,3 +95,6 @@ qboolean SCR_ScreenShot(char *filename, int x, int y, int width, int height);
 void R_ClearScreen(void);
 // invoke refresh of frame
 void SCR_UpdateScreen (void);
+
+#endif
+