X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_screen.h;h=aef5a234fae02c7ac165044f220e825b76d37b54;hp=9a4859b583c6f72c4e4c9917b75ec2333b681c17;hb=49f0e1cbc8bc4ea8a165e8b86092c40bf4599a8e;hpb=95e8238ac7bd49287e1cca92341bd2520e01e8e2 diff --git a/cl_screen.h b/cl_screen.h index 9a4859b5..aef5a234 100644 --- a/cl_screen.h +++ b/cl_screen.h @@ -2,59 +2,28 @@ #ifndef CL_SCREEN_H #define CL_SCREEN_H -// drawqueue stuff for use by client to feed 2D art to renderer -#define DRAWQUEUE_PIC 0 -#define DRAWQUEUE_STRING 1 -#define DRAWQUEUE_MESH 2 - -typedef struct drawqueue_s -{ - unsigned short size; - qbyte command, flags; - unsigned int color; - float x, y, scalex, scaley; -} -drawqueue_t; - -// a triangle mesh... embedded in the drawqueue -// each vertex is 4 floats (3 are used) -// each texcoord pair is 2 floats -// each color is 4 floats -typedef struct drawqueuemesh_s -{ - rtexture_t *texture; - int numtriangles; - int numvertices; - int *indices; - float *vertices; - float *texcoords; - float *colors; -} -drawqueuemesh_t; - -#define DRAWFLAG_ADDITIVE 1 - -// clear the draw queue -void DrawQ_Clear(void); -// draw an image -void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags); -// draw a text string -void DrawQ_String(float x, float y, const char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags); -// draw a filled rectangle -void DrawQ_Fill (float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags); -// draw a triangle mesh -void DrawQ_Mesh (drawqueuemesh_t *mesh, int flags); +#include "qtypes.h" void SHOWLMP_decodehide(void); void SHOWLMP_decodeshow(void); void SHOWLMP_drawall(void); -void SHOWLMP_clear(void); -extern cvar_t scr_2dresolution; +extern struct cvar_s vid_conwidth; +extern struct cvar_s vid_conheight; +extern struct cvar_s vid_pixelheight; +extern struct cvar_s scr_screenshot_jpeg; +extern struct cvar_s scr_screenshot_jpeg_quality; +extern struct cvar_s scr_screenshot_png; +extern struct cvar_s scr_screenshot_gammaboost; +extern struct cvar_s scr_screenshot_name; void CL_Screen_NewMap(void); void CL_Screen_Init(void); +void CL_Screen_Shutdown(void); void CL_UpdateScreen(void); +qbool R_Stereo_Active(void); +qbool R_Stereo_ColorMasking(void); + #endif