]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.h
added sv_clmovement_* cvars to disable movement prediction of players, or disable...
[xonotic/darkplaces.git] / gl_backend.h
index 393d805a72433a0ce455a8cdaa97ff537d417a18..9a9be6762787b40249358d7965d0e8a5c4739d7c 100644 (file)
@@ -17,9 +17,9 @@ void GL_SetupView_Mode_Ortho(double x1, double y1, double x2, double y2, double
 void GL_BlendFunc(int blendfunc1, int blendfunc2);
 void GL_DepthMask(int state);
 void GL_DepthTest(int state);
+void GL_AlphaTest(int state);
 void GL_ColorMask(int r, int g, int b, int a);
 void GL_Color(float cr, float cg, float cb, float ca);
-void GL_ShowTrisColor(float cr, float cg, float cb, float ca);
 void GL_TransformToScreen(const vec4_t in, vec4_t out);
 void GL_LockArrays(int first, int count);
 void GL_ActiveTexture(unsigned int num);
@@ -36,7 +36,7 @@ extern cvar_t gl_mesh_copyarrays;
 extern cvar_t gl_paranoid;
 extern cvar_t gl_printcheckerror;
 
-//input to R_Mesh_State
+//input to R_Mesh_TextureState
 typedef struct rmeshstate_s
 {
        // textures
@@ -54,10 +54,6 @@ typedef struct rmeshstate_s
        // pointers
        const float *pointer_texcoord[MAX_TEXTUREUNITS]; // 2D
        const float *pointer_texcoord3f[MAX_TEXTUREUNITS]; // 3D
-
-       // other state set by this
-       const float *pointer_vertex;
-       const float *pointer_color;
 }
 rmeshstate_t;
 
@@ -91,8 +87,10 @@ void R_Mesh_TexBindCubeMap(unsigned int unitnum, int texnum);
 void R_Mesh_TexMatrix(unsigned int unitnum, const matrix4x4_t *matrix);
 // sets the combine state for a texenv unit
 void R_Mesh_TexCombine(unsigned int unitnum, int combinergb, int combinealpha, int rgbscale, int alphascale);
-// set up the requested entire rendering state
-void R_Mesh_State(const rmeshstate_t *m);
+// set up the requested texture state
+void R_Mesh_TextureState(const rmeshstate_t *m);
+// set up a blank texture state (faster/easier specialized version of R_Mesh_TextureState)
+void R_Mesh_ResetTextureState(void);
 
 // renders a mesh
 void R_Mesh_Draw(int firstvertex, int numvertices, int numtriangles, const int *elements);
@@ -108,38 +106,5 @@ void SCR_UpdateScreen(void);
 // invoke refresh of loading plaque (nothing else seen)
 void SCR_UpdateLoadingScreen(void);
 
-#if 0
-// public structure
-typedef struct rcachearrayrequest_s
-{
-       // for use by the code that is requesting the array, these are not
-       // directly used but merely compared to determine if cache items are
-       // identical
-       const void *id_pointer1;
-       const void *id_pointer2;
-       const void *id_pointer3;
-       int id_number1;
-       int id_number2;
-       int id_number3;
-       // size of array data
-       int data_size;
-       // array data pointer
-       void *data;
-}
-rcachearrayrequest_t;
-
-int R_Mesh_CacheArray(rcachearrayrequest_t *r);
-#endif
-
-extern float varray_vertex3f[65536*3];
-extern float varray_svector3f[65536*3];
-extern float varray_tvector3f[65536*3];
-extern float varray_normal3f[65536*3];
-extern float varray_color4f[65536*4];
-extern float varray_texcoord2f[4][65536*2];
-extern float varray_texcoord3f[4][65536*3];
-extern int earray_element3i[65536];
-extern float varray_vertex3f2[65536*3];
-
 #endif