]> icculus.org git repositories - divverent/nexuiz.git/blob - data/source/base/gfx.qh
give menu source its own directory
[divverent/nexuiz.git] / data / 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 // measurement block duration in seconds
11 const float GFX_SHOWFPS_DURATION = 1.000;
12
13 const float GFX_SHOWFPS_DEFAULT = 0;
14 const string CVAR_SCMENU_SHOWFPS = "scmenu_showfps";
15
16 float Gfx_Menu_Width;
17 float Gfx_Menu_Height;
18 float Gfx_Real_Width;
19 float Gfx_Real_Height;
20
21 void() Gfx_Init;
22 void() Gfx_Quit;
23 void() Gfx_Display;
24 void() Gfx_Hide;
25 void() Gfx_Update;
26 void() Gfx_Draw;
27
28 bool( string pPic )     Gfx_IsCached;
29 bool( string pPic )     Gfx_Precache;
30 void( string pPic )     Gfx_Free;
31 vector( string pPic )   Gfx_GetImageSize;
32
33 vector( vector pPos )  Gfx_ConToMen;
34 vector( vector pPos )  Gfx_MenToCon;
35
36 void() Gfx_ResetClipArea;
37
38 float( vector pPosition, float pCharacter, vector pScale, vector pRGB, float pAlpha, float pFlag )
39 Gfx_DrawCharacter;
40
41 float( vector pPosition, string pText, vector pScale, vector pRGB, float pAlpha, float pFlag )
42 Gfx_DrawString;
43
44 float( vector pPosition, string pPicture, vector pSize, vector pRGB, float pAlpha, float pFlag )
45 Gfx_DrawPic;
46
47 float( vector pPosition, vector pSize, vector pRGB, float pAlpha, float pFlag )
48 Gfx_Fill;
49
50 void( float pX, float pY, float pWidth, float pHeight )
51 Gfx_SetClipArea;