]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
cleaned up R_RenderView setup code a bit, and shuffled SCR_CalcRefdef stuff to SCR_Up...
[xonotic/darkplaces.git] / gl_backend.h
index e8918dc3f9f4c15c57b8b3d873a02776f639b0a3..cf828683c9848c68cddf2353d2249c44141b233b 100644 (file)
@@ -7,9 +7,8 @@
 #define POLYGONELEMENTS_MAXPOINTS 258
 extern int polygonelements[768];
 
-void GL_SetupView_ViewPort(int x, int y, int width, int height);
 void GL_SetupView_Orientation_Identity(void);
-void GL_SetupView_Orientation_FromEntity(vec3_t origin, vec3_t angles);
+void GL_SetupView_Orientation_FromEntity(matrix4x4_t *matrix);
 void GL_SetupView_Mode_Perspective(double fovx, double fovy, double zNear, double zFar);
 void GL_SetupView_Mode_PerspectiveInfiniteFarClip(double fovx, double fovy, double zNear);
 void GL_SetupView_Mode_Ortho(double x1, double y1, double x2, double y2, double zNear, double zFar);
@@ -23,6 +22,8 @@ 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(int state);        // AK for DRAWQUEUE_(RE)SETCLIP
 
 extern cvar_t gl_lockarrays;
 extern cvar_t gl_mesh_copyarrays;
@@ -49,10 +50,6 @@ typedef struct
 }
 rmeshstate_t;
 
-// overbright rendering scale for the current state
-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);
 
@@ -74,6 +71,8 @@ void R_Mesh_State_Texture(const rmeshstate_t *m);
 
 // renders a mesh
 void R_Mesh_Draw(int numverts, int numtriangles, const int *elements);
+// renders a mesh as lines
+void R_Mesh_Draw_ShowTris(int numverts, int numtriangles, int *elements);
 
 // saves a section of the rendered frame to a .tga or .jpg file
 qboolean SCR_ScreenShot(char *filename, int x, int y, int width, int height, qboolean jpeg);
@@ -108,6 +107,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