![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"#include "image.h"#include "wad.h"#include "cl_video.h"#include "ft2.h"#include "ft2_fontdefs.h"Go to the source code of this file.
Data Structures | |
| struct | cachepic_t |
Macros | |
| #define | STRING_COLORS_COUNT (sizeof(string_colors) / sizeof(vec4_t)) |
Variables | |
| static cachepic_t * | cachepichash [CACHEPICHASHSIZE] |
| static cachepic_t | cachepics [MAX_CACHED_PICS] |
| int | con_linewidth |
| cvar_t | developer_font |
| dp_fonts_t | dp_fonts |
| int | draw_frame = 1 |
| float | DrawQ_Color [4] |
| rtexturepool_t * | drawtexturepool |
| static mempool_t * | fonts_mempool = NULL |
| static int | numcachepics |
| qbool | r_draw2d_force = false |
| cvar_t | r_font_always_reload = {CF_CLIENT | CF_ARCHIVE, "r_font_always_reload", "0", "reload a font even given the same loadfont command. useful for trying out different versions of the same font file"} |
| cvar_t | r_font_antialias = {CF_CLIENT | CF_ARCHIVE, "r_font_antialias", "1", "0 = monochrome, 1 = grey" } |
| cvar_t | r_font_hinting = {CF_CLIENT | CF_ARCHIVE, "r_font_hinting", "3", "0 = no hinting, 1 = light autohinting, 2 = full autohinting, 3 = full hinting"} |
| cvar_t | r_font_postprocess_blur = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_blur", "0", "font blur amount"} |
| cvar_t | r_font_postprocess_outline = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_outline", "0", "font outline amount"} |
| cvar_t | r_font_postprocess_shadow_x = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_shadow_x", "0", "font shadow X shift amount, applied during outlining"} |
| cvar_t | r_font_postprocess_shadow_y = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_shadow_y", "0", "font shadow Y shift amount, applied during outlining"} |
| cvar_t | r_font_postprocess_shadow_z = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_shadow_z", "0", "font shadow Z shift amount, applied during blurring"} |
| cvar_t | r_nearest_2d = {CF_CLIENT | CF_ARCHIVE, "r_nearest_2d", "0", "use nearest filtering on all 2d textures (including conchars)"} |
| cvar_t | r_nearest_conchars = {CF_CLIENT | CF_ARCHIVE, "r_nearest_conchars", "0", "use nearest filtering on conchars texture"} |
| cvar_t | r_textbrightness = {CF_SHARED | CF_ARCHIVE, "r_textbrightness", "0", "additional brightness for text color codes (0 keeps colors as is, 1 makes them all white)"} |
| cvar_t | r_textcontrast = {CF_SHARED | CF_ARCHIVE, "r_textcontrast", "1", "additional contrast for text color codes (1 keeps colors as is, 0 makes them all black)"} |
| cvar_t | r_textshadow = {CF_CLIENT | CF_ARCHIVE, "r_textshadow", "0", "draws a shadow on all text to improve readability (note: value controls offset, 1 = 1 pixel, 1.5 = 1.5 pixels, etc)"} |
| const vec4_t | string_colors [] |
| color tag printing | |
| #define STRING_COLORS_COUNT (sizeof(string_colors) / sizeof(vec4_t)) |
| 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(), 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, numcachepics, and R_SkinFrame_PurgeSkinFrame().
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_bgra, | ||
| 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(), 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 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, GL_DepthMask(), MESH_UI, mod(), Mod_Mesh_Finalize(), Mod_Mesh_Reset(), r_draw2d, r_draw2d_force, R_DrawModelSurfaces(), r_refdef, and r_textureframe.
Referenced by DrawQ_Finish(), DrawQ_RecalcView(), DrawQ_ResetClipArea(), and DrawQ_SetClipArea().
|
static |
Definition at line 883 of file gl_draw.c.
References a, b, bound, color, g, r, r_textbrightness, r_textcontrast, string_colors, Vector4Copy, and Vector4Set.
Referenced by DrawQ_String_Scale().
| 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(), flags, g, 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(), r, vid, vid_conheight, vid_conwidth, 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 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, int(), r_refdef, RENDERPATH_GL32, RENDERPATH_GLES2, vid, vid_conheight, vid_conwidth, width, x, and y.
Referenced by VM_drawsetcliparea().
Definition at line 789 of file gl_draw.c.
References NULL, r_refdef, R_ResetViewRendering2D_Common(), vid, vid_conheight, and vid_conwidth.
Referenced by R_RenderView(), and SCR_DrawScreen().
| float DrawQ_String | ( | float | startx, |
| float | starty, | ||
| const char * | text, | ||
| size_t | maxlen, | ||
| float | w, | ||
| float | h, | ||
| 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 | startx, |
| float | starty, | ||
| const char * | text, | ||
| size_t | maxlen, | ||
| float | w, | ||
| float | h, | ||
| float | sw, | ||
| float | sh, | ||
| 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, int(), 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(), 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, vid, vid_conheight, vid_conwidth, ft2_settings_t::voffset, w, 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, 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().
Definition at line 481 of file gl_draw.c.
References Con_Printf(), developer_font, dp_fonts, dp_strlcpy, FONTS_EXPAND, fonts_mempool, Mem_Realloc, and NULL.
Referenced by LoadFont_f(), and VM_loadfont().
Definition at line 747 of file gl_draw.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), dp_fonts, dp_strlcpy, dpsnprintf(), FONT_CENTERPRINT, FONT_CHAT, FONT_CONSOLE, FONT_DEFAULT, FONT_INFOBAR, FONT_MENU, FONT_NOTIFY, FONT_SBAR, FONT_USER, fonts_mempool, gl_draw_newmap(), gl_draw_shutdown(), gl_draw_start(), LoadFont_f(), MAX_FONTS, MAX_USERFONTS, Mem_Alloc, Mem_AllocPool, NULL, r_font_always_reload, r_font_antialias, r_font_hinting, r_font_postprocess_blur, r_font_postprocess_outline, r_font_postprocess_shadow_x, r_font_postprocess_shadow_y, r_font_postprocess_shadow_z, r_nearest_2d, r_nearest_conchars, R_RegisterModule(), r_textbrightness, r_textcontrast, and r_textshadow.
Referenced by Render_Init().
Definition at line 733 of file gl_draw.c.
References cachepics, font_newmap(), numcachepics, and R_SkinFrame_MarkUsed().
Referenced by GL_Draw_Init().
Definition at line 723 of file gl_draw.c.
References cachepichash, drawtexturepool, font_shutdown(), numcachepics, and R_FreeTexturePool().
Referenced by GL_Draw_Init().
Definition at line 706 of file gl_draw.c.
References cachepichash, dp_fonts, drawtexturepool, font_start(), LoadFont(), numcachepics, R_AllocTexturePool(), and va().
Referenced by GL_Draw_Init().
Definition at line 330 of file gl_draw.c.
References ft2_settings_t::antialias, ft2_settings_t::blur, CACHEPICFLAG_FAILONMISSING, CACHEPICFLAG_NEAREST, CACHEPICFLAG_NOCOMPRESSION, CACHEPICFLAG_QUIET, COM_ParseToken_Simple(), com_token, Con_DPrintf(), con_linewidth, dp_strlcpy, dpsnprintf(), Draw_CachePic_Flags(), Draw_IsPicLoaded(), drawtexturepool, dp_font_t::fallbacks, FONT_CONSOLE, Font_LoadFont(), Font_MapForIndex(), Font_SnapTo(), Font_UnloadFont(), FS_LoadFile(), dp_font_t::ft2, ft2_settings_t::hinting, max, MAX_FONT_FALLBACKS, MAX_FONT_SIZES, MAX_QPATH, dp_font_t::maxwidth, Mem_Free, name, NULL, ft2_settings_t::outline, dp_font_t::pic, r_font_antialias, r_font_hinting, r_font_postprocess_blur, r_font_postprocess_outline, r_font_postprocess_shadow_x, r_font_postprocess_shadow_y, r_font_postprocess_shadow_z, r_nearest_conchars, dp_font_t::req_face, ft2_settings_t::scale, scale, dp_font_t::settings, ft2_settings_t::shadowx, ft2_settings_t::shadowy, ft2_settings_t::shadowz, tempmempool, dp_font_t::texpath, ft2_settings_t::voffset, dp_font_t::width_of, and dp_font_t::width_of_ft2.
Referenced by gl_draw_start(), LoadFont_f(), and VM_loadfont().
|
static |
Definition at line 544 of file gl_draw.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_DPrintf(), Con_Printf(), CON_WARN, dp_fonts, dp_strlcpy, f, FindFont(), LoadFont(), MAX_FONT_CMDLINE, MAX_FONT_FALLBACKS, MAX_FONT_SIZES, MAX_QPATH, NULL, r_font_always_reload, and scale.
Referenced by GL_Draw_Init().
|
static |
Definition at line 906 of file gl_draw.c.
Referenced by DrawQ_String_Scale(), and DrawQ_TextWidth_UntilWidth_TrackColors_Scale().
Definition at line 518 of file gl_draw.c.
References int(), vid, vid_conwidth, and x.
Referenced by DrawQ_String_Scale().
Definition at line 531 of file gl_draw.c.
References int(), vid, vid_conheight, and y.
Referenced by DrawQ_String_Scale().
|
static |
Definition at line 72 of file gl_draw.c.
Referenced by Draw_CachePic_Flags(), Draw_FreePic(), Draw_NewPic(), gl_draw_shutdown(), and gl_draw_start().
|
static |
Definition at line 73 of file gl_draw.c.
Referenced by Draw_CachePic_Flags(), Draw_Frame(), Draw_NewPic(), and gl_draw_newmap().
|
extern |
Definition at line 94 of file console.c.
Referenced by Con_CenterPrintf(), Con_CheckResize(), Con_DisplayList(), Con_Init(), Con_Quakebar(), FS_ListDirectory(), and LoadFont().
|
extern |
Definition at line 61 of file ft2.c.
Referenced by FindFont(), Font_Init(), and Font_LoadMap().
| dp_fonts_t dp_fonts |
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().
| int draw_frame = 1 |
Definition at line 78 of file gl_draw.c.
Referenced by Draw_CachePic_Flags(), Draw_Frame(), Draw_FreePic(), Draw_GetPicTexture(), and Draw_NewPic().
| float DrawQ_Color[4] |
Definition at line 1084 of file gl_draw.c.
Referenced by DrawQ_String_Scale(), and VM_drawcolorcodedstring().
| rtexturepool_t* drawtexturepool |
Definition at line 76 of file gl_draw.c.
Referenced by gl_draw_shutdown(), gl_draw_start(), and LoadFont().
Definition at line 51 of file gl_draw.c.
Referenced by FindFont(), and GL_Draw_Init().
|
static |
Definition at line 74 of file gl_draw.c.
Referenced by Draw_CachePic_Flags(), Draw_Frame(), Draw_NewPic(), gl_draw_newmap(), gl_draw_shutdown(), and gl_draw_start().
Definition at line 795 of file gl_draw.c.
Referenced by Con_DrawConsole(), DrawQ_FlushUI(), DrawQ_String_Scale(), R_TimeReport_EndFrame(), and Sbar_ShowFPS().
| cvar_t r_font_always_reload = {CF_CLIENT | CF_ARCHIVE, "r_font_always_reload", "0", "reload a font even given the same loadfont command. useful for trying out different versions of the same font file"} |
Definition at line 65 of file gl_draw.c.
Referenced by GL_Draw_Init(), and LoadFont_f().
| cvar_t r_font_antialias = {CF_CLIENT | CF_ARCHIVE, "r_font_antialias", "1", "0 = monochrome, 1 = grey" } |
Definition at line 64 of file gl_draw.c.
Referenced by GL_Draw_Init(), and LoadFont().
| cvar_t r_font_hinting = {CF_CLIENT | CF_ARCHIVE, "r_font_hinting", "3", "0 = no hinting, 1 = light autohinting, 2 = full autohinting, 3 = full hinting"} |
Definition at line 63 of file gl_draw.c.
Referenced by GL_Draw_Init(), and LoadFont().
| cvar_t r_font_postprocess_blur = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_blur", "0", "font blur amount"} |
| cvar_t r_font_postprocess_outline = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_outline", "0", "font outline amount"} |
| cvar_t r_font_postprocess_shadow_x = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_shadow_x", "0", "font shadow X shift amount, applied during outlining"} |
Definition at line 60 of file gl_draw.c.
Referenced by GL_Draw_Init(), and LoadFont().
| cvar_t r_font_postprocess_shadow_y = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_shadow_y", "0", "font shadow Y shift amount, applied during outlining"} |
Definition at line 61 of file gl_draw.c.
Referenced by GL_Draw_Init(), and LoadFont().
| cvar_t r_font_postprocess_shadow_z = {CF_CLIENT | CF_ARCHIVE, "r_font_postprocess_shadow_z", "0", "font shadow Z shift amount, applied during blurring"} |
Definition at line 62 of file gl_draw.c.
Referenced by GL_Draw_Init(), and LoadFont().
| cvar_t r_nearest_2d = {CF_CLIENT | CF_ARCHIVE, "r_nearest_2d", "0", "use nearest filtering on all 2d textures (including conchars)"} |
Definition at line 66 of file gl_draw.c.
Referenced by Draw_CachePic_Flags(), and GL_Draw_Init().
| cvar_t r_nearest_conchars = {CF_CLIENT | CF_ARCHIVE, "r_nearest_conchars", "0", "use nearest filtering on conchars texture"} |
Definition at line 67 of file gl_draw.c.
Referenced by DrawQ_String_Scale(), GL_Draw_Init(), and LoadFont().
| cvar_t r_textbrightness = {CF_SHARED | CF_ARCHIVE, "r_textbrightness", "0", "additional brightness for text color codes (0 keeps colors as is, 1 makes them all white)"} |
Definition at line 55 of file gl_draw.c.
Referenced by Con_MaskPrint(), DrawQ_GetTextColor(), and GL_Draw_Init().
| cvar_t r_textcontrast = {CF_SHARED | CF_ARCHIVE, "r_textcontrast", "1", "additional contrast for text color codes (1 keeps colors as is, 0 makes them all black)"} |
Definition at line 56 of file gl_draw.c.
Referenced by Con_MaskPrint(), DrawQ_GetTextColor(), and GL_Draw_Init().
| cvar_t r_textshadow = {CF_CLIENT | CF_ARCHIVE, "r_textshadow", "0", "draws a shadow on all text to improve readability (note: value controls offset, 1 = 1 pixel, 1.5 = 1.5 pixels, etc)"} |
Definition at line 53 of file gl_draw.c.
Referenced by DrawQ_String_Scale(), and GL_Draw_Init().
| const vec4_t string_colors[] |
color tag printing
Definition at line 853 of file gl_draw.c.
Referenced by Con_MaskPrint(), and DrawQ_GetTextColor().