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

Video driver defs. More...

#include "../shared/ufotypes.h"
#include "../common/mem.h"
#include "../common/cvar.h"

Go to the source code of this file.

Data Structures

struct  viddefContext_t
 Contains the game screen context, everything that is needed to create the graphic context. These value are stored to allow to restore the old context. More...
 
struct  viddef_t
 Contains the game screen size and drawing scale. More...
 
struct  vidmode_s
 

Macros

#define VID_NORM_WIDTH   1024
 
#define VID_NORM_HEIGHT   768
 

Typedefs

typedef struct vidmode_s vidmode_t
 

Functions

void VID_Init (void)
 
void VID_Minimize (void)
 
int VID_GetModeNums (void)
 Returns the amount of available video modes. More...
 
bool 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_stretch
 
cvar_tvid_mode
 
cvar_tvid_gamma
 
cvar_tvid_ignoregamma
 
cvar_tvid_grabmouse
 

Detailed Description

Video driver defs.

Definition in file cl_video.h.

Macro Definition Documentation

#define VID_NORM_HEIGHT   768

Definition at line 36 of file cl_video.h.

#define VID_NORM_WIDTH   1024

Definition at line 35 of file cl_video.h.

Typedef Documentation

typedef struct vidmode_s vidmode_t

Function Documentation

int VID_GetModeNums ( void  )

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

void VID_Minimize ( void  )

Definition at line 147 of file cl_video.cpp.

References cls.

Referenced by CL_OpenURL_f(), and VID_Init().

Variable Documentation

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

memPool_t* vid_genericPool

also holds all the static models

Definition at line 87 of file cl_main.cpp.

Referenced by CIN_OGM_OpenCinematic(), CIN_ROQ_OpenCinematic(), R_SphereGenerate(), and VID_Init().

cvar_t* vid_grabmouse

Definition at line 39 of file cl_video.cpp.

Referenced by IN_Frame().

cvar_t* vid_ignoregamma

Definition at line 41 of file cl_video.cpp.

Referenced by R_EndFrame().

memPool_t* vid_lightPool

lightmap - wiped with every new map

Definition at line 89 of file cl_main.cpp.

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

cvar_t* vid_mode

Definition at line 38 of file cl_video.cpp.

Referenced by IN_Frame(), R_SetMode(), and R_UpdateVidDef().

cvar_t* vid_stretch

Definition at line 36 of file cl_video.cpp.

Referenced by R_SetMode(), and R_UpdateVidDef().