X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=cl_screen.h;h=471a36456065d05a7af8f39aa3a9fdba4a1f8c4e;hb=4a60b2cf069765f8a72995fbc5b0cd17d4102c8d;hp=da063b8d8e24694604049e34eaf421de39a4ca58;hpb=a76b746a4cd4e319c9629348ad2fb6563ef49393;p=xonotic%2Fdarkplaces.git diff --git a/cl_screen.h b/cl_screen.h index da063b8d..471a3645 100644 --- a/cl_screen.h +++ b/cl_screen.h @@ -2,52 +2,18 @@ #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 -typedef struct drawqueuemesh_s -{ - rtexture_t *texture; - int numindices; - int numvertices; - int *indices; - float *vertices; - float *texcoords; - qbyte *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, 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); - void SHOWLMP_decodehide(void); void SHOWLMP_decodeshow(void); void SHOWLMP_drawall(void); void SHOWLMP_clear(void); -extern cvar_t scr_2dresolution; +extern cvar_t vid_conwidth; +extern cvar_t vid_conheight; +extern cvar_t vid_pixelheight; +extern cvar_t scr_screenshot_jpeg; +extern cvar_t scr_screenshot_jpeg_quality; +extern cvar_t scr_screenshot_gammaboost; +extern cvar_t scr_screenshot_name; void CL_Screen_NewMap(void); void CL_Screen_Init(void);