5 // drawqueue stuff for use by client to feed 2D art to renderer
6 #define DRAWQUEUE_PIC 0
7 #define DRAWQUEUE_STRING 1
8 #define DRAWQUEUE_MESH 2
10 typedef struct drawqueue_s
15 float x, y, scalex, scaley;
19 // a triangle mesh... embedded in the drawqueue
20 // each vertex is 4 floats (3 are used)
21 // each texcoord is 4 floats (3 are used)
22 // each color is 4 floats (4 are used)
23 typedef struct drawqueuemesh_s
35 #define DRAWFLAG_ADDITIVE 1
37 // clear the draw queue
38 void DrawQ_Clear(void);
40 void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags);
42 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);
43 // draw a filled rectangle
44 void DrawQ_Fill(float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags);
45 // draw a very fancy pic (per corner texcoord/color control), the order is tl, tr, bl, br
46 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);
47 // draw a triangle mesh
48 void DrawQ_Mesh(drawqueuemesh_t *mesh, int flags);
50 void SHOWLMP_decodehide(void);
51 void SHOWLMP_decodeshow(void);
52 void SHOWLMP_drawall(void);
53 void SHOWLMP_clear(void);
55 extern cvar_t scr_2dresolution;
56 extern cvar_t scr_screenshot_jpeg;
58 void CL_Screen_NewMap(void);
59 void CL_Screen_Init(void);
60 void CL_UpdateScreen(void);