Go to the source code of this file.
Classes | |
struct | drawobj_t |
struct | chatline_t |
Macros | |
#define | STAT_PICS 11 |
#define | STAT_MINUS (STAT_PICS - 1) |
#define | SCR_DrawString(x, y, flags, string) SCR_DrawStringEx(x, y, flags, MAX_STRING_CHARS, string, scr.font_pic) |
#define | LAG_WIDTH 48 |
#define | LAG_HEIGHT 48 |
#define | LAG_CRIT_BIT (1 << 31) |
#define | LAG_WARN_BIT (1 << 30) |
#define | LAG_BASE 0xD5 |
#define | LAG_WARN 0xDC |
#define | LAG_CRIT 0xF2 |
#define | FOR_EACH_DRAWOBJ(obj) LIST_FOR_EACH(drawobj_t, obj, &scr_objects, entry) |
#define | FOR_EACH_DRAWOBJ_SAFE(obj, next) LIST_FOR_EACH_SAFE(drawobj_t, obj, next, &scr_objects, entry) |
#define | MAX_CHAT_TEXT 150 |
#define | MAX_CHAT_LINES 32 |
#define | CHAT_LINE_MASK (MAX_CHAT_LINES - 1) |
#define | DF(f) |
#define | ICON_WIDTH 24 |
#define | ICON_HEIGHT 24 |
#define | DIGIT_WIDTH 16 |
#define | ICON_SPACE 8 |
#define | HUD_DrawString(x, y, string) R_DrawString(x, y, 0, MAX_STRING_CHARS, string, scr.font_pic) |
#define | HUD_DrawAltString(x, y, string) R_DrawString(x, y, UI_XORCOLOR, MAX_STRING_CHARS, string, scr.font_pic) |
#define | HUD_DrawCenterString(x, y, string) SCR_DrawStringMulti(x, y, UI_CENTER, MAX_STRING_CHARS, string, scr.font_pic) |
#define | HUD_DrawAltCenterString(x, y, string) SCR_DrawStringMulti(x, y, UI_CENTER | UI_XORCOLOR, MAX_STRING_CHARS, string, scr.font_pic) |
#define | DISPLAY_ITEMS 17 |
Variables | |
struct { | |
qboolean initialized | |
qhandle_t crosshair_pic | |
int crosshair_width | |
int crosshair_height | |
color_t crosshair_color | |
qhandle_t pause_pic | |
int pause_width | |
int pause_height | |
qhandle_t loading_pic | |
int loading_width | |
int loading_height | |
qboolean draw_loading | |
qhandle_t sb_pics [2][STAT_PICS] | |
qhandle_t inven_pic | |
qhandle_t field_pic | |
qhandle_t backtile_pic | |
qhandle_t net_pic | |
qhandle_t font_pic | |
int hud_width | |
int hud_height | |
float hud_scale | |
float hud_alpha | |
} | scr |
cvar_t * | scr_viewsize |
static cvar_t * | scr_centertime |
static cvar_t * | scr_showpause |
static cvar_t * | scr_showturtle |
static cvar_t * | scr_showitemname |
static cvar_t * | scr_draw2d |
static cvar_t * | scr_lag_x |
static cvar_t * | scr_lag_y |
static cvar_t * | scr_lag_draw |
static cvar_t * | scr_lag_min |
static cvar_t * | scr_lag_max |
static cvar_t * | scr_alpha |
static cvar_t * | scr_fps |
static cvar_t * | scr_demobar |
static cvar_t * | scr_font |
static cvar_t * | scr_scale |
static cvar_t * | scr_crosshair |
static cvar_t * | scr_chathud |
static cvar_t * | scr_chathud_lines |
static cvar_t * | scr_chathud_time |
static cvar_t * | scr_chathud_x |
static cvar_t * | scr_chathud_y |
static cvar_t * | ch_health |
static cvar_t * | ch_red |
static cvar_t * | ch_green |
static cvar_t * | ch_blue |
static cvar_t * | ch_alpha |
static cvar_t * | ch_scale |
static cvar_t * | ch_x |
static cvar_t * | ch_y |
vrect_t | scr_vrect |
static const char *const | sb_nums [2][STAT_PICS] |
const uint32_t | colorTable [8] |
static char | scr_centerstring [MAX_STRING_CHARS] |
static unsigned | scr_centertime_start |
static int | scr_center_lines |
struct { | |
unsigned samples [LAG_WIDTH] | |
unsigned head | |
} | lag |
static chatline_t | scr_chatlines [MAX_CHAT_LINES] |
static unsigned | scr_chathead |
static const cmdreg_t | scr_cmds [] |
#define CHAT_LINE_MASK (MAX_CHAT_LINES - 1) |
#define DF | ( | f | ) |
#define FOR_EACH_DRAWOBJ | ( | obj | ) | LIST_FOR_EACH(drawobj_t, obj, &scr_objects, entry) |
#define FOR_EACH_DRAWOBJ_SAFE | ( | obj, | |
next | |||
) | LIST_FOR_EACH_SAFE(drawobj_t, obj, next, &scr_objects, entry) |
#define HUD_DrawAltCenterString | ( | x, | |
y, | |||
string | |||
) | SCR_DrawStringMulti(x, y, UI_CENTER | UI_XORCOLOR, MAX_STRING_CHARS, string, scr.font_pic) |
#define HUD_DrawAltString | ( | x, | |
y, | |||
string | |||
) | R_DrawString(x, y, UI_XORCOLOR, MAX_STRING_CHARS, string, scr.font_pic) |
#define HUD_DrawCenterString | ( | x, | |
y, | |||
string | |||
) | SCR_DrawStringMulti(x, y, UI_CENTER, MAX_STRING_CHARS, string, scr.font_pic) |
#define HUD_DrawString | ( | x, | |
y, | |||
string | |||
) | R_DrawString(x, y, 0, MAX_STRING_CHARS, string, scr.font_pic) |
#define SCR_DrawString | ( | x, | |
y, | |||
flags, | |||
string | |||
) | SCR_DrawStringEx(x, y, flags, MAX_STRING_CHARS, string, scr.font_pic) |
int CL_GetFps | ( | ) |
Definition at line 2374 of file main.c.
Referenced by SCR_DrawFPS().
int CL_GetResolutionScale | ( | ) |
Definition at line 2379 of file main.c.
Referenced by SCR_DrawFPS().
|
static |
void SCR_AddToChatHUD | ( | const char * | text | ) |
Definition at line 1424 of file screen.c.
Referenced by CL_Changing_f(), SCR_RunCinematic(), SV_InitGame(), and SV_SpawnServer().
void SCR_CenterPrint | ( | const char * | str | ) |
Definition at line 897 of file screen.c.
Referenced by CL_Disconnect().
|
static |
|
static |
|
static |
Definition at line 139 of file screen.c.
Referenced by Con_DrawSolidConsole(), draw_shadowed_string(), and SCR_DrawStringMulti().
Definition at line 1456 of file screen.c.
Referenced by CL_Disconnect(), Qcommon_Init(), SCR_PlayCinematic(), set_active_state(), and toggle_console().
|
static |
float SCR_FadeAlpha | ( | unsigned | startTime, |
unsigned | visTime, | ||
unsigned | fadeTime | ||
) |
Definition at line 193 of file screen.c.
Referenced by Con_DrawNotify(), SCR_DrawCenterString(), and SCR_DrawChatHUD().
|
static |
Definition at line 1322 of file screen.c.
Referenced by SCR_Init().
qhandle_t SCR_GetFont | ( | void | ) |
Definition at line 2196 of file screen.c.
Referenced by draw_shadowed_string().
Definition at line 532 of file screen.c.
Referenced by set_active_state().
qboolean SCR_ParseColor | ( | const char * | s, |
color_t * | color | ||
) |
Definition at line 215 of file screen.c.
Referenced by cl_railcore_color_changed(), cl_railspiral_color_changed(), Parse_Background(), Parse_Color(), Parse_File(), SCR_Draw_f(), and SCR_ExecuteLayoutString().
Definition at line 1297 of file screen.c.
Referenced by CL_InitRefresh(), CL_RestartFilesystem(), and CL_RestartRefresh().
|
static |
Definition at line 1327 of file screen.c.
Referenced by SCR_Init().
Definition at line 1242 of file screen.c.
Referenced by CL_DeltaFrame(), and scr_crosshair_changed().
void SCR_SetHudAlpha | ( | float | alpha | ) |
Definition at line 2201 of file screen.c.
Referenced by evaluate_reference_mode(), and R_BeginFrame_RTX().
Definition at line 1413 of file screen.c.
Referenced by CL_ShutdownRefresh().
Definition at line 2142 of file screen.c.
Referenced by BuildList(), CL_Changing_f(), CL_ConnectionlessPacket(), CL_Frame(), CL_LoadState(), CL_PlayDemo_f(), CL_PrepRefresh(), CL_Reconnect_f(), CL_Skins_f(), Con_Action(), PingServers(), and SCR_BeginLoadingPlaque().
|
static |
Definition at line 89 of file screen.c.
Referenced by scr_crosshair_changed(), and SCR_Init().
|
static |
Definition at line 88 of file screen.c.
Referenced by scr_crosshair_changed(), and SCR_Init().
|
static |
Definition at line 87 of file screen.c.
Referenced by scr_crosshair_changed(), and SCR_Init().
|
static |
Definition at line 85 of file screen.c.
Referenced by scr_crosshair_changed(), SCR_Init(), and SCR_SetCrosshairColor().
|
static |
Definition at line 86 of file screen.c.
Referenced by scr_crosshair_changed(), and SCR_Init().
|
static |
Definition at line 91 of file screen.c.
Referenced by scr_crosshair_changed(), and SCR_Init().
|
static |
Definition at line 92 of file screen.c.
Referenced by SCR_DrawCrosshair(), and SCR_Init().
|
static |
Definition at line 93 of file screen.c.
Referenced by SCR_DrawCrosshair(), and SCR_Init().
const uint32_t colorTable[8] |
Definition at line 118 of file screen.c.
Referenced by Con_DrawLine(), and SCR_ParseColor().
unsigned head |
Definition at line 529 of file screen.c.
Referenced by FIFO_Read(), GL_DrawChain(), and MVD_Play_f().
float hud_alpha |
Definition at line 51 of file screen.c.
Referenced by evaluate_reference_mode().
struct { ... } lag |
Referenced by SCR_LagClear(), SCR_LagDraw(), and SCR_LagSample().
unsigned samples[LAG_WIDTH] |
Definition at line 528 of file screen.c.
Referenced by AL_RawSamples(), GetWavinfo(), OGG_Read(), S_RawSamples(), and SCR_ReadNextFrame().
|
static |
Definition at line 107 of file screen.c.
Referenced by SCR_RegisterMedia().
struct { ... } scr |
Referenced by draw_percent_bar(), HUD_DrawNumber(), SCR_BeginLoadingPlaque(), SCR_CalcVrect(), scr_crosshair_changed(), SCR_Draw2D(), SCR_DrawActive(), SCR_DrawCenterString(), SCR_DrawChatHUD(), SCR_DrawCrosshair(), SCR_DrawFPS(), SCR_DrawInventory(), SCR_DrawLoading(), SCR_DrawNet(), SCR_DrawObjects(), SCR_DrawPause(), SCR_DrawTurtle(), SCR_ExecuteLayoutString(), scr_font_changed(), SCR_GetFont(), SCR_Init(), SCR_ModeChanged(), SCR_RegisterMedia(), scr_scale_changed(), SCR_SetCrosshairColor(), SCR_SetHudAlpha(), SCR_Shutdown(), and SCR_UpdateScreen().
|
static |
Definition at line 70 of file screen.c.
Referenced by SCR_Draw2D(), SCR_DrawCenterString(), SCR_DrawChatHUD(), SCR_DrawObjects(), SCR_DrawSelectedItemName(), SCR_ExecuteLayoutString(), and SCR_Init().
|
static |
Definition at line 452 of file screen.c.
Referenced by SCR_CenterPrint(), and SCR_DrawCenterString().
|
static |
Definition at line 450 of file screen.c.
Referenced by SCR_CenterPrint(), and SCR_DrawCenterString().
|
static |
Definition at line 55 of file screen.c.
Referenced by SCR_DrawCenterString(), and SCR_Init().
|
static |
Definition at line 451 of file screen.c.
Referenced by SCR_CenterPrint(), and SCR_DrawCenterString().
|
static |
Definition at line 895 of file screen.c.
Referenced by SCR_AddToChatHUD(), SCR_ClearChatHUD_f(), and SCR_DrawChatHUD().
|
static |
Definition at line 79 of file screen.c.
Referenced by SCR_DrawChatHUD(), and SCR_Init().
|
static |
Definition at line 80 of file screen.c.
Referenced by SCR_DrawChatHUD(), and SCR_Init().
|
static |
Definition at line 81 of file screen.c.
Referenced by SCR_DrawChatHUD(), and SCR_Init().
|
static |
Definition at line 82 of file screen.c.
Referenced by SCR_DrawChatHUD(), and SCR_Init().
|
static |
Definition at line 83 of file screen.c.
Referenced by SCR_DrawChatHUD(), and SCR_Init().
|
static |
Definition at line 894 of file screen.c.
Referenced by SCR_AddToChatHUD(), SCR_ClearChatHUD_f(), and SCR_DrawChatHUD().
|
static |
Definition at line 1332 of file screen.c.
Referenced by SCR_Init(), and SCR_Shutdown().
|
static |
Definition at line 77 of file screen.c.
Referenced by scr_crosshair_changed(), SCR_DrawCrosshair(), SCR_Init(), and SCR_RegisterMedia().
|
static |
Definition at line 73 of file screen.c.
Referenced by draw_percent_bar(), SCR_DrawDemo(), and SCR_Init().
|
static |
Definition at line 64 of file screen.c.
Referenced by SCR_Draw2D(), SCR_DrawLayout(), SCR_DrawStats(), and SCR_Init().
|
static |
Definition at line 74 of file screen.c.
Referenced by SCR_Init(), and SCR_RegisterMedia().
|
static |
Definition at line 71 of file screen.c.
Referenced by SCR_DrawFPS(), and SCR_Init().
|
static |
Definition at line 67 of file screen.c.
Referenced by SCR_DrawNet(), and SCR_Init().
|
static |
Definition at line 69 of file screen.c.
Referenced by SCR_Init(), and SCR_LagDraw().
|
static |
Definition at line 68 of file screen.c.
Referenced by SCR_Init(), and SCR_LagDraw().
|
static |
Definition at line 65 of file screen.c.
Referenced by SCR_DrawNet(), and SCR_Init().
|
static |
Definition at line 66 of file screen.c.
Referenced by SCR_DrawNet(), and SCR_Init().
|
static |
Definition at line 75 of file screen.c.
Referenced by SCR_Init(), and SCR_ModeChanged().
|
static |
Definition at line 62 of file screen.c.
Referenced by SCR_DrawSelectedItemName(), SCR_ExecuteLayoutString(), and SCR_Init().
|
static |
Definition at line 56 of file screen.c.
Referenced by SCR_DrawDemo(), SCR_DrawPause(), and SCR_Init().
|
static |
Definition at line 61 of file screen.c.
Referenced by SCR_DrawTurtle(), and SCR_Init().
cvar_t* scr_viewsize |
Definition at line 54 of file screen.c.
Referenced by get_render_extent(), R_BeginFrame_RTX(), R_Init_RTX(), SCR_Init(), SCR_SizeDown_f(), SCR_SizeUp_f(), and viewsize_changed().
vrect_t scr_vrect |
Definition at line 105 of file screen.c.
Referenced by SCR_CalcVrect(), and V_RenderView().