Header for certain screen operations. More...
Go to the source code of this file.
Functions | |
void | SCR_Init (void) |
void | SCR_UpdateScreen (void) |
This is called every frame, and can also be called explicitly to flush text to the screen. | |
void | SCR_BeginLoadingPlaque (void) |
void | SCR_EndLoadingPlaque (void) |
void | SCR_RunConsole (void) |
Scroll it up or down. | |
void | SCR_DrawPrecacheScreen (qboolean string) |
Precache and loading screen at startup. |
Header for certain screen operations.
Definition in file cl_screen.h.
void SCR_BeginLoadingPlaque | ( | void | ) |
Definition at line 348 of file cl_screen.c.
void SCR_DrawPrecacheScreen | ( | qboolean | string | ) |
Precache and loading screen at startup.
[in] | string | Draw the loading string - if the scripts are not parsed, this is not possible, so use qfalse for very early calls |
Definition at line 106 of file cl_screen.c.
References ALIGN_UC, cls, image_s::height, it_pic, client_static_s::loadingPercent, qfalse, R_BeginFrame(), R_DrawImage(), R_EndFrame(), R_FindImage(), SCR_DrawLoadingBar(), UI_DrawString(), viddef, viddef_t::virtualHeight, viddef_t::virtualWidth, and image_s::width.
Referenced by CL_PrecacheCharacterModels(), and CL_ViewPrecacheModels().
void SCR_EndLoadingPlaque | ( | void | ) |
Definition at line 359 of file cl_screen.c.
void SCR_Init | ( | void | ) |
Definition at line 470 of file cl_screen.c.
References Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), qtrue, SCR_TimeRefresh_f(), SCR_TouchPics(), and screenInitialized.
Referenced by CL_Init().
void SCR_RunConsole | ( | void | ) |
Scroll it up or down.
Definition at line 288 of file cl_screen.c.
References cls, client_static_s::frametime, key_console, client_static_s::keyDest, scr_con_current, scr_conlines, and cvar_s::value.
Referenced by CL_Frame().
void SCR_UpdateScreen | ( | void | ) |
This is called every frame, and can also be called explicitly to flush text to the screen.
Definition at line 410 of file cl_screen.c.
References rendererData_t::aliasCount, rendererData_t::brushCount, ca_disconnected, ca_sequence, cl_fps, CL_Milliseconds(), CL_OnBattlescape(), CL_SequenceRender(), CL_ViewRender(), cls, Com_Printf(), con_fontWidth, client_static_s::disableScreen, client_static_s::framerate, cvar_s::integer, qtrue, R_BeginFrame(), R_DrawChars(), R_EndFrame(), rendererData_t::ready, refdef, SCR_DrawConsole(), SCR_DrawCursor(), SCR_DrawLoading(), SCR_DrawString(), SCR_EndLoadingPlaque(), screenDrawLoading, screenInitialized, client_static_s::state, UI_Draw(), UI_GetActiveRenderRect(), va(), viddef, viddef_t::viewHeight, viddef_t::viewWidth, viddef_t::width, viddef_t::x, and viddef_t::y.
Referenced by CL_Frame(), CL_SendCommand(), CL_ViewLoadMedia(), Key_Console(), and SCR_BeginLoadingPlaque().