]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
Added in_mouse_x and in_mouse_y, which contain the rel. coords of the mouse.
[xonotic/darkplaces.git] / gl_backend.h
index e8918dc3f9f4c15c57b8b3d873a02776f639b0a3..199e064a5bb62c19136ed6571ddaedf9bab42d8b 100644 (file)
@@ -23,6 +23,9 @@ void GL_TransformToScreen(const vec4_t in, vec4_t out);
 void GL_LockArrays(int first, int count);
 void GL_ActiveTexture(int num);
 void GL_ClientActiveTexture(int num);
+void GL_Scissor(int x, int y, int width, int height); // AK for DRAWQUEUE_SETCLIP
+void GL_ScissorTest(qboolean state);   // AK for DRAWQUEUE_(RE)SETCLIP
 
 extern cvar_t gl_lockarrays;
 extern cvar_t gl_mesh_copyarrays;
@@ -49,9 +52,8 @@ typedef struct
 }
 rmeshstate_t;
 
-// overbright rendering scale for the current state
+// lightmap overbright scaling
 extern int r_lightmapscalebit;
-extern float r_colorscale;
 
 // adds console variables and registers the render module (only call from GL_Init)
 void gl_backend_init(void);
@@ -108,6 +110,7 @@ extern float varray_color4f[65536*4];
 extern float varray_texcoord2f[4][65536*2];
 extern float varray_texcoord3f[4][65536*3];
 extern float varray_normal3f[65536*3];
+extern int earray_element3i[65536];
 
 #endif