]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/base/gfx.qh
Adding my current version of the scmenu to the nexuiz cvs.
[divverent/nexuiz.git] / scmenu / source / base / gfx.qh
1 // NG-Menu
2 // base/gfx.h
3
4 const float GFX_MENU_DEFAULT_WIDTH = 1024;
5 const float GFX_MENU_DEFAULT_HEIGHT = 768;
6
7 const string CVAR_SCMENU_MENU_WIDTH = "scmenu_menu_width";
8 const string CVAR_SCMENU_MENU_HEIGHT = "scmenu_menu_height";
9
10 float Gfx_Menu_Width;
11 float Gfx_Menu_Height;
12 float Gfx_Real_Width;
13 float Gfx_Real_Height;
14
15 void() Gfx_Init;
16 void() Gfx_Quit;
17 void() Gfx_Display;
18 void() Gfx_Hide;
19 void() Gfx_Update;
20 void() Gfx_Draw;
21
22 bool( string pPic )     Gfx_IsCached;
23 bool( string pPic )     Gfx_Precache;
24 void( string pPic )     Gfx_Free;
25 vector( string pPic )   Gfx_GetImageSize;
26
27 vector( vector pPos )  Gfx_ConToMen;
28 vector( vector pPos )  Gfx_MenToCon;
29
30 void() Gfx_ResetClipArea;
31
32 float( vector pPosition, float pCharacter, vector pScale, vector pRGB, float pAlpha, float pFlag )
33 Gfx_DrawCharacter;
34
35 float( vector pPosition, string pText, vector pScale, vector pRGB, float pAlpha, float pFlag )
36 Gfx_DrawString;
37
38 float( vector pPosition, string pPicture, vector pSize, vector pRGB, float pAlpha, float pFlag )
39 Gfx_DrawPic;
40
41 float( vector pPosition, vector pSize, vector pRGB, float pAlpha, float pFlag )
42 Gfx_Fill;
43
44 void( float pX, float pY, float pWidth, float pHeight )
45 Gfx_SetClipArea;