]> icculus.org git repositories - divverent/nexuiz.git/blob - menu/graphic.qh
grappling hook
[divverent/nexuiz.git] / menu / graphic.qh
1 ///////////////////////////////////////////////
2 // Graphic Header File
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains all gfx prototypes, etc.
6 ///////////////////////////////////////////////
7
8 const float GFX_WIDTH = 1024;
9 const float GFX_HEIGHT = 768;
10
11 float vid_conwidth;
12 float vid_conheight;
13
14 ////////////////
15 // prototypes
16 ///
17
18 void(void) gfx_init;
19 void(void) gfx_frame;
20 void(void) gfx_toggle;
21 void(float keynr, float ascii) gfx_keydown;// perhaps we want to do some special fx for specail keys
22 void(void) gfx_draw;
23 void(void) gfx_shutdown;
24
25 // convert from menu coords to gfx coords
26 vector(vector vec) gfx_conmentogfx;
27 // convert from gfx coords to console coords
28 vector(vector vec) gfx_converttocon;
29 // convert from console coords to gfx coords
30 vector(vector vec) gfx_converttogfx;
31 // convert to menu coords
32 vector(vector vec) gfx_congfxtomen;
33
34 string(string pic_name, float complain) gfx_loadpic;
35 void(string pic_name) gfx_unloadpic;
36
37 void(vector position, float character, vector scale, vector rgb, float alpha, float flag)
38 gfx_drawchar;
39
40 void(vector position, string text, vector scale, vector rgb, float alpha, float flag)
41 gfx_drawstring;
42
43 void(vector position, string pic_name, vector size, vector rgb, float alpha, float flag)
44 gfx_drawpic;
45
46 void(vector position, vector size, vector rgb, float alpha, float flag)
47 gfx_fillarea;
48
49 void(vector position, vector size) gfx_setcliparea;
50
51 void(void) gfx_resetcliparea;
52
53 void(vector position, float character, vector scale, vector rgb, float alpha, float flag)
54 menu_drawchar;
55
56 void(vector position, string text, vector scale, vector rgb, float alpha, float flag)
57 menu_drawstring;
58
59 void(vector position, string pic_name, vector size, vector rgb, float alpha, float flag)
60 menu_drawpic;
61
62 void(vector position, vector size, vector rgb, float alpha, float flag)
63 menu_fillarea;
64
65 void(vector position, vector size) menu_setcliparea;
66
67 void(void) menu_resetcliparea;
68
69 vector(string pic_name) gfx_getimagesize;
70
71 void(vector position, vector size, float width, vector rgb, float alpha, float flag)
72 menu_drawoutline;