#include <cameraBase.h>
Public Member Functions | ||||
virtual void | update (CCameraTarget &target) | |||
Update the camera. | ||||
eCameraType | type () const | |||
| ||||
Create methods | ||||
CCameraBase () | ||||
Default constructor. | ||||
Set/Get methods | ||||
void | set_vec (const CVector3D &vec) | |||
| ||||
void | set_x (unit x) | |||
| ||||
void | set_y (unit y) | |||
| ||||
void | set_z (unit z) | |||
| ||||
void | set_ang (const CVector3D &ang) | |||
| ||||
void | set_pan (unit pan) | |||
| ||||
void | set_tilt (unit tilt) | |||
| ||||
void | set_roll (unit roll) | |||
| ||||
const CVector3D & | get_pos () const | |||
| ||||
unit | get_x () const | |||
| ||||
unit | get_y () const | |||
| ||||
unit | get_z () const | |||
| ||||
const CAngle3D & | get_ang () const | |||
| ||||
unit | get_pan () const | |||
| ||||
unit | get_tilt () const | |||
| ||||
unit | get_roll () const | |||
| ||||
Protected Attributes | ||||
CVector3D | m_vecPos | |||
camera's position | ||||
CAngle3D | m_ang | |||
camera's angle | ||||
eCameraType | eType | |||
used to identify the camera type |
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
virtual void CCameraBase::update | ( | CCameraTarget & | target | ) | [inline, virtual] |
Update the camera.
target | Focus of the camera (normally the player). |
Reimplemented in CCameraFirst, CCameraFree, CCameraOrbit, and CCameraThird.