UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_screen.h File Reference

Header for certain screen operations. More...

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. More...
 
void SCR_DrawLoading (int percent)
 Draws the current loading pic of the map from base/pics/maps/loading. More...
 
void SCR_BeginLoadingPlaque (void)
 
void SCR_EndLoadingPlaque (void)
 
void SCR_RunConsole (void)
 Scroll it up or down. More...
 
void SCR_DrawLoadingScreen (bool string, int percent)
 Precache and loading screen at startup. More...
 

Detailed Description

Header for certain screen operations.

Definition in file cl_screen.h.

Function Documentation

void SCR_BeginLoadingPlaque ( void  )
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().

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, client_static_s::downloadName, R_BeginFrame(), R_EndFrame(), SCR_DrawDownloading(), SCR_DrawLoadingBar(), UI_Draw(), viddef, viddef_t::virtualHeight, and viddef_t::virtualWidth.

Referenced by CL_SendCommand(), and CL_ViewLoadMedia().

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_s::height, it_pic, 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_Init(), CL_ParseClientData(), CL_PrecacheCharacterModels(), CL_ViewPrecacheModels(), and R_ReloadImages().

void SCR_EndLoadingPlaque ( void  )
See also
SCR_BeginLoadingPlaque

Definition at line 277 of file cl_screen.cpp.

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(), cvar_s::flags, SCR_TimeRefresh_f(), SCR_TouchPics(), and screenInitialized.

Referenced by CL_Init().

void SCR_RunConsole ( void  )

Scroll it up or down.

Definition at line 222 of file cl_screen.cpp.

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_Shutdown ( void  )

Definition at line 397 of file cl_screen.cpp.

References screenInitialized.

Referenced by CL_Shutdown().