X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=gl_backend.h;h=3549566a6a641dc2b8b5a8a908a2f5518e40ec59;hb=137e29f228f1309a5cfb2c709a362ec159efd581;hp=d5940a3722657d9204165d0ad71cfc8873395b0d;hpb=73624ef15d754ca65acb6f2037989fb582cd7b92;p=xonotic%2Fdarkplaces.git diff --git a/gl_backend.h b/gl_backend.h index d5940a37..3549566a 100644 --- a/gl_backend.h +++ b/gl_backend.h @@ -46,8 +46,11 @@ 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; @@ -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