TCamera Class Reference

scene camera class. Sets default scene camera, performs basic camera movements, pointing to object etc... More...

#include <camera.h>

List of all members.

Public Member Functions

 TCamera ()
 Initialize camera, sets all vectors to identity.
TMatrix Move (GLfloat wx, GLfloat wy, GLfloat wz)
 Move camera to new position(relative).
TMatrix MoveAbs (GLfloat wx, GLfloat wy, GLfloat wz)
 Move camera to new position(absolute).
TMatrix Rotate (GLfloat angle, GLint axis)
 Rotate camera around axis(relative).
TMatrix RotateAbs (GLfloat angle, GLint axis)
 Rotate camera around axis(absolute).
TMatrix LookAt (GLfloat wx, GLfloat wy, GLfloat wz)
 Look camera at target.
void UpdateMatrix ()
 Update camera matrix by translating and rotating viewport.
TVector GetPos ()
 get camera position
TVector GetRot ()
 get camera rotation
TVector GetLook ()
 get camera look
void Reset ()
 Reset camera position.
void RenderCamera ()
 Render camera: absolute or by looking position.

Protected Attributes

TVector pos
 camera position
TVector rot
 camera rotation
TVector look
 camera look
TMatrix projection
 camera projection matrix
TMatrix modelview
 camera modelview matrix
TMatrix transform
 camera transform matrix

Detailed Description

scene camera class. Sets default scene camera, performs basic camera movements, pointing to object etc...


Member Function Documentation

TMatrix TCamera::LookAt ( GLfloat  wx,
GLfloat  wy,
GLfloat  wz 
)

Look camera at target.

Parameters:
wx target X-coordinate
wy target Y-coordinate
wz target Z-coordinate
Returns:
new transformation matrix
TMatrix TCamera::Move ( GLfloat  wx,
GLfloat  wy,
GLfloat  wz 
)

Move camera to new position(relative).

Parameters:
wx new X-coordinate
wy new Y-coordinate
wz new Z-coordinate
Returns:
new transformation matrix
TMatrix TCamera::MoveAbs ( GLfloat  wx,
GLfloat  wy,
GLfloat  wz 
)

Move camera to new position(absolute).

Parameters:
wx new X-coordinate
wy new Y-coordinate
wz new Z-coordinate
Returns:
new transformation matrix
TMatrix TCamera::Rotate ( GLfloat  angle,
GLint  axis 
)

Rotate camera around axis(relative).

Parameters:
angle rotation angle in degrees
axis rotation axis (can be A_X, A_Y, A_Z)
Returns:
new transformation matrix
TMatrix TCamera::RotateAbs ( GLfloat  angle,
GLint  axis 
)

Rotate camera around axis(absolute).

Parameters:
angle rotation angle in degrees
axis rotation axis (can be A_X, A_Y, A_Z)
Returns:
new transformation matrix

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2