UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_screen.h File Reference

Header for certain screen operations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SCR_Init (void)
void SCR_Shutdown (void)
void SCR_ChangeCursor (int cursor)
void SCR_UpdateScreen (void)
 This is called every frame, and can also be called explicitly to flush text to the screen.
void SCR_DrawLoading (int percent)
 Draws the current loading pic of the map from base/pics/maps/loading.
void SCR_BeginLoadingPlaque (void)
void SCR_EndLoadingPlaque (void)
void SCR_RunConsole (void)
 Scroll it up or down.
void SCR_DrawLoadingScreen (bool string, int percent)
 Precache and loading screen at startup.

Detailed Description

Header for certain screen operations.

Definition in file cl_screen.h.

Function Documentation

◆ SCR_BeginLoadingPlaque()

void SCR_BeginLoadingPlaque ( void )

◆ SCR_ChangeCursor()

void SCR_ChangeCursor ( int cursor)

Definition at line 370 of file cl_screen.cpp.

References Cvar_SetValue().

Referenced by CL_ActorMouseTrace(), IN_SetMouseSpace(), and SCR_TouchPics().

◆ SCR_DrawLoading()

void SCR_DrawLoading ( int percent)

Draws the current loading pic of the map from base/pics/maps/loading.

See also
SCR_DrawLoadingBar

Definition at line 140 of file cl_screen.cpp.

References cls, R_BeginFrame(), R_EndFrame(), SCR_DrawDownloading(), SCR_DrawLoadingBar(), UI_Draw(), and viddef.

Referenced by CL_SendCommand(), and CL_ViewLoadMedia().

◆ SCR_DrawLoadingScreen()

void SCR_DrawLoadingScreen ( bool string,
int percent )

Precache and loading screen at startup.

See also
CL_InitAfter
Parameters
[in]stringDraw the loading string - if the scripts are not parsed, this is not possible, so use false for very early calls
percentProgress value for the status bar

Definition at line 100 of file cl_screen.cpp.

References ALIGN_UC, image_t::height, it_pic, R_BeginFrame(), R_DrawImage(), R_EndFrame(), R_FindImage(), SCR_DrawLoadingBar(), UI_DrawString(), viddef, and image_t::width.

Referenced by CL_Init(), CL_ParseClientData(), CL_PrecacheCharacterModels(), CL_ViewPrecacheModels(), and R_ReloadImages().

◆ SCR_EndLoadingPlaque()

void SCR_EndLoadingPlaque ( void )
See also
SCR_BeginLoadingPlaque

Definition at line 277 of file cl_screen.cpp.

◆ SCR_Init()

void SCR_Init ( void )
See also
CL_Init
Todo
remove me - but this was an archive cvar once

Definition at line 379 of file cl_screen.cpp.

References Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), scr_consize, scr_conspeed, scr_cursor, scr_rspeed, scr_showcursor, SCR_TimeRefresh_f(), SCR_TouchPics(), and screenInitialized.

Referenced by CL_Init().

◆ SCR_RunConsole()

void SCR_RunConsole ( void )

Scroll it up or down.

Definition at line 222 of file cl_screen.cpp.

References cls, key_console, scr_con_current, scr_conlines, scr_consize, and scr_conspeed.

Referenced by CL_Frame().

◆ SCR_Shutdown()

void SCR_Shutdown ( void )

Definition at line 397 of file cl_screen.cpp.

References screenInitialized.

Referenced by CL_Shutdown().

◆ SCR_UpdateScreen()

void SCR_UpdateScreen ( void )