UFO: Alien Invasion
|
Shared client functions for windowed and fullscreen graphics interface module. More...
#include "cl_video.h"
#include "client.h"
#include "battlescape/cl_view.h"
#include "renderer/r_main.h"
#include "renderer/r_sdl.h"
#include "ui/ui_main.h"
#include "cgame/cl_game.h"
Go to the source code of this file.
Functions | |
int | VID_GetModeNums (void) |
Returns the amount of available video modes. More... | |
bool | VID_GetModeInfo (int modeIndex, vidmode_t *modeInfo) |
static void | VID_Restart_f (void) |
Perform a renderer restart. More... | |
static bool | CL_CvarCheckVidGamma (cvar_t *cvar) |
static bool | CL_CvarCheckVidMode (cvar_t *cvar) |
void | VID_Minimize (void) |
void | VID_Init (void) |
Variables | |
viddef_t | viddef |
cvar_t * | vid_stretch |
cvar_t * | vid_fullscreen |
cvar_t * | vid_mode |
cvar_t * | vid_grabmouse |
cvar_t * | vid_gamma |
cvar_t * | vid_ignoregamma |
static cvar_t * | vid_height |
static cvar_t * | vid_width |
static const vidmode_t | vid_modes [] |
All possible video modes. More... | |
Shared client functions for windowed and fullscreen graphics interface module.
Definition in file cl_video.cpp.
|
static |
Definition at line 137 of file cl_video.cpp.
References Cvar_AssertValue().
Referenced by VID_Init().
|
static |
Definition at line 142 of file cl_video.cpp.
References Cvar_AssertValue(), and VID_GetModeNums().
Referenced by VID_Init().
Definition at line 88 of file cl_video.cpp.
References Com_Printf(), r_sdl_config_s::desktopHeight, r_sdl_config_s::desktopWidth, vidmode_s::height, cvar_s::integer, r_sdl_config_s::modes, r_sdl_config_s::numModes, r_sdl_config, VID_GetModeNums(), and vidmode_s::width.
Referenced by CL_VideoInitMenu(), and R_SetMode().
Returns the amount of available video modes.
Definition at line 81 of file cl_video.cpp.
References lengthof, r_sdl_config_s::numModes, and r_sdl_config.
Referenced by CL_CvarCheckVidMode(), CL_VideoInitMenu(), and VID_GetModeInfo().
Definition at line 159 of file cl_video.cpp.
References CL_CvarCheckVidGamma(), CL_CvarCheckVidMode(), Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), CVAR_R_CONTEXT, Cvar_SetCheckFunction(), Mem_CreatePool, R_Init(), vid_genericPool, vid_imagePool, vid_lightPool, VID_Minimize(), vid_modelPool, and VID_Restart_f().
Referenced by CL_Init().
Definition at line 147 of file cl_video.cpp.
References cls.
Referenced by CL_OpenURL_f(), and VID_Init().
Perform a renderer restart.
Definition at line 120 of file cl_video.cpp.
References CL_ViewPrecacheModels(), Com_Printf(), GAME_ReloadMode(), R_Init(), R_Shutdown(), rendererData_t::ready, refdef, and UI_Reinit().
Referenced by VID_Init().
cvar_t* vid_fullscreen |
Definition at line 37 of file cl_video.cpp.
Referenced by IN_Frame(), R_SetMode(), and R_UpdateVidDef().
cvar_t* vid_gamma |
Definition at line 40 of file cl_video.cpp.
Referenced by R_EndFrame().
cvar_t* vid_grabmouse |
Definition at line 39 of file cl_video.cpp.
Referenced by IN_Frame().
|
static |
Definition at line 42 of file cl_video.cpp.
cvar_t* vid_ignoregamma |
Definition at line 41 of file cl_video.cpp.
Referenced by R_EndFrame().
cvar_t* vid_mode |
Definition at line 38 of file cl_video.cpp.
Referenced by IN_Frame(), R_SetMode(), and R_UpdateVidDef().
|
static |
All possible video modes.
Definition at line 48 of file cl_video.cpp.
cvar_t* vid_stretch |
Definition at line 36 of file cl_video.cpp.
Referenced by R_SetMode(), and R_UpdateVidDef().
|
static |
Definition at line 43 of file cl_video.cpp.
viddef_t viddef |
Definition at line 34 of file cl_video.cpp.
Referenced by CIN_SetParameters(), CL_BattlescapeRadarGenPreview_f(), CL_BattlescapeRadarMapInFrameBuffer(), CL_CameraMove(), CL_GetKeyMouseState(), CL_GetWorldCoordsUnderMouse(), CL_ViewRender(), CL_ViewUpdateRenderData(), Con_CheckResize(), Con_DrawConsole(), uiWindowNode::doLayout(), uiWindowNode::draw(), HUD_DrawMouseCursorText(), HUD_UpdateCursor(), IN_Frame(), IN_JoystickMove(), IN_Parse(), MYgluPerspective(), uiControlNode::onCapturedMouseMove(), uiWindowNode::onLoading(), uiWindowNode::onSizeChanged(), R_CleanupDepthBuffer(), R_Draw2DArray(), R_Draw2DMapMarkers(), R_Draw3DGlobe(), R_Draw3DMapMarkers(), R_DrawBloom(), R_DrawFill(), R_DrawFlatGeoscape(), R_DrawImage(), R_DrawModelDirect(), R_DrawRect(), R_DrawStretchImage(), R_FontDrawTexture(), R_InitFBObjects(), R_InitializeShader(), R_PushClipRect(), R_ScreenShot_f(), R_SetMode(), R_Setup2D(), R_Setup3D(), R_SetupFrustum(), R_SphereRender(), R_UpdateVidDef(), SCR_DrawConsole(), SCR_DrawDownloading(), SCR_DrawLoading(), SCR_DrawLoadingScreen(), SCR_UpdateScreen(), SEQ_Render3D(), UI_DrawNode(), UI_DrawNormImage(), UI_DrawNotice(), UI_InvalidateStack(), UI_SetRenderRect(), and UI_Transform().