]> icculus.org git repositories - divverent/darkplaces.git/blob - cl_screen.h
now includes qtypes.h
[divverent/darkplaces.git] / cl_screen.h
1
2 #ifndef CL_SCREEN_H
3 #define CL_SCREEN_H
4
5 // drawqueue stuff for use by client to feed 2D art to renderer
6 #define MAX_DRAWQUEUE 262144
7
8 #define DRAWQUEUE_PIC 0
9 #define DRAWQUEUE_STRING 1
10
11 typedef struct drawqueue_s
12 {
13         unsigned short size;
14         qbyte command, flags;
15         unsigned int color;
16         float x, y, scalex, scaley;
17 }
18 drawqueue_t;
19
20 #define DRAWFLAG_ADDITIVE 1
21
22 void DrawQ_Clear(void);
23 void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags);
24 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);
25 void DrawQ_Fill (float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags);
26 // only used for player config menu
27 void DrawQ_PicTranslate (int x, int y, char *picname, qbyte *translation);
28
29 void SHOWLMP_decodehide(void);
30 void SHOWLMP_decodeshow(void);
31 void SHOWLMP_drawall(void);
32 void SHOWLMP_clear(void);
33
34 extern cvar_t scr_2dresolution;
35
36 void CL_Screen_NewMap(void);
37 void CL_Screen_Init(void);
38 void CL_UpdateScreen(void);
39
40 #endif
41