]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/draw.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / draw.qh
1 #ifndef DRAW_H
2 #define DRAW_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6     #include "../common/util-pre.qh"
7     #include "sys-pre.qh"
8     #include "../dpdefs/menudefs.qc"
9     #include "../dpdefs/keycodes.qc"
10     #include "sys-post.qh"
11     #include "config.qh"
12     #include "../warpzonelib/mathlib.qh"
13     #include "../common/util.qh"
14     #include "../common/test.qh"
15     #include "oo/base.qh"
16     #include "../common/playerstats.qh"
17     #include "../common/teams.qh"
18     #include "../common/constants.qh"
19     #include "../common/mapinfo.qh"
20     #include "../common/campaign_common.qh"
21     #include "../common/weapons/weapons.qh"
22     #include "../common/counting.qh"
23     #include "../common/command/markup.qh"
24     #include "../common/command/rpn.qh"
25     #include "../common/command/generic.qh"
26     #include "../common/command/shared_defs.qh"
27     #include "../common/urllib.qh"
28     #include "../common/monsters/monsters.qh"
29     #include "command/menu_cmd.qh"
30     #include "menu.qh"
31 #elif defined(SVQC)
32 #endif
33
34 // from the engine
35 vector drawfontscale;
36 #define draw_fontscale drawfontscale
37
38 vector draw_shift;
39 vector draw_scale;
40 float draw_alpha;
41
42 void draw_reset(float cw, float ch, float ox, float oy);
43 void draw_beginBoldFont();
44 void draw_endBoldFont();
45 void draw_setMousePointer(string pic, vector theSize, vector theOffset);
46 void draw_drawMousePointer(vector where);
47
48 string draw_PreloadPicture(string pic);
49 string draw_PreloadPictureWithFlags(string pic, float f);
50 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
51 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
52 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);
53 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);
54 vector draw_PictureSize(string pic);
55 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);
56 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
57 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
58 float draw_TextWidth(string text, float allowColorCodes, vector size);
59 float draw_CondensedFontFactor(string theText, float ICanHasKallerz, vector SizeThxBye, float maxWidth);
60 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size);
61 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size);
62
63 void draw_SetClip();
64 void draw_SetClipRect(vector theOrigin, vector theScale);
65 void draw_ClearClip();
66
67 vector boxToGlobal(vector v, vector shift, vector scale);
68 vector boxToGlobalSize(vector v, vector scale);
69 vector globalToBox(vector v, vector shift, vector scale);
70 vector globalToBoxSize(vector v, vector scale);
71
72 float draw_TextWidth_WithColors(string s, vector size);
73 float draw_TextWidth_WithoutColors(string s, vector size);
74 #endif