cl_video.h File Reference

Video driver defs. More...

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

Go to the source code of this file.

Data Structures

struct  viddef_t
 Contains the game screen size and drawing scale. More...
struct  vidmode_s

Defines

#define VID_NORM_WIDTH   1024
#define VID_NORM_HEIGHT   768

Typedefs

typedef struct vidmode_s vidmode_t

Functions

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

Variables

memPool_tvid_genericPool
memPool_tvid_imagePool
memPool_tvid_lightPool
memPool_tvid_modelPool
viddef_t viddef
cvar_tvid_fullscreen
cvar_tvid_strech
cvar_tvid_mode
cvar_tvid_gamma
cvar_tvid_ignoregamma
cvar_tvid_grabmouse

Detailed Description

Video driver defs.

Definition in file cl_video.h.


Define Documentation

#define VID_NORM_HEIGHT   768

Definition at line 33 of file cl_video.h.

#define VID_NORM_WIDTH   1024

Definition at line 32 of file cl_video.h.


Typedef Documentation

typedef struct vidmode_s vidmode_t

Function Documentation

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

also holds all the static models

Definition at line 91 of file cl_main.c.

Referenced by CIN_OGM_PlayCinematic(), CIN_ROQ_PlayCinematic(), R_SphereGenerate(), and VID_Init().

Definition at line 38 of file cl_video.c.

Referenced by IN_Frame().

Definition at line 40 of file cl_video.c.

Referenced by R_EndFrame().

lightmap - wiped with every new map

Definition at line 93 of file cl_main.c.

Referenced by R_BeginBuildingLightmaps(), R_BuildLightmap(), R_ModLoadLighting(), R_ShutdownModels(), and VID_Init().

Definition at line 37 of file cl_video.c.

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

Definition at line 35 of file cl_video.c.

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


Generated by  doxygen 1.6.2