85 void Rect(vector, vector, vector,
float);
88 void Line(
float, vector, vector, vector,
float);
89 void Pic(vector,
string, vector, vector,
float);
155linkToClientProgs(
string funcName)
157 static void empty(
void)
159 print(
"Called unimplemented client-side API call.\n");
163 void *func = externvalue(0, funcName);
166 return ((__variant)func);
176 font.
GetID = linkToClientProgs(
"Font_GetID");
177 font.
Load = linkToClientProgs(
"Font_Load");
181 screen.
Width = linkToClientProgs(
"Surface_ScreenHeight");
182 screen.
Height = linkToClientProgs(
"Surface_ScreenHeight");
183 screen.
Size = linkToClientProgs(
"Surface_ScreenSize");
184 screen.
Mins = linkToClientProgs(
"Surface_ScreenMins");
220 draw.
Rect = linkToClientProgs(
"Draw_Rect");
223 draw.
Line = linkToClientProgs(
"Draw_Line");
224 draw.
Pic = linkToClientProgs(
"Draw_Pic");
227 draw.
RText = linkToClientProgs(
"Font_DrawRText");
228 draw.
RText_A = linkToClientProgs(
"Font_DrawRText_A");
231 draw.
Text = linkToClientProgs(
"Font_DrawText");
232 draw.
Text_A= linkToClientProgs(
"Font_DrawText_A");
drawflag_t
Flags for 2D drawing operations.
Definition: font.h:27
typedef enumflags
Defines the valid alignment flags for text fields.
Definition: font.h:37
@ DRAWFLAG_ADDITIVE
Render with an additive blend mode.
Definition: api_func.h:21
@ DRAWFLAG_MODULATE
Not implemented in FTEQW.
Definition: api_func.h:22
@ DRAWFLAG_2XMODULATE
Not implemented in FTEQW.
Definition: api_func.h:23
@ DRAWFLAG_NORMAL
The default.
Definition: api_func.h:20
var surfaceAPI_t screen
Definition: api_func.h:80
var fontAPI_t font
Definition: api_func.h:67
var weaponAPI_t weapon
Definition: api_func.h:146
var drawAPI_t draw
Definition: api_func.h:101
var playerAPI_t player
Definition: api_func.h:119
Definition: api_func.h:84
void RText_RGB(vector, string, vector, font_s)
void RText_A(vector, string, float, font_s)
void Rect(vector, vector, vector, float)
void Line(float, vector, vector, vector, float)
void TextField(vector, vector, string, font_s, alignflags_t)
void Text_A(vector, string, float, font_s)
void RText(vector, string, font_s)
void TextFieldAtHeight(vector, vector, int, string, font_s, alignflags_t)
void RText_RGBA(vector, string, vector, float, font_s)
void Text_RGBA(vector, string, vector, float, font_s)
void Pic(vector, string, vector, vector, float)
void Text(vector, string, font_s)
void RoundedBox(vector, vector, vector, float)
void Text_RGB(vector, string, vector, font_s)
void RectOutline(vector, vector, float, vector, float)
Definition: api_func.h:60
float StringWidth(string, bool, font_s)
void Load(string, font_s &)
Representation of a font.
Definition: api_func.h:39
int iFlags
Rendering flags that the font posesses.
Definition: api_func.h:45
int iScaleX
Suggested maximum width of a character in the font.
Definition: api_func.h:41
int iScaleY
Maximum height of a chracter in the font.
Definition: api_func.h:42
vector vecColor
Suggested default color of the font.
Definition: api_func.h:43
float flAlpha
Suggested default alpha of the font.
Definition: api_func.h:44
int iID
Internal ID, will be passed to 'drawfont' before rendering text.
Definition: api_func.h:40
string hexColor
Definition: api_func.h:46
Definition: api_func.h:105
vector GetCameraAngles(void)
vector GetCameraPosition(void)
Definition: api_func.h:72
Definition: api_func.h:123
entity GetPreviousWeaponRelativeTo(entity)
entity GetNextWeaponRelativeTo(entity)
string GetSelectedIcon(entity)
entity GetActiveWeapon(void)
entity GetLastWeaponInInventory(void)
bool UsesSecondaryAmmo(void)
entity GetFirstWeaponInInventory(void)
void SelectWeapon(entity)