Camera Class Reference
[Graphics]

Encapsulation of rotation and position for a view. More...

#include <Camera.hpp>

List of all members.

Public Member Functions

void apply ()
Vector getPosition () const
Matrix getRotation () const
void load (int width, int height)
void move (const Vector &amount)
void reset ()
void rotate (float angle, const Vector &axis)

Private Attributes

Quaternion rotation
Vector position

Detailed Description

Encapsulation of rotation and position for a view.


Member Function Documentation

void apply (  ) 

Applies the camera position and rotation to the OpenGL modelview matrix.

Vector getPosition (  )  const [inline]
Returns:
Position of the camera.
Matrix getRotation (  )  const [inline]
Returns:
Rotation of the camera.
void load ( int  width,
int  height 
)

Initializes OpenGL.

void move ( const Vector amount  ) 

Moves the camera.

void reset (  ) 

Resets the camera's rotation and position.

void rotate ( float  angle,
const Vector axis 
)

Rotates by axis/angle.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:35 2010 for Gander by  doxygen 1.6.3