#include <camera.hpp>
Inheritance diagram for camera:
Public Types | |
enum | mode { FREE, FREEORIENTED, CENTERED, CENTERORIENTED, FOLLOW, DELAY } |
Public Methods | |
camera (void) | |
camera (string name, mode lookMode=FREE) | |
~camera () | |
void | init () |
void | draw () |
void | update () |
void | move (int pitch, int turn, int roll, float x, float y, float z) |
void | look (void) |
Public Attributes | |
float | radius |
matrix16f | delay [20] |
the most recent center locations, the camera follows the last. | |
matrix16f | other |
extra matrix needed for follow mode. | |
matrix16f * | center |
Location for camera to spin around. | |
vector3f | centerPoint |
vector3f | angles |
mode | lookMode |
Also some experimental modes of movement like following a given object, and following that objects every rotation, same with a delay, or just tracking the object without rotating with it.