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 pair is 2 floats
22 // each color is 4 floats
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, 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 triangle mesh
46 void DrawQ_Mesh (drawqueuemesh_t *mesh, int flags);
48 void SHOWLMP_decodehide(void);
49 void SHOWLMP_decodeshow(void);
50 void SHOWLMP_drawall(void);
51 void SHOWLMP_clear(void);
53 extern cvar_t scr_2dresolution;
55 void CL_Screen_NewMap(void);
56 void CL_Screen_Init(void);
57 void CL_UpdateScreen(void);