5 // drawqueue stuff for use by client to feed 2D art to renderer
6 #define MAX_DRAWQUEUE 262144
8 #define DRAWQUEUE_PIC 0
9 #define DRAWQUEUE_STRING 1
10 #define DRAWQUEUE_MESH 2
12 typedef struct drawqueue_s
17 float x, y, scalex, scaley;
21 // a triangle mesh... embedded in the drawqueue
22 typedef struct drawqueuemesh_s
34 #define DRAWFLAG_ADDITIVE 1
36 // clear the draw queue
37 void DrawQ_Clear(void);
39 void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags);
41 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);
42 // draw a filled rectangle
43 void DrawQ_Fill (float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags);
44 // draw a triangle mesh
45 void DrawQ_Mesh (drawqueuemesh_t *mesh, int flags);
47 void SHOWLMP_decodehide(void);
48 void SHOWLMP_decodeshow(void);
49 void SHOWLMP_drawall(void);
50 void SHOWLMP_clear(void);
52 extern cvar_t scr_2dresolution;
54 void CL_Screen_NewMap(void);
55 void CL_Screen_Init(void);
56 void CL_UpdateScreen(void);