cl_video.c File Reference

Shared client functions for windowed and fullscreen graphics interface module. More...

#include "client.h"
#include "battlescape/cl_view.h"
#include "renderer/r_main.h"
#include "renderer/r_sdl.h"
#include "ui/ui_main.h"
#include "cl_game.h"
Include dependency graph for cl_video.c:

Go to the source code of this file.

Functions

int VID_GetModeNums (void)
 Returns the amount of available video modes.
qboolean VID_GetModeInfo (int modeIndex, vidmode_t *modeInfo)
void VID_Restart_f (void)
 Perform a renderer restart.
static qboolean CL_CvarCheckVidGamma (cvar_t *cvar)
static qboolean CL_CvarCheckVidMode (cvar_t *cvar)
void VID_Init (void)

Variables

viddef_t viddef
cvar_tvid_strech
cvar_tvid_fullscreen
cvar_tvid_mode
cvar_tvid_grabmouse
cvar_tvid_gamma
cvar_tvid_ignoregamma
static cvar_tvid_height
static cvar_tvid_width
static const vidmode_t vid_modes []
 All possible video modes.

Detailed Description

Shared client functions for windowed and fullscreen graphics interface module.

Definition in file cl_video.c.


Function Documentation

static qboolean CL_CvarCheckVidGamma ( cvar_t cvar  )  [static]

Definition at line 127 of file cl_video.c.

References Cvar_AssertValue(), and qfalse.

Referenced by VID_Init().

static qboolean CL_CvarCheckVidMode ( cvar_t cvar  )  [static]

Definition at line 132 of file cl_video.c.

References Cvar_AssertValue(), qtrue, and VID_GetModeNums().

Referenced by VID_Init().

qboolean VID_GetModeInfo ( int  modeIndex,
vidmode_t modeInfo 
)
int VID_GetModeNums ( void   ) 

Returns the amount of available video modes.

Definition at line 77 of file cl_video.c.

References lengthof, r_sdl_config_s::numModes, and r_sdl_config.

Referenced by CL_CvarCheckVidMode(), CL_VideoInitMenu(), and VID_GetModeInfo().

void VID_Init ( void   ) 
void VID_Restart_f ( void   ) 

Perform a renderer restart.

Todo:
only reload the skins, not all models
Todo:
going back into the map isn't working as long as GAME_ReloadMode is called

Definition at line 110 of file cl_video.c.

References CL_ViewPrecacheModels(), Com_Printf(), GAME_ReloadMode(), qfalse, R_Init(), R_Shutdown(), rendererData_t::ready, refdef, and UI_Reinit().

Referenced by R_BeginFrame(), and VID_Init().


Variable Documentation

Definition at line 36 of file cl_video.c.

Referenced by IN_Frame(), R_BeginFrame(), R_InitGraphics(), and R_SetMode().

Definition at line 39 of file cl_video.c.

Referenced by R_EndFrame().

Definition at line 38 of file cl_video.c.

Referenced by IN_Frame().

cvar_t* vid_height [static]

Definition at line 41 of file cl_video.c.

Definition at line 40 of file cl_video.c.

Referenced by R_EndFrame().

Definition at line 37 of file cl_video.c.

Referenced by IN_Frame(), R_BeginFrame(), R_InitGraphics(), and R_SetMode().

const vidmode_t vid_modes[] [static]
Initial value:
{
    {  320,  240,  0 },
    {  400,  300,  1 },
    {  512,  384,  2 },
    {  640,  480,  3 },
    {  800,  600,  4 },
    {  960,  720,  5 },
    { 1024,  768,  6 },
    { 1152,  864,  7 },
    { 1280, 1024,  8 },
    { 1600, 1200,  9 },
    { 2048, 1536, 10 },
    { 1024,  480, 11 }, 
    { 1152,  768, 12 }, 
    { 1280,  854, 13 }, 
    {  640,  400, 14 }, 
    {  800,  500, 15 }, 
    { 1024,  640, 16 }, 
    { 1280,  800, 17 },
    { 1680, 1050, 18 },
    { 1920, 1200, 19 },
    { 1400, 1050, 20 }, 
    { 1440,  900, 21 },
    { 1024,  600, 22 } 
}

All possible video modes.

Definition at line 47 of file cl_video.c.

Definition at line 35 of file cl_video.c.

Referenced by R_BeginFrame(), R_InitGraphics(), and R_SetMode().

cvar_t* vid_width [static]

Definition at line 42 of file cl_video.c.


Generated by  doxygen 1.6.2