cl_view.c File Reference

Player rendering positioning. More...

#include "../client.h"
#include "../cl_screen.h"
#include "../cl_game.h"
#include "cl_particle.h"
#include "cl_localentity.h"
#include "cl_actor.h"
#include "cl_hud.h"
#include "cl_spawn.h"
#include "cl_view.h"
#include "../renderer/r_main.h"
#include "../renderer/r_entity.h"
Include dependency graph for cl_view.c:

Go to the source code of this file.

Functions

void CL_ViewLoadMedia (void)
 Call before entering a new level, or after vid_restart.
static void CL_PrecacheCharacterModels (void)
 Precache all menu models for faster access.
void CL_ViewPrecacheModels (void)
 Precaches all models at game startup - for faster access.
void CL_ViewCalcFieldOfViewX (void)
 Calculates refdef's FOV_X. Should generally be called after any changes are made to the zoom level (via cl.cam.zoom).
static void CL_ViewCalcFieldOfViewY (const float width, const float height)
void CL_ViewUpdateRenderData (void)
 Updates the refdef.
void CL_ViewRender (void)
void CL_ViewCenterAtGridPosition (const pos3_t pos)
 Centers the camera on a given grid field.
void CL_ViewInit (void)

Variables

cvar_tcl_map_debug
static cvar_tcl_precache

Detailed Description

Player rendering positioning.

Definition in file cl_view.c.


Function Documentation

static void CL_PrecacheCharacterModels ( void   )  [static]
void CL_ViewCalcFieldOfViewX ( void   ) 

Calculates refdef's FOV_X. Should generally be called after any changes are made to the zoom level (via cl.cam.zoom).

See also:
V_CalcFovY

Definition at line 223 of file cl_view.c.

References cl, cl_camzoommin, cl_isometric, rendererData_t::fieldOfViewX, FOV, cvar_s::integer, refdef, and cvar_s::value.

Referenced by CL_CameraMove(), CL_CameraZoomIn(), CL_CameraZoomOut(), CL_ClearState(), CL_StartGame(), and SEQ_SetCamera().

static void CL_ViewCalcFieldOfViewY ( const float  width,
const float  height 
) [inline, static]
void CL_ViewCenterAtGridPosition ( const pos3_t  pos  ) 

Centers the camera on a given grid field.

See also:
CL_CameraMove
LE_CenterView
CL_CameraRoute

Definition at line 312 of file cl_view.c.

References cl, Cvar_SetValue(), PosToVec, and VectorCopy.

Referenced by CL_CenterView(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), and CL_StartGame().

void CL_ViewInit ( void   ) 

Definition at line 321 of file cl_view.c.

References CVAR_ARCHIVE, and Cvar_Get().

Referenced by CL_Init().

void CL_ViewLoadMedia ( void   ) 
void CL_ViewPrecacheModels ( void   ) 
void CL_ViewRender ( void   ) 
void CL_ViewUpdateRenderData ( void   ) 

Variable Documentation

Definition at line 41 of file cl_view.c.

Referenced by CL_InitLocal(), HUD_MapDebugCursor(), and HUD_UpdateCursor().

cvar_t* cl_precache [static]

Definition at line 42 of file cl_view.c.


Generated by  doxygen 1.6.2