UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_video.h File Reference

Video driver defs. More...

#include "../shared/ufotypes.h"
#include "../common/mem.h"
#include "../common/cvar.h"
Include dependency graph for cl_video.h:
This graph shows which files directly or indirectly include this file:

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_t

Macros

#define VID_NORM_WIDTH   1024
#define VID_NORM_HEIGHT   768
#define VID_POS_UNSET   -99999

Functions

void VID_Init (void)
void VID_Minimize (void)
int VID_GetModeNums (void)
 Returns the amount of available video modes.
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

◆ VID_NORM_HEIGHT

#define VID_NORM_HEIGHT   768

Definition at line 36 of file cl_video.h.

◆ VID_NORM_WIDTH

#define VID_NORM_WIDTH   1024

Definition at line 35 of file cl_video.h.

◆ VID_POS_UNSET

#define VID_POS_UNSET   -99999

Definition at line 37 of file cl_video.h.

Referenced by R_InitGraphics(), and VID_Init().

Function Documentation

◆ VID_GetModeInfo()

bool VID_GetModeInfo ( int modeIndex,
vidmode_t * modeInfo )

◆ VID_GetModeNums()

int VID_GetModeNums ( void )

Returns the amount of available video modes.

Definition at line 84 of file cl_video.cpp.

References lengthof, r_sdl_config, and vid_modes.

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

◆ VID_Init()

◆ VID_Minimize()

void VID_Minimize ( void )

Definition at line 150 of file cl_video.cpp.

References cls.

Referenced by CL_OpenURL_f(), and VID_Init().

Variable Documentation

◆ vid_fullscreen

cvar_t* vid_fullscreen
extern

Definition at line 37 of file cl_video.cpp.

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

◆ vid_gamma

cvar_t* vid_gamma
extern

Definition at line 40 of file cl_video.cpp.

Referenced by R_EndFrame(), and VID_Init().

◆ vid_genericPool

memPool_t* vid_genericPool
extern

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

◆ vid_grabmouse

cvar_t* vid_grabmouse
extern

Definition at line 39 of file cl_video.cpp.

Referenced by IN_Frame(), and VID_Init().

◆ vid_ignoregamma

cvar_t* vid_ignoregamma
extern

Definition at line 41 of file cl_video.cpp.

Referenced by R_EndFrame(), and VID_Init().

◆ vid_imagePool

◆ vid_lightPool

memPool_t* vid_lightPool
extern

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

◆ vid_mode

cvar_t* vid_mode
extern

Definition at line 38 of file cl_video.cpp.

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

◆ vid_modelPool

◆ vid_stretch

cvar_t* vid_stretch
extern

Definition at line 36 of file cl_video.cpp.

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

◆ viddef