25 #ifndef GRAPHICS_CAMERA_H 26 #define GRAPHICS_CAMERA_H 50 void turn(
float x,
float y,
float z);
51 void move(
float x,
float y,
float z);
83 #define CameraMan Graphics::CameraManager::instance() 85 #endif // GRAPHICS_CAMERA_H void setOrientation(float x, float y, float z)
Set the camera orientation.
const float * getOrientation() const
Get the current camera orientation cache.
Class and macro for implementing singletons.
float _orientation[3]
Current orientation.
const float * getPosition() const
Get the current camera position cache.
void reset()
Reset the current position and orientation.
void moveRelative(float x, float y, float z)
Move relative to the current view axis.
float _position[3]
Current position.
uint32 lastChanged() const
The timestamp the camera was changed last.
float _orientationCache[3]
Current orientation, cached.
void move(float x, float y, float z)
Move along axes.
Generic template base class for implementing the singleton design pattern.
void turn(float x, float y, float z)
Turn along axes.
float _positionCache[3]
Current position, cached.
Low-level type definitions to handle fixed width types portably.
void limit(float minX=-FLT_MAX, float minY=-FLT_MAX, float minZ=-FLT_MAX, float maxX=FLT_MAX, float maxY=FLT_MAX, float maxZ=FLT_MAX)
Set limits on the camera position.
void setPosition(float x, float y, float z)
Set the camera position.
void update()
Update the caches with the current position and orientation.