]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
bmodel shadow volumes
[xonotic/darkplaces.git] / gl_backend.h
index 3e1a17c29a4de031159a38dc5ee7caa47e689753..6a652013a17ba65ec2061767eb7cd137c3d19f74 100644 (file)
@@ -14,8 +14,8 @@ void GL_SetupView_Orientation_Identity (void);
 void GL_SetupView_Orientation_FromEntity (vec3_t origin, vec3_t angles);
 void GL_SetupView_Mode_Perspective (double aspect, double fovx, double fovy, double zNear, double zFar);
 void GL_SetupView_Mode_Ortho (double x1, double y1, double x2, double y2, double zNear, double zFar);
-void GL_DepthFunc(int value);
-void GL_ClearDepth(void);
+void GL_UseColorArray(void);
+void GL_Color(float cr, float cg, float cb, float ca);
 
 extern cvar_t gl_lockarrays;
 
@@ -28,14 +28,15 @@ typedef struct
        int depthdisable; // disable depth read/write entirely
        int blendfunc1;
        int blendfunc2;
-       int wantoverbright;
+       //int wantoverbright;
        int tex[MAX_TEXTUREUNITS];
        int texrgbscale[MAX_TEXTUREUNITS]; // used only if COMBINE is present
 }
 rmeshstate_t;
 
 // overbright rendering scale for the current state
-extern float mesh_colorscale;
+extern int r_lightmapscalebit;
+extern float r_colorscale;
 extern float *varray_vertex;
 extern float *varray_color;
 extern float *varray_texcoord[MAX_TEXTUREUNITS];
@@ -57,6 +58,12 @@ void R_Mesh_Matrix(const matrix4x4_t *matrix);
 // sets up the requested state
 void R_Mesh_State(const rmeshstate_t *m);
 
+// sets up the requested main state
+void R_Mesh_MainState(const rmeshstate_t *m);
+
+// sets up the requested texture state
+void R_Mesh_TextureState(const rmeshstate_t *m);
+
 // enlarges vertex arrays if they are too small
 #define R_Mesh_ResizeCheck(numverts) if ((numverts) > mesh_maxverts) _R_Mesh_ResizeCheck(numverts);
 void _R_Mesh_ResizeCheck(int numverts);