]> icculus.org git repositories - divverent/nexuiz.git/blob - qcsrc/menu-div0test/draw.qh
fix divisions by zero
[divverent/nexuiz.git] / qcsrc / menu-div0test / draw.qh
1 vector draw_shift;
2 vector draw_scale;
3 float draw_alpha;
4
5 void draw_reset();
6 void draw_setMousePointer(string pic);
7 void draw_drawMousePointer(vector where);
8
9 void draw_PreloadPicture(string pic);
10 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
11 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
12 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);
13 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);
14 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);
15 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
16 float draw_TextWidth(string text, float allowColorCodes);
17 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes);
18 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes);
19
20 void draw_SetClip();
21 void draw_SetClipRect(vector theOrigin, vector theScale);
22 void draw_ClearClip();
23
24 vector boxToGlobal(vector v, vector shift, vector scale);
25 vector boxToGlobalSize(vector v, vector scale);
26 vector globalToBox(vector v, vector shift, vector scale);
27 vector globalToBoxSize(vector v, vector scale);
28
29 float draw_NeedResizeNotify;
30
31 string draw_currentSkin;