2 #define MAX_TEXTUREUNITS 4
9 int depthwrite; // force depth writing enabled even if polygon is not opaque
19 // if color is NULL, these are used for all vertices
21 int tex[MAX_TEXTUREUNITS];
22 float *texcoords[MAX_TEXTUREUNITS];
23 int texcoordstep[MAX_TEXTUREUNITS];
24 float texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
28 // adds console variables and registers the render module (only call from GL_Init)
29 void gl_backend_init(void);
30 // sets up mesh renderer for the frame
31 void R_Mesh_Clear(void);
32 // renders queued meshs
33 void R_Mesh_Render(void);
34 // queues a mesh to be rendered (invokes Render if queue is full)
35 void R_Mesh_Draw(const rmeshinfo_t *m);
36 // renders the queued transparent meshs
37 void R_Mesh_AddTransparent(void);
38 // ease-of-use frontend to R_Mesh_Draw, set up meshinfo, except for index and numtriangles and numverts, then call this
39 void R_Mesh_DrawPolygon(rmeshinfo_t *m, int numverts);
40 // ease-of-use frontend to R_Mesh_Draw for particles, no speed gain
41 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);