]> icculus.org git repositories - divverent/nexuiz.git/blob - data/oldmenuqc/base/gfx.qh
Commit flush my old working copy.
[divverent/nexuiz.git] / data / oldmenuqc / 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 vector Gfx_Real_Offset; // used to center the menu in wide-screen-resolutions
19 float Gfx_Real_Width;
20 float Gfx_Real_Height;
21
22 void() Gfx_Init;
23 void() Gfx_Quit;
24 void() Gfx_Display;
25 void() Gfx_Hide;
26 void() Gfx_Update;
27 void() Gfx_Draw;
28
29 bool( string pPic )     Gfx_IsCached;
30 bool( string pPic )     Gfx_Precache;
31 void( string pPic )     Gfx_Free;
32 vector( string pPic )   Gfx_GetImageSize;
33
34 vector( vector pPos )  Gfx_ConToMen;
35 vector( vector pPos )  Gfx_MenToCon;
36
37 void() Gfx_ResetClipArea;
38
39 float( vector pPosition, float pCharacter, vector pScale, vector pRGB, float pAlpha, float pFlag )
40 Gfx_DrawCharacter;
41
42 float( vector pPosition, string pText, vector pScale, vector pRGB, float pAlpha, float pFlag )
43 Gfx_DrawString;
44
45 float( vector pPosition, string pPicture, vector pSize, vector pRGB, float pAlpha, float pFlag )
46 Gfx_DrawPic;
47
48 float( vector pPosition, vector pSize, vector pRGB, float pAlpha, float pFlag )
49 Gfx_Fill;
50
51 void( float pX, float pY, float pWidth, float pHeight )
52 Gfx_SetClipArea;