cl_camera.h File Reference

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

Go to the source code of this file.

Data Structures

struct  camera_t

Defines

#define FOV   75.0
#define CAMERA_START_DIST   600
#define CAMERA_START_HEIGHT   UNIT_HEIGHT * 1.5
#define CAMERA_LEVEL_HEIGHT   UNIT_HEIGHT

Functions

void CL_CameraInit (void)
void CL_CameraMove (void)
 Update the camera position. This can be done in two different reasons. The first is the user input, the second is an active camera route. The camera route overrides the user input and is lerping the movement until the final position is reached.
void CL_CameraRoute (const pos3_t from, const pos3_t target)
 Interpolates the camera movement from the given start point to the given end point.
void CL_CameraZoomIn (void)
 Zooms the scene of the battlefield in.
void CL_CameraZoomOut (void)
 Zooms the scene of the battlefield out.

Variables

cvar_tcl_centerview
cvar_tcl_camzoommax
cvar_tcl_camzoommin
cvar_tcl_camzoomquant
const float MIN_ZOOM
const float MAX_ZOOM

Detailed Description

Definition in file cl_camera.h.


Define Documentation

#define CAMERA_LEVEL_HEIGHT   UNIT_HEIGHT

Definition at line 46 of file cl_camera.h.

Referenced by CL_CameraMove().

#define CAMERA_START_DIST   600

Definition at line 44 of file cl_camera.h.

Referenced by CL_CameraMove().

#define CAMERA_START_HEIGHT   UNIT_HEIGHT * 1.5

Definition at line 45 of file cl_camera.h.

Referenced by CL_CameraMove().

#define FOV   75.0

Definition at line 43 of file cl_camera.h.

Referenced by CL_ViewCalcFieldOfViewX().


Function Documentation

void CL_CameraInit ( void   ) 
void CL_CameraMove ( void   ) 
void CL_CameraRoute ( const pos3_t  from,
const pos3_t  target 
)

Interpolates the camera movement from the given start point to the given end point.

See also:
CL_CameraMove
CL_ViewCenterAtGridPosition
Parameters:
[in] from The grid position to start the camera movement from
[in] target The grid position to move the camera to

Definition at line 239 of file cl_camera.c.

References cameraRoute, cl, CL_BlockBattlescapeEvents(), Cvar_SetValue(), cvar_s::integer, PosToVec, qtrue, routeDelta, routeDist, routeFrom, VectorClear, VectorCopy, VectorLength(), VectorNormalize(), and VectorSubtract.

Referenced by CL_ActorStartShoot().

void CL_CameraZoomIn ( void   ) 

Zooms the scene of the battlefield in.

Definition at line 268 of file cl_camera.c.

References cl, CL_ViewCalcFieldOfViewX(), MAX_CAMZOOM_QUANT, MAX_ZOOM, MIN_CAMZOOM_QUANT, and cvar_s::value.

Referenced by CL_ZoomInQuant_f().

void CL_CameraZoomOut ( void   ) 

Zooms the scene of the battlefield out.

Definition at line 291 of file cl_camera.c.

References cl, CL_ViewCalcFieldOfViewX(), MAX_CAMZOOM_QUANT, MIN_CAMZOOM_QUANT, MIN_ZOOM, and cvar_s::value.

Referenced by CL_ZoomOutQuant_f().


Variable Documentation

Definition at line 60 of file cl_camera.c.

Definition at line 62 of file cl_camera.c.

Referenced by CL_ViewCalcFieldOfViewX().

Definition at line 61 of file cl_camera.c.

Definition at line 63 of file cl_camera.c.

Referenced by LE_CenterView().

const float MAX_ZOOM

Definition at line 39 of file cl_camera.c.

Referenced by CL_CameraMove(), CL_CameraZoomIn(), and CL_CamSetZoom_f().

const float MIN_ZOOM

Definition at line 38 of file cl_camera.c.

Referenced by CL_CameraMove(), CL_CameraZoomOut(), CL_CamSetZoom_f(), and SEQ_SetCamera().


Generated by  doxygen 1.6.2