]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/draw.qh
Merge remote-tracking branch 'origin/divVerent/merged-translations'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / draw.qh
1 // from the engine
2 vector drawfontscale;
3 #define draw_fontscale drawfontscale
4 #define draw_fontscale_x drawfontscale_x
5 #define draw_fontscale_y drawfontscale_y
6 #define draw_fontscale_z drawfontscale_z
7
8 vector draw_shift;
9 vector draw_scale;
10 float draw_alpha;
11
12 void draw_reset(float cw, float ch, float ox, float oy);
13 void draw_beginBoldFont();
14 void draw_endBoldFont();
15 void draw_setMousePointer(string pic, vector theSize, vector theOffset);
16 void draw_drawMousePointer(vector where);
17
18 string draw_PreloadPicture(string pic);
19 string draw_PreloadPictureWithFlags(string pic, float f);
20 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
21 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
22 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);
23 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);
24 vector draw_PictureSize(string pic);
25 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);
26 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
27 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
28 float draw_TextWidth(string text, float allowColorCodes, vector size);
29 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size);
30 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size);
31
32 void draw_SetClip();
33 void draw_SetClipRect(vector theOrigin, vector theScale);
34 void draw_ClearClip();
35
36 vector boxToGlobal(vector v, vector shift, vector scale);
37 vector boxToGlobalSize(vector v, vector scale);
38 vector globalToBox(vector v, vector shift, vector scale);
39 vector globalToBoxSize(vector v, vector scale);
40
41 float draw_NeedResizeNotify;
42
43 float draw_TextWidth_WithColors(string s, vector size);
44 float draw_TextWidth_WithoutColors(string s, vector size);