]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
rearranged r_speeds report a bit, and split up reporting of meshtris into normal...
[xonotic/darkplaces.git] / gl_backend.h
index c9f98d4a6a5481c19639cc527a9b5de447cc5288..6363c5478f6e896fe5a90e063bcc72a8995ca0b7 100644 (file)
@@ -1,12 +1,13 @@
 
 #define MAX_TEXTUREUNITS 4
 
-extern int c_meshtris;
+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;
@@ -37,5 +38,5 @@ void R_Mesh_Draw(const rmeshinfo_t *m);
 void R_Mesh_AddTransparent(void);
 // ease-of-use frontend to R_Mesh_Draw, set up meshinfo, except for index and numtriangles and numverts, then call this
 void R_Mesh_DrawPolygon(rmeshinfo_t *m, int numverts);
-// ease-of-use frontend to R_Mesh_Draw for particles, no speed gain
-void R_Mesh_DrawParticle(vec3_t org, vec3_t right, vec3_t up, vec_t scale, int texnum, float cr, float cg, float cb, float ca, float s1, float t1, float s2, float t2, float fs1, float ft1, float fs2, float ft2);
\ No newline at end of file
+// faster hardwired version of R_Mesh_Draw specifically for decals (has close ties to decal code)
+void R_Mesh_DrawDecal(const rmeshinfo_t *m);