Video driver defs. More...
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_t * | vid_genericPool |
memPool_t * | vid_imagePool |
memPool_t * | vid_lightPool |
memPool_t * | vid_modelPool |
viddef_t | viddef |
cvar_t * | vid_fullscreen |
cvar_t * | vid_strech |
cvar_t * | vid_mode |
cvar_t * | vid_gamma |
cvar_t * | vid_ignoregamma |
cvar_t * | vid_grabmouse |
Video driver defs.
Definition in file cl_video.h.
#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.
Definition at line 84 of file cl_video.c.
References vidmode_s::height, cvar_s::integer, r_sdl_config_s::modes, r_sdl_config_s::numModes, qfalse, qtrue, r_sdl_config, VID_GetModeNums(), and vidmode_s::width.
Referenced by CL_VideoInitMenu(), and R_SetMode().
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 | ) |
Definition at line 140 of file cl_video.c.
References CL_CvarCheckVidGamma(), CL_CvarCheckVidMode(), Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), Cvar_SetCheckFunction(), Mem_CreatePool, R_Init(), vid_genericPool, vid_imagePool, vid_lightPool, vid_modelPool, and VID_Restart_f().
Referenced by CL_Init().
void VID_Restart_f | ( | void | ) |
Perform a renderer restart.
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().
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().
Definition at line 92 of file cl_main.c.
Referenced by R_LoadImage(), R_LoadMaterials(), R_LoadShader(), R_PreprocessShader(), R_ScreenShot(), R_SoftenTexture(), R_UploadData(), R_UploadTexture(), UI_MaterialEditorNewStage_f(), and VID_Init().
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().
modeldata - wiped with every new map
Definition at line 94 of file cl_main.c.
Referenced by R_CreateSurfaceFlare(), R_LoadBspVertexArrays(), R_LoadObjModel(), R_LoadObjModelVertexArrays(), R_LoadObjSkin(), R_LoadSurfacesArrays_(), R_ModCalcUniqueNormalsAndTangents(), R_ModelLoadDPMVertsForFrame(), R_ModLoadAliasDPMModel(), R_ModLoadAliasMD2Mesh(), R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), R_ModLoadAliasMD3Model(), R_ModLoadAnims(), R_ModLoadArrayData(), R_ModLoadEdges(), R_ModLoadLeafs(), R_ModLoadMDX(), R_ModLoadNodes(), R_ModLoadPlanes(), R_ModLoadSubmodels(), R_ModLoadSurfaces(), R_ModLoadSurfedges(), R_ModLoadTags(), R_ModLoadTexinfo(), R_ModLoadVertexes(), R_ShutdownModels(), R_SortSurfacesArrays(), R_SwitchModelMemPoolTag(), and VID_Init().
Definition at line 35 of file cl_video.c.
Referenced by R_BeginFrame(), R_InitGraphics(), and R_SetMode().
Definition at line 33 of file cl_video.c.
Referenced by CIN_SetParameters(), CL_ActorMouseTrace(), CL_CameraMove(), CL_GetKeyMouseState(), CL_SequenceRender(), CL_ViewRender(), CL_ViewUpdateRenderData(), Con_CheckResize(), Con_DrawConsole(), Con_DrawNotify(), HUD_DrawMouseCursorText(), HUD_UpdateCursor(), IN_Frame(), IN_JoystickMove(), IN_Parse(), MYgluPerspective(), R_CleanupDepthBuffer(), R_Draw2DArray(), R_Draw2DMapMarkers(), R_Draw3DGlobe(), R_Draw3DMapMarkers(), R_DrawBloom(), R_DrawCircle(), 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_DrawPrecacheScreen(), SCR_DrawString(), SCR_UpdateScreen(), SEQ_Render2D(), SEQ_SetCamera(), UI_ControlsNodeCapturedMouseMove(), UI_DrawNormImage(), UI_DrawNotice(), UI_GenPreviewRadarMap_f(), UI_GetActiveRenderRect(), UI_GetRadarMapInFrameBuffer(), UI_InvalidateStack(), UI_Transform(), UI_WindowNodeDoLayout(), and UI_WindowNodeDraw().