Xonotic
draw.qh
Go to the documentation of this file.
1
#pragma once
2
3
// from the engine
4
vector
drawfontscale
;
5
#define draw_fontscale drawfontscale
6
7
vector
draw_shift
;
8
vector
draw_scale
;
9
float
draw_alpha
;
10
11
void
draw_reset
(
float
cw,
float
ch,
float
ox,
float
oy);
12
#define draw_beginBoldFont() drawfont = FONT_USER + 3
13
#define draw_endBoldFont() drawfont = FONT_USER
14
void
draw_setMousePointer
(
string
pic,
vector
theSize,
vector
theOffset);
15
void
draw_drawMousePointer
(
vector
where);
16
17
string
draw_PreloadPicture
(
string
pic);
18
string
draw_PreloadPictureWithFlags
(
string
pic,
float
f);
19
void
draw_ButtonPicture
(
vector
theOrigin,
string
pic,
vector
theSize,
vector
theColor,
float
theAlpha);
20
void
draw_VertButtonPicture
(
vector
theOrigin,
string
pic,
vector
theSize,
vector
theColor,
float
theAlpha);
21
void
draw_BorderPicture
(
vector
theOrigin,
string
pic,
vector
theSize,
vector
theColor,
float
theAlpha,
vector
theBorderSize);
22
void
draw_Picture
(
vector
origin
,
string
pic,
vector
size
,
vector
color
,
float
alpha
);
23
vector
draw_PictureSize
(
string
pic);
24
void
draw_Fill
(
vector
theOrigin,
vector
theSize,
vector
theColor,
float
theAlpha);
25
void
draw_Text
(
vector
origin
,
string
text,
vector
size
,
vector
color
,
float
alpha
,
float
allowColorCodes);
26
void
draw_CenterText
(
vector
origin
,
string
text,
vector
size
,
vector
color
,
float
alpha
,
float
allowColorCodes);
27
float
draw_TextWidth
(
string
text,
float
allowColorCodes,
vector
size
);
28
float
draw_CondensedFontFactor
(
string
theText,
float
ICanHasKallerz,
vector
SizeThxBye,
float
maxWidth);
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_TextWidth_WithColors
(
string
s,
vector
size
);
42
float
draw_TextWidth_WithoutColors
(
string
s,
vector
size
);
color
vector color
Definition:
dpextensions.qc:2415
draw_SetClip
void draw_SetClip()
Definition:
draw.qc:338
alpha
float alpha
Definition:
items.qc:14
draw_shift
vector draw_shift
Definition:
draw.qh:7
draw_TextShortenToWidth
string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size)
Definition:
draw.qc:366
draw_VertButtonPicture
void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha)
Definition:
draw.qc:132
draw_setMousePointer
void draw_setMousePointer(string pic, vector theSize, vector theOffset)
Definition:
draw.qc:9
draw_TextLengthUpToWidth
float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size)
Definition:
draw.qc:390
draw_PreloadPicture
string draw_PreloadPicture(string pic)
Definition:
draw.qc:60
draw_PictureSize
vector draw_PictureSize(string pic)
Definition:
draw.qc:80
globalToBoxSize
vector globalToBoxSize(vector v, vector scale)
Definition:
draw.qc:38
draw_CenterText
void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes)
Definition:
draw.qc:287
draw_Fill
void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha)
Definition:
draw.qc:86
drawfontscale
vector drawfontscale
Definition:
draw.qh:3
draw_Text
void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes)
Definition:
draw.qc:271
origin
origin
Definition:
ent_cs.qc:114
boxToGlobal
vector boxToGlobal(vector v, vector shift, vector scale)
Definition:
draw.qc:45
size
vector size
Definition:
csprogsdefs.qc:114
draw_CondensedFontFactor
float draw_CondensedFontFactor(string theText, float ICanHasKallerz, vector SizeThxBye, float maxWidth)
Definition:
draw.qc:305
draw_TextWidth_WithColors
float draw_TextWidth_WithColors(string s, vector size)
Definition:
draw.qc:380
draw_Picture
void draw_Picture(vector origin, string pic, vector size, vector color, float alpha)
Definition:
draw.qc:72
globalToBox
vector globalToBox(vector v, vector shift, vector scale)
Definition:
draw.qc:30
draw_TextWidth
float draw_TextWidth(string text, float allowColorCodes, vector size)
Definition:
draw.qc:293
draw_reset
void draw_reset(float cw, float ch, float ox, float oy)
Definition:
draw.qc:21
draw_SetClipRect
void draw_SetClipRect(vector theOrigin, vector theScale)
Definition:
draw.qc:343
scale
float scale
Definition:
projectile.qc:14
draw_drawMousePointer
void draw_drawMousePointer(vector where)
Definition:
draw.qc:16
draw_ButtonPicture
void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha)
Definition:
draw.qc:97
vector
vector(float skel, float bonenum) _skel_get_boneabs_hidden
v
vector v
Definition:
ent_cs.qc:116
draw_BorderPicture
void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize)
Definition:
draw.qc:169
draw_alpha
float draw_alpha
Definition:
draw.qh:9
boxToGlobalSize
vector boxToGlobalSize(vector v, vector scale)
Definition:
draw.qc:53
draw_scale
vector draw_scale
Definition:
draw.qh:8
draw_TextWidth_WithoutColors
float draw_TextWidth_WithoutColors(string s, vector size)
Definition:
draw.qc:385
draw_ClearClip
void draw_ClearClip()
Definition:
draw.qc:351
draw_PreloadPictureWithFlags
string draw_PreloadPictureWithFlags(string pic, float f)
Definition:
draw.qc:66
menu
draw.qh
Generated on Thu Mar 17 2022 17:26:26 for Xonotic by
1.8.13