![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | dp_font_t |
struct | dp_fonts_t |
struct | drawqueuemesh_t |
struct | ft2_settings_t |
Macros | |
#define | DRAWFLAGS_BLEND 0xFF /* this matches all blending flags */ |
#define | FONT_CENTERPRINT (&dp_fonts.f[5]) |
#define | FONT_CHAT (&dp_fonts.f[4]) |
#define | FONT_CONSOLE (&dp_fonts.f[1]) |
#define | FONT_DEFAULT (&dp_fonts.f[0]) |
#define | FONT_INFOBAR (&dp_fonts.f[6]) |
#define | FONT_MENU (&dp_fonts.f[7]) |
#define | FONT_NOTIFY (&dp_fonts.f[3]) |
#define | FONT_SBAR (&dp_fonts.f[2]) |
#define | FONT_USER(i) |
#define | FONTS_EXPAND 8 |
#define | MAX_FONT_CMDLINE MAX_QPATH * (MAX_FONT_FALLBACKS + 1) |
#define | MAX_FONT_FALLBACKS 3 |
#define | MAX_FONT_SIZES 16 |
#define | MAX_FONTS 16 |
#define | MAX_USERFONTS (dp_fonts.maxsize - 8) |
#define | STRING_COLOR_DEFAULT 7 |
#define | STRING_COLOR_DEFAULT_STR "^7" |
#define | STRING_COLOR_RGB_TAG "^x" |
#define | STRING_COLOR_RGB_TAG_CHAR 'x' |
#define | STRING_COLOR_TAG '^' |
Enumerations | |
enum | cachepicflags_t { CACHEPICFLAG_NOTPERSISTENT = 1 , CACHEPICFLAG_QUIET = 2 , CACHEPICFLAG_NOCOMPRESSION = 4 , CACHEPICFLAG_NOCLAMP = 8 , CACHEPICFLAG_NEWPIC = 16 , CACHEPICFLAG_MIPMAP = 32 , CACHEPICFLAG_NEAREST = 64 , CACHEPICFLAG_LINEAR = 128 , CACHEPICFLAG_FAILONMISSING = 256 } |
enum | drawqueue_drawflag_e { DRAWFLAG_NORMAL , DRAWFLAG_ADDITIVE , DRAWFLAG_MODULATE , DRAWFLAG_2XMODULATE , DRAWFLAG_SCREEN , DRAWFLAG_NUMFLAGS , DRAWFLAG_MASK = 0xFF , DRAWFLAG_MIPMAP = 0x100 , DRAWFLAG_NOGAMMA = 0x200 } |
Functions | |
cachepic_t * | Draw_CachePic (const char *path) |
cachepic_t * | Draw_CachePic_Flags (const char *path, unsigned int cachepicflags) |
void | Draw_Frame (void) |
void | Draw_FreePic (const char *picname) |
int | Draw_GetPicHeight (cachepic_t *pic) |
const char * | Draw_GetPicName (cachepic_t *pic) |
rtexture_t * | Draw_GetPicTexture (cachepic_t *pic) |
int | Draw_GetPicWidth (cachepic_t *pic) |
qbool | Draw_IsPicLoaded (cachepic_t *pic) |
cachepic_t * | Draw_NewPic (const char *picname, int width, int height, unsigned char *pixels, textype_t textype, int texflags) |
void | DrawQ_Fill (float x, float y, float width, float height, float red, float green, float blue, float alpha, int flags) |
void | DrawQ_Finish (void) |
void | DrawQ_FlushUI (void) |
void | DrawQ_Line (float width, float x1, float y1, float x2, float y2, float r, float g, float b, float alpha, int flags) |
void | DrawQ_Pic (float x, float y, cachepic_t *pic, float width, float height, float red, float green, float blue, float alpha, int flags) |
void | DrawQ_RecalcView (void) |
void | DrawQ_ResetClipArea (void) |
void | DrawQ_RotPic (float x, float y, cachepic_t *pic, float width, float height, float org_x, float org_y, float angle, float red, float green, float blue, float alpha, int flags) |
void | DrawQ_SetClipArea (float x, float y, float width, float height) |
void | DrawQ_Start (void) |
float | DrawQ_String (float x, float y, const char *text, size_t maxlen, float scalex, float scaley, float basered, float basegreen, float baseblue, float basealpha, int flags, int *outcolor, qbool ignorecolorcodes, const dp_font_t *fnt) |
float | DrawQ_String_Scale (float x, float y, const char *text, size_t maxlen, float sizex, float sizey, float scalex, float scaley, float basered, float basegreen, float baseblue, float basealpha, int flags, int *outcolor, qbool ignorecolorcodes, const dp_font_t *fnt) |
void | DrawQ_SuperPic (float x, float y, cachepic_t *pic, float width, float height, float s1, float t1, float r1, float g1, float b1, float a1, float s2, float t2, float r2, float g2, float b2, float a2, float s3, float t3, float r3, float g3, float b3, float a3, float s4, float t4, float r4, float g4, float b4, float a4, int flags) |
float | DrawQ_TextWidth (const char *text, size_t maxlen, float w, float h, qbool ignorecolorcodes, const dp_font_t *fnt) |
float | DrawQ_TextWidth_UntilWidth (const char *text, size_t *maxlen, float w, float h, qbool ignorecolorcodes, const dp_font_t *fnt, float maxWidth) |
float | DrawQ_TextWidth_UntilWidth_TrackColors (const char *text, size_t *maxlen, float w, float h, int *outcolor, qbool ignorecolorcodes, const dp_font_t *fnt, float maxwidth) |
float | DrawQ_TextWidth_UntilWidth_TrackColors_Scale (const char *text, size_t *maxlen, float w, float h, float sw, float sh, int *outcolor, qbool ignorecolorcodes, const dp_font_t *fnt, float maxwidth) |
Variables | |
dp_fonts_t | dp_fonts |
float | DrawQ_Color [4] |
rtexturepool_t * | drawtexturepool |
const vec4_t | string_colors [] |
color tag printing | |
#define DRAWFLAGS_BLEND 0xFF /* this matches all blending flags */ |
#define FONT_CENTERPRINT (&dp_fonts.f[5]) |
Definition at line 133 of file draw.h.
Referenced by GL_Draw_Init(), and SCR_DrawCenterString().
#define FONT_CHAT (&dp_fonts.f[4]) |
Definition at line 132 of file draw.h.
Referenced by Con_DrawInput(), Con_DrawNotifyRect(), GL_Draw_Init(), and SCR_DrawTouchscreenOverlay().
#define FONT_CONSOLE (&dp_fonts.f[1]) |
Definition at line 129 of file draw.h.
Referenced by Con_DrawConsole(), Con_DrawConsoleLine(), Con_DrawInput(), Con_LineHeight(), GL_Draw_Init(), and LoadFont().
#define FONT_DEFAULT (&dp_fonts.f[0]) |
Definition at line 128 of file draw.h.
Referenced by getdrawfont(), GL_Draw_Init(), R_Shadow_EditLights_DrawSelectedLightProperties(), R_TimeReport_EndFrame(), Sbar_DrawWeapon(), and SCR_DrawNetGraph_DrawGraph().
#define FONT_INFOBAR (&dp_fonts.f[6]) |
Definition at line 134 of file draw.h.
Referenced by GL_Draw_Init(), Sbar_ShowFPS(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawLoadingStack_r(), and SCR_DrawQWDownload().
#define FONT_MENU (&dp_fonts.f[7]) |
Definition at line 135 of file draw.h.
Referenced by GL_Draw_Init(), M_DrawCharacter(), M_ItemPrint(), M_Print(), M_PrintColored(), and M_PrintRed().
#define FONT_NOTIFY (&dp_fonts.f[3]) |
Definition at line 131 of file draw.h.
Referenced by CL_DrawVideo(), Con_DrawNotifyRect(), and GL_Draw_Init().
#define FONT_SBAR (&dp_fonts.f[2]) |
Definition at line 130 of file draw.h.
Referenced by GL_Draw_Init(), Sbar_DeathmatchOverlay(), Sbar_DrawCharacter(), Sbar_DrawString(), and Sbar_PrintScoreboardItem().
#define FONT_USER | ( | i | ) |
#define FONTS_EXPAND 8 |
Definition at line 127 of file draw.h.
Referenced by FindFont().
#define MAX_FONT_CMDLINE MAX_QPATH * (MAX_FONT_FALLBACKS + 1) |
Definition at line 96 of file draw.h.
Referenced by LoadFont_f().
#define MAX_FONT_FALLBACKS 3 |
Definition at line 95 of file draw.h.
Referenced by Font_LoadFont(), LoadFont(), LoadFont_f(), and VM_loadfont().
#define MAX_FONT_SIZES 16 |
Definition at line 94 of file draw.h.
Referenced by Font_GetKerningForMap(), Font_GetMapForChar(), Font_IndexForSize(), Font_LoadFont(), Font_LoadMapForIndex(), Font_LoadSize(), Font_MapForIndex(), Font_UnloadFont(), LoadFont(), LoadFont_f(), and VM_loadfont().
#define MAX_FONTS 16 |
Definition at line 126 of file draw.h.
Referenced by GL_Draw_Init().
#define MAX_USERFONTS (dp_fonts.maxsize - 8) |
Definition at line 137 of file draw.h.
Referenced by GL_Draw_Init().
#define STRING_COLOR_DEFAULT 7 |
Definition at line 141 of file draw.h.
Referenced by Con_MaskPrint(), DrawQ_String_Scale(), DrawQ_TextWidth_UntilWidth_TrackColors_Scale(), Nicks_AddLastColor(), and SV_Name_f().
#define STRING_COLOR_DEFAULT_STR "^7" |
Definition at line 142 of file draw.h.
Referenced by SV_Name_f().
#define STRING_COLOR_RGB_TAG_CHAR 'x' |
Definition at line 143 of file draw.h.
Referenced by colorcode_skipwidth(), COM_StringDecolorize(), COM_StringLengthNoColors(), Con_DrawInput(), Con_MaskPrint(), DrawQ_String_Scale(), DrawQ_TextWidth_UntilWidth_TrackColors_Scale(), Key_Parse_CommonKeys(), Nicks_AddLastColor(), SanitizeString(), SV_Name_f(), and u8_COM_StringLengthNoColors().
#define STRING_COLOR_TAG '^' |
Definition at line 140 of file draw.h.
Referenced by colorcode_skipwidth(), Com_HexDumpToConsole(), COM_StringDecolorize(), COM_StringLengthNoColors(), Con_DrawInput(), Con_MaskPrint(), DrawQ_String_Scale(), DrawQ_TextWidth_UntilWidth_TrackColors_Scale(), Key_Event(), Key_Parse_CommonKeys(), Nicks_AddLastColor(), PRVM_PrintStatement(), SanitizeString(), SV_Name_f(), and u8_COM_StringLengthNoColors().
enum cachepicflags_t |
Definition at line 34 of file draw.h.
enum drawqueue_drawflag_e |
cachepic_t * Draw_CachePic | ( | const char * | path | ) |
Definition at line 185 of file gl_draw.c.
References Draw_CachePic_Flags().
Referenced by DrawQ_Fill(), DrawQ_Pic(), DrawQ_RotPic(), DrawQ_SuperPic(), M_Draw(), M_DrawPic(), M_GameOptions_Draw(), M_Keys_Draw(), M_LanConfig_Draw(), M_Load_Draw(), M_Main_Draw(), M_ModList_Draw(), M_MultiPlayer_Draw(), M_Options_ColorControl_Draw(), M_Options_Draw(), M_Options_Effects_Draw(), M_Options_Graphics_Draw(), M_Save_Draw(), M_ServerList_Draw(), M_Setup_Draw(), M_SinglePlayer_Draw(), M_Transfusion_Episode_Draw(), M_Transfusion_Skill_Draw(), M_Video_Draw(), Sbar_Draw(), SCR_DrawBrand(), SCR_DrawNet(), SCR_DrawPause(), and SCR_DrawTurtle().
cachepic_t * Draw_CachePic_Flags | ( | const char * | path, |
unsigned int | cachepicflags ) |
Definition at line 86 of file gl_draw.c.
References CACHEPICFLAG_FAILONMISSING, CACHEPICFLAG_LINEAR, CACHEPICFLAG_MIPMAP, CACHEPICFLAG_NEAREST, CACHEPICFLAG_NEWPIC, CACHEPICFLAG_NOCLAMP, CACHEPICFLAG_NOCOMPRESSION, CACHEPICFLAG_NOTPERSISTENT, CACHEPICFLAG_QUIET, cachepichash, CACHEPICHASHSIZE, cachepics, Con_DPrintf(), CRC_Block(), dp_strlcpy, draw_frame, gl_texturecompression, gl_texturecompression_2d, Image_GetStockPicSize(), cvar_t::integer, MAX_CACHED_PICS, NULL, numcachepics, r_nearest_2d, R_SkinFrame_LoadExternal(), R_SkinFrame_LoadExternal_SkinFrame(), R_SkinFrame_MarkUsed(), R_SkinFrame_PurgeSkinFrame(), R_TextureHeight(), R_TextureWidth(), strlen(), TEXF_ALPHA, TEXF_CLAMP, TEXF_COMPRESS, TEXF_FORCE_RELOAD, TEXF_FORCELINEAR, TEXF_FORCENEAREST, TEXF_MIPMAP, and cachepic_t::texflags.
Referenced by Con_DrawConsole(), Draw_CachePic(), LoadFont(), M_Menu_Main_f(), M_Options_ColorControl_Draw(), OpenVideo(), sbar_start(), SCR_DrawLoadingScreen(), SCR_DrawTouchscreenOverlay(), SHOWLMP_drawall(), VM_CL_ReadPicture(), VM_drawpic(), VM_drawrotpic(), VM_drawsubpic(), VM_getimagesize(), and VM_precache_pic().
Definition at line 237 of file gl_draw.c.
References cachepics, Con_DPrintf(), draw_frame, host, i, numcachepics, R_SkinFrame_PurgeSkinFrame(), and host_static_t::realtime.
Referenced by SCR_DrawScreen().
void Draw_FreePic | ( | const char * | picname | ) |
Definition at line 309 of file gl_draw.c.
References cachepichash, CACHEPICHASHSIZE, Con_DPrintf(), CRC_Block(), draw_frame, R_SkinFrame_PurgeSkinFrame(), and strlen().
Referenced by UnlinkVideoTexture(), and VM_freepic().
int Draw_GetPicHeight | ( | cachepic_t * | pic | ) |
Definition at line 204 of file gl_draw.c.
References NULL.
Referenced by DrawQ_String_Scale(), Sbar_Draw(), SCR_DrawBrand(), SCR_DrawLoadingScreen(), SCR_DrawPause(), and VM_getimagesize().
const char * Draw_GetPicName | ( | cachepic_t * | pic | ) |
rtexture_t * Draw_GetPicTexture | ( | cachepic_t * | pic | ) |
Definition at line 224 of file gl_draw.c.
References Con_DPrintf(), draw_frame, NULL, R_SkinFrame_LoadExternal(), and TEXF_FORCE_RELOAD.
Referenced by CL_Video_Frame(), DrawQ_Pic(), DrawQ_RotPic(), DrawQ_SuperPic(), LinkVideoTexture(), and SCR_DrawLoadingScreen().
int Draw_GetPicWidth | ( | cachepic_t * | pic | ) |
Definition at line 197 of file gl_draw.c.
References NULL.
Referenced by DrawQ_String_Scale(), M_Draw(), M_GameOptions_Draw(), M_Keys_Draw(), M_LanConfig_Draw(), M_Load_Draw(), M_Main_Draw(), M_ModList_Draw(), M_MultiPlayer_Draw(), M_Options_ColorControl_Draw(), M_Options_Draw(), M_Options_Effects_Draw(), M_Options_Graphics_Draw(), M_Save_Draw(), M_ServerList_Draw(), M_Setup_Draw(), M_SinglePlayer_Draw(), M_Transfusion_Episode_Draw(), M_Transfusion_Skill_Draw(), M_Video_Draw(), Sbar_DeathmatchOverlay(), Sbar_Draw(), Sbar_FinaleOverlay(), SCR_DrawBrand(), SCR_DrawLoadingScreen(), SCR_DrawPause(), and VM_getimagesize().
qbool Draw_IsPicLoaded | ( | cachepic_t * | pic | ) |
Definition at line 211 of file gl_draw.c.
References Con_DPrintf(), NULL, R_SkinFrame_LoadExternal(), and TEXF_FORCE_RELOAD.
Referenced by Con_DrawConsole(), Font_LoadMap(), LoadFont(), M_Menu_Main_f(), Sbar_Score(), SCR_DrawTouchscreenOverlay(), VM_CL_ReadPicture(), VM_getimagesize(), and VM_precache_pic().
cachepic_t * Draw_NewPic | ( | const char * | picname, |
int | width, | ||
int | height, | ||
unsigned char * | pixels, | ||
textype_t | textype, | ||
int | texflags ) |
Definition at line 256 of file gl_draw.c.
References CACHEPICFLAG_NEAREST, CACHEPICFLAG_NEWPIC, CACHEPICFLAG_NOCLAMP, cachepichash, CACHEPICHASHSIZE, cachepics, Con_DPrintf(), CRC_Block(), dp_strlcpy, draw_frame, height, MAX_CACHED_PICS, numcachepics, R_SkinFrame_LoadInternalBGRA(), R_SkinFrame_MarkUsed(), R_SkinFrame_PurgeSkinFrame(), R_UpdateTexture(), viddef_t::sRGB2D, strlen(), TEXF_CLAMP, TEXF_FORCE_RELOAD, TEXF_FORCENEAREST, cachepic_t::texflags, vid, and width.
Referenced by Curl_EndDownload(), LinkVideoTexture(), M_Setup_Draw(), update_pic_for_fontmap(), VideoUpdateCallback(), and VM_CL_ReadPicture().
void DrawQ_Fill | ( | float | x, |
float | y, | ||
float | width, | ||
float | height, | ||
float | red, | ||
float | green, | ||
float | blue, | ||
float | alpha, | ||
int | flags ) |
Definition at line 847 of file gl_draw.c.
References alpha, blue, Draw_CachePic(), DrawQ_Pic(), flags, green, height, width, x, and y.
Referenced by CL_DrawVideo(), Con_DrawConsole(), M_Background(), M_Options_ColorControl_Draw(), M_Options_PrintCheckbox(), M_Options_PrintCommand(), M_Options_PrintSlider(), M_ServerList_Draw(), R_TimeReport_EndFrame(), Sbar_DrawFace(), Sbar_DrawFrags(), Sbar_PrintScoreboardItem(), Sbar_ShowFPS(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawNetGraph_DrawGraph(), SCR_DrawQWDownload(), SCR_DrawTouchscreenOverlay(), and VM_drawfill().
Definition at line 1456 of file gl_draw.c.
References r_refdef_t::draw2dstage, DrawQ_FlushUI(), and r_refdef.
Referenced by R_RenderView(), and SCR_DrawScreen().
Definition at line 1469 of file gl_draw.c.
References CL_Mesh_UI, cl_meshentities, r_refdef_view_t::colorscale, GL_DepthMask(), cvar_t::integer, MESH_UI, mod(), Mod_Mesh_Finalize(), Mod_Mesh_Reset(), r_draw2d, r_draw2d_force, R_DrawModelSurfaces(), r_refdef, r_textureframe, and r_refdef_t::view.
Referenced by DrawQ_Finish(), DrawQ_RecalcView(), DrawQ_ResetClipArea(), and DrawQ_SetClipArea().
void DrawQ_Line | ( | float | width, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | alpha, | ||
int | flags ) |
Definition at line 1402 of file gl_draw.c.
References alpha, b, CL_Mesh_UI, fabs(), g, viddef_mode_t::height, MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_BLENDED, MATERIALFLAG_NOSHADOW, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_WALL, mod(), Mod_Mesh_AddSurface(), Mod_Mesh_AddTriangle(), Mod_Mesh_GetTexture(), Mod_Mesh_IndexForVertex(), viddef_t::mode, r, cvar_t::value, vid, vid_conheight, vid_conwidth, viddef_mode_t::width, width, x1, x2, and y2.
Referenced by R_TimeReport_EndFrame(), SCR_DrawNetGraph_DrawGraph(), and VM_drawline().
void DrawQ_Pic | ( | float | x, |
float | y, | ||
cachepic_t * | pic, | ||
float | width, | ||
float | height, | ||
float | red, | ||
float | green, | ||
float | blue, | ||
float | alpha, | ||
int | flags ) |
Definition at line 797 of file gl_draw.c.
References alpha, blue, CL_Mesh_UI, Draw_CachePic(), Draw_GetPicTexture(), flags, green, height, MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_BLENDED, MATERIALFLAG_NOSHADOW, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_WALL, mod(), Mod_Mesh_AddSurface(), Mod_Mesh_AddTriangle(), Mod_Mesh_GetTexture(), Mod_Mesh_IndexForVertex(), width, x, and y.
Referenced by DrawQ_Fill(), M_Draw(), M_DrawPic(), M_ModList_Draw(), R_Shadow_EditLights_DrawSelectedLightProperties(), Sbar_DeathmatchOverlay(), Sbar_Draw(), Sbar_DrawAlphaPic(), Sbar_DrawPic(), Sbar_DrawStretchPic(), Sbar_DrawWeapon(), Sbar_DrawXNum(), Sbar_FinaleOverlay(), Sbar_IntermissionOverlay(), Sbar_Score(), SCR_DrawBrand(), SCR_DrawNet(), SCR_DrawPause(), SCR_DrawTouchscreenOverlay(), SCR_DrawTurtle(), SHOWLMP_drawall(), and VM_drawpic().
Definition at line 1462 of file gl_draw.c.
References r_refdef_t::draw2dstage, DrawQ_FlushUI(), and r_refdef.
Referenced by VM_CL_R_SetView().
Definition at line 1450 of file gl_draw.c.
References DrawQ_FlushUI(), and GL_ScissorTest().
Referenced by VM_drawresetcliparea().
void DrawQ_RotPic | ( | float | x, |
float | y, | ||
cachepic_t * | pic, | ||
float | width, | ||
float | height, | ||
float | org_x, | ||
float | org_y, | ||
float | angle, | ||
float | red, | ||
float | green, | ||
float | blue, | ||
float | alpha, | ||
int | flags ) |
Definition at line 819 of file gl_draw.c.
References alpha, blue, CL_Mesh_UI, cos(), DEG2RAD, Draw_CachePic(), Draw_GetPicTexture(), flags, green, height, MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_BLENDED, MATERIALFLAG_NOSHADOW, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_WALL, mod(), Mod_Mesh_AddSurface(), Mod_Mesh_AddTriangle(), Mod_Mesh_GetTexture(), Mod_Mesh_IndexForVertex(), sin(), width, x, and y.
Referenced by VM_drawrotpic().
Definition at line 1428 of file gl_draw.c.
References DrawQ_FlushUI(), GL_Scissor(), GL_ScissorTest(), height, r_refdef_view_t::height, viddef_mode_t::height, int(), cvar_t::integer, viddef_t::mode, r_refdef, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, vid, vid_conheight, vid_conwidth, r_refdef_t::view, r_refdef_view_t::width, width, r_refdef_view_t::x, x, r_refdef_view_t::y, and y.
Referenced by VM_drawsetcliparea().
Definition at line 789 of file gl_draw.c.
References r_refdef_t::draw2dstage, viddef_mode_t::height, cvar_t::integer, viddef_t::mode, NULL, r_refdef, R_ResetViewRendering2D_Common(), vid, vid_conheight, vid_conwidth, and viddef_mode_t::width.
Referenced by R_RenderView(), and SCR_DrawScreen().
float DrawQ_String | ( | float | x, |
float | y, | ||
const char * | text, | ||
size_t | maxlen, | ||
float | scalex, | ||
float | scaley, | ||
float | basered, | ||
float | basegreen, | ||
float | baseblue, | ||
float | basealpha, | ||
int | flags, | ||
int * | outcolor, | ||
qbool | ignorecolorcodes, | ||
const dp_font_t * | fnt ) |
Definition at line 1320 of file gl_draw.c.
References DrawQ_String_Scale(), flags, and w.
Referenced by CL_DrawVideo_DisplaySubtitleLine(), Con_DisplayLineFunc(), Con_DrawConsole(), Con_DrawInput(), M_DrawCharacter(), M_ItemPrint(), M_Print(), M_PrintColored(), M_PrintRed(), R_Shadow_EditLights_DrawSelectedLightProperties(), R_TimeReport_EndFrame(), Sbar_DeathmatchOverlay(), Sbar_DrawCharacter(), Sbar_DrawString(), Sbar_DrawWeapon(), Sbar_PrintScoreboardItem(), Sbar_ShowFPS(), SCR_DrawCenterString(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawLoadingStack_r(), SCR_DrawNetGraph_DrawGraph(), SCR_DrawQWDownload(), and SCR_DrawTouchscreenOverlay().
float DrawQ_String_Scale | ( | float | x, |
float | y, | ||
const char * | text, | ||
size_t | maxlen, | ||
float | sizex, | ||
float | sizey, | ||
float | scalex, | ||
float | scaley, | ||
float | basered, | ||
float | basegreen, | ||
float | baseblue, | ||
float | basealpha, | ||
int | flags, | ||
int * | outcolor, | ||
qbool | ignorecolorcodes, | ||
const dp_font_t * | fnt ) |
Definition at line 1085 of file gl_draw.c.
References CL_Mesh_UI, Draw_GetPicHeight(), Draw_GetPicWidth(), DrawQ_Color, DrawQ_GetTextColor(), DrawQ_TextWidth_UntilWidth_TrackColors_Scale(), flags, Font_GetKerningForMap(), Font_GetMapForChar(), Font_IndexForSize(), Font_MapForIndex(), dp_font_t::ft2, ft2_oldstyle_map, viddef_mode_t::height, i, int(), cvar_t::integer, MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_BLENDED, MATERIALFLAG_NOSHADOW, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_WALL, mod(), Mod_Mesh_AddSurface(), Mod_Mesh_AddTriangle(), Mod_Mesh_GetTexture(), Mod_Mesh_IndexForVertex(), viddef_t::mode, NULL, dp_font_t::pic, r_draw2d, r_draw2d_force, r_nearest_conchars, r_textshadow, RGBstring_to_colorindex(), ft2_settings_t::scale, dp_font_t::settings, snap_to_pixel_x(), snap_to_pixel_y(), STRING_COLOR_DEFAULT, STRING_COLOR_RGB_TAG_CHAR, STRING_COLOR_TAG, sw, TEXF_ALPHA, TEXF_CLAMP, u8_getnchar, v, cvar_t::value, vid, vid_conheight, vid_conwidth, ft2_settings_t::voffset, w, viddef_mode_t::width, dp_font_t::width_of, dp_font_t::width_of_ft2, x, and y.
Referenced by DrawQ_String(), VM_drawcharacter(), VM_drawcolorcodedstring(), and VM_drawstring().
void DrawQ_SuperPic | ( | float | x, |
float | y, | ||
cachepic_t * | pic, | ||
float | width, | ||
float | height, | ||
float | s1, | ||
float | t1, | ||
float | r1, | ||
float | g1, | ||
float | b1, | ||
float | a1, | ||
float | s2, | ||
float | t2, | ||
float | r2, | ||
float | g2, | ||
float | b2, | ||
float | a2, | ||
float | s3, | ||
float | t3, | ||
float | r3, | ||
float | g3, | ||
float | b3, | ||
float | a3, | ||
float | s4, | ||
float | t4, | ||
float | r4, | ||
float | g4, | ||
float | b4, | ||
float | a4, | ||
int | flags ) |
Definition at line 1380 of file gl_draw.c.
References CL_Mesh_UI, Draw_CachePic(), Draw_GetPicTexture(), flags, height, MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_BLENDED, MATERIALFLAG_NOSHADOW, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_WALL, mod(), Mod_Mesh_AddSurface(), Mod_Mesh_AddTriangle(), Mod_Mesh_GetTexture(), Mod_Mesh_IndexForVertex(), width, x, and y.
Referenced by CL_DrawVideo(), Con_DrawConsole(), M_Options_ColorControl_Draw(), Sbar_Draw(), Sbar_DrawGauge(), and VM_drawsubpic().
float DrawQ_TextWidth | ( | const char * | text, |
size_t | maxlen, | ||
float | w, | ||
float | h, | ||
qbool | ignorecolorcodes, | ||
const dp_font_t * | fnt ) |
Definition at line 1330 of file gl_draw.c.
References DrawQ_TextWidth_UntilWidth(), and w.
Referenced by CL_DrawVideo_WordWidthFunc(), Con_DrawConsole(), Con_DrawInput(), Con_WordWidthFunc(), Sbar_ShowFPS(), SCR_DrawCenterString(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawLoadingStack_r(), SCR_DrawQWDownload(), and SCR_DrawTouchscreenOverlay().
float DrawQ_TextWidth_UntilWidth | ( | const char * | text, |
size_t * | maxlen, | ||
float | w, | ||
float | h, | ||
qbool | ignorecolorcodes, | ||
const dp_font_t * | fnt, | ||
float | maxWidth ) |
Definition at line 1335 of file gl_draw.c.
References DrawQ_TextWidth_UntilWidth_TrackColors(), NULL, and w.
Referenced by CL_DrawVideo_WordWidthFunc(), Con_WordWidthFunc(), and DrawQ_TextWidth().
float DrawQ_TextWidth_UntilWidth_TrackColors | ( | const char * | text, |
size_t * | maxlen, | ||
float | w, | ||
float | h, | ||
int * | outcolor, | ||
qbool | ignorecolorcodes, | ||
const dp_font_t * | fnt, | ||
float | maxwidth ) |
Definition at line 1325 of file gl_draw.c.
References DrawQ_TextWidth_UntilWidth_TrackColors_Scale(), and w.
Referenced by Con_DrawInput(), and DrawQ_TextWidth_UntilWidth().
float DrawQ_TextWidth_UntilWidth_TrackColors_Scale | ( | const char * | text, |
size_t * | maxlen, | ||
float | w, | ||
float | h, | ||
float | sw, | ||
float | sh, | ||
int * | outcolor, | ||
qbool | ignorecolorcodes, | ||
const dp_font_t * | fnt, | ||
float | maxwidth ) |
Definition at line 928 of file gl_draw.c.
References Font_GetKerningForMap(), Font_GetMapForChar(), Font_IndexForSize(), Font_MapForIndex(), dp_font_t::ft2, ft2_oldstyle_map, i, int(), NULL, RGBstring_to_colorindex(), ft2_settings_t::scale, dp_font_t::settings, STRING_COLOR_DEFAULT, STRING_COLOR_RGB_TAG_CHAR, STRING_COLOR_TAG, sw, u8_getnchar, w, dp_font_t::width_of, dp_font_t::width_of_ft2, and x.
Referenced by DrawQ_String_Scale(), DrawQ_TextWidth_UntilWidth_TrackColors(), and VM_stringwidth().
|
extern |
Definition at line 50 of file gl_draw.c.
Referenced by FindFont(), font_shutdown(), getdrawfont(), getdrawfontnum(), GL_Draw_Init(), gl_draw_start(), LoadFont_f(), and VM_loadfont().
|
extern |
Definition at line 1084 of file gl_draw.c.
Referenced by DrawQ_String_Scale(), and VM_drawcolorcodedstring().
|
extern |
Definition at line 76 of file gl_draw.c.
Referenced by gl_draw_shutdown(), gl_draw_start(), and LoadFont().
|
extern |
color tag printing
Definition at line 853 of file gl_draw.c.
Referenced by Con_MaskPrint(), and DrawQ_GetTextColor().