Nuclide
Software Development Kit for id Tech
|
Go to the source code of this file.
Classes | |
struct | font_s |
Representation of a font. More... | |
Macros | |
#define | AF_NONE 0 |
Enumerations | |
enum | drawflag_t { DRAWFLAG_NORMAL = 0 , DRAWFLAG_ADDITIVE , DRAWFLAG_MODULATE , DRAWFLAG_2XMODULATE , DRAWFLAG_NORMAL = 0 , DRAWFLAG_ADDITIVE , DRAWFLAG_MODULATE , DRAWFLAG_2XMODULATE } |
Flags for 2D drawing operations. More... | |
Functions | |
void | Font_Load (string strFile, font_s &fntNew) |
Load a desired .font definition into memory. More... | |
void | Font_DrawText (vector vecOrigin, string strText, font_s fnt) |
Draw text on the screen at the desired position with a desired font. More... | |
void | Font_DrawText_A (vector vecOrigin, string strText, float a, font_s fnt) |
Draw alpha-blended text on the screen at the desired position with a desired font. More... | |
void | Font_DrawText_RGB (vector vecOrigin, string strText, vector col, font_s fnt) |
Draw tinted text on the screen at the desired position with a desired font. More... | |
void | Font_DrawText_RGBA (vector vecOrigin, string strText, vector col, float a, font_s fnt) |
Draw tinted and alpha blended text on the screen at the desired position with a desired font. More... | |
void | Font_DrawRText (vector vecOrigin, string strText, font_s fnt) |
Right-aligned variant of Font_DrawText. More... | |
void | Font_DrawRText_A (vector vecOrigin, string strText, float a, font_s fnt) |
Right-aligned variant of Font_DrawText_A. More... | |
void | Font_DrawRText_RGB (vector vecOrigin, string strText, vector col, font_s fnt) |
Right-aligned variant of Font_DrawText_RGB. More... | |
void | Font_DrawRText_RGBA (vector vecOrigin, string strText, vector col, float a, font_s fnt) |
Right-aligned variant of Font_DrawText_RGBA. More... | |
void | Font_DrawField (vector vecOrigin, vector vecSize, string strText, font_s fnt, alignflags_t iAlignFlags) |
Draws a textfield with line wrapping. More... | |
void | Font_DrawFieldAtHeight (vector vecOrigin, vector vecSize, int iTextHeight, string strText, font_s fnt, alignflags_t iAlignFlags) |
Draws a textfield with line wrapping at a custom text height. More... | |
string | Font_RGBtoHex (vector vecColor) |
Converts a normalized RGB color vector to a hex color string. More... | |
int | Font_GetHeight (font_s fnt) |
Returns the height of a specified font in pixels. More... | |
float | Font_StringWidth (string strText, bool hasColor, font_s fnt) |
Returns the width of a series of characters in pixels. More... | |
float | Font_GetID (font_s fnt) |
Get the internal font id. More... | |
Variables | |
typedef | enumflags |
Defines the valid alignment flags for text fields. More... | |