5 // drawqueue stuff for use by client to feed 2D art to renderer
6 #define DRAWQUEUE_STRING 0
7 #define DRAWQUEUE_MESH 1
8 #define DRAWQUEUE_SETCLIP 2
9 #define DRAWQUEUE_RESETCLIP 3
11 typedef struct drawqueue_s
16 float x, y, scalex, scaley;
20 // a triangle mesh... embedded in the drawqueue
21 // each vertex is 4 floats (3 are used)
22 // each texcoord is 4 floats (3 are used)
23 // each color is 4 floats (4 are used)
24 typedef struct drawqueuemesh_s
31 float *data_texcoord2f;
36 enum drawqueue_drawflag_e {
44 // clear the draw queue
45 void DrawQ_Clear(void);
47 void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags);
49 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);
50 // draw a filled rectangle
51 void DrawQ_Fill(float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags);
52 // draw a very fancy pic (per corner texcoord/color control), the order is tl, tr, bl, br
53 void DrawQ_SuperPic(float x, float y, char *picname, float width, float height, float s1, float t1, float r1, float g1, float b1, float a1, float s2, float t2, float r2, float g2, float b2, float a2, float s3, float t3, float r3, float g3, float b3, float a3, float s4, float t4, float r4, float g4, float b4, float a4, int flags);
54 // draw a triangle mesh
55 void DrawQ_Mesh(drawqueuemesh_t *mesh, int flags);
56 // set the clipping area
57 void DrawQ_SetClipArea(float x, float y, float width, float height);
58 // reset the clipping area
59 void DrawQ_ResetClipArea(void);
61 void SHOWLMP_decodehide(void);
62 void SHOWLMP_decodeshow(void);
63 void SHOWLMP_drawall(void);
64 void SHOWLMP_clear(void);
66 extern cvar_t vid_conwidth;
67 extern cvar_t vid_conheight;
68 extern cvar_t vid_pixelaspect;
69 extern cvar_t scr_screenshot_jpeg;
70 extern cvar_t scr_screenshot_jpeg_quality;
71 extern cvar_t scr_screenshot_name;
73 void CL_Screen_NewMap(void);
74 void CL_Screen_Init(void);
75 void CL_UpdateScreen(void);