]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
GL_SetupView_* functions added, they replace most of R_Mesh_Start's functionality...
[xonotic/darkplaces.git] / gl_backend.h
index b61093fb599ef6e4e1b07ff85955f7746cb4736e..3e1a17c29a4de031159a38dc5ee7caa47e689753 100644 (file)
@@ -9,6 +9,14 @@ extern int polygonelements[768];
 
 void GL_DrawRangeElements(int firstvert, int endvert, int indexcount, int *index);
 
+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_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);
+
 extern cvar_t gl_lockarrays;
 
 extern int c_meshelements, c_meshs;
@@ -37,16 +45,12 @@ extern int mesh_maxverts;
 void gl_backend_init(void);
 
 // starts mesh rendering for the frame
-void R_Mesh_Start(float farclip);
+void R_Mesh_Start(void);
 
 // ends mesh rendering for the frame
 // (only valid after R_Mesh_Start)
 void R_Mesh_Finish(void);
 
-// clears depth buffer, used for masked sky rendering
-// (only valid between R_Mesh_Start and R_Mesh_Finish)
-void R_Mesh_ClearDepth(void);
-
 // sets up the requested transform matrix
 void R_Mesh_Matrix(const matrix4x4_t *matrix);