X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=gl_backend.h;h=645aeaf6c13c40cfe0b869e97244d516dbfa01c7;hb=48978ee14d2f77912ad239c5797fc23f12a2fc94;hp=705d2922f5de588f6b4b53dbac2fb456f77f2599;hpb=eab50b35822052aad2a31fece513583600e5941f;p=xonotic%2Fdarkplaces.git diff --git a/gl_backend.h b/gl_backend.h index 705d2922..645aeaf6 100644 --- a/gl_backend.h +++ b/gl_backend.h @@ -16,7 +16,6 @@ void GL_BlendFunc(int blendfunc1, int blendfunc2); void GL_DepthMask(int state); void GL_DepthTest(int state); void GL_ColorMask(int r, int g, int b, int a); -void GL_ColorPointer(const float *p); 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); @@ -47,11 +46,15 @@ typedef struct int texalphascale[MAX_TEXTUREUNITS]; // used only if COMBINE is present int texcombinergb[MAX_TEXTUREUNITS]; // works with or without combine for some operations int texcombinealpha[MAX_TEXTUREUNITS]; // does nothing without combine + // matrices + matrix4x4_t texmatrix[MAX_TEXTUREUNITS]; // pointers - const float *pointer_texcoord[MAX_TEXTUREUNITS]; + 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; @@ -68,9 +71,6 @@ void R_Mesh_Finish(void); // sets up the requested transform matrix void R_Mesh_Matrix(const matrix4x4_t *matrix); -// sets up the requested transform matrix -void R_Mesh_TextureMatrix(int unitnumber, const matrix4x4_t *matrix); - // set up the requested state void R_Mesh_State(const rmeshstate_t *m); @@ -80,7 +80,7 @@ void R_Mesh_Draw(int numverts, int numtriangles, const int *elements); void R_Mesh_Draw_ShowTris(int numverts, int numtriangles, const 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); +qboolean SCR_ScreenShot(char *filename, qbyte *buffer1, qbyte *buffer2, qbyte *buffer3, int x, int y, int width, int height, qboolean flipx, qboolean flipy, qboolean flipdiagonal, qboolean jpeg); // used by R_Envmap_f and internally in backend, clears the frame void R_ClearScreen(void); // invoke refresh of frame @@ -108,11 +108,14 @@ rcachearrayrequest_t; int R_Mesh_CacheArray(rcachearrayrequest_t *r); 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 float varray_normal3f[65536*3]; extern int earray_element3i[65536]; +extern float varray_vertex3f2[65536*3]; #endif