Encapsulation of rotation and position for a view. More...
#include <Camera.hpp>
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 |
Encapsulation of rotation and position for a view.
| void apply | ( | ) |
Applies the camera position and rotation to the OpenGL modelview matrix.
| Vector getPosition | ( | ) | const [inline] |
| Matrix getRotation | ( | ) | const [inline] |
| 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.
1.6.3