#include <CameraController.h>
|
enum | MoveFlags {
MoveLeft = Event::ButtonLeft,
MoveRight = Event::ButtonRight,
MoveUp = Event::Button5,
MoveDown = Event::Button6,
MoveForward = Event::ButtonUp,
MoveBackward = Event::ButtonDown
} |
|
enum | Priority {
PriorityLowest = 0,
PriorityLow = 1,
PriorityNormal = 2,
PriorityHigh = 3,
PriorityHighest = 4
} |
|
enum | OpenGLProfile { CoreProfile,
CompatibilityProfile,
UnspecifiedProfile
} |
|
Enumerator |
---|
MoveLeft |
|
MoveRight |
|
MoveUp |
|
MoveDown |
|
MoveForward |
|
MoveBackward |
|
omega::CameraController::CameraController |
( |
const String & |
name = "CameraController" | ) |
|
Vector3f omega::CameraController::computeSpeedVector |
( |
uint |
moveFlags, |
|
|
float |
speed, |
|
|
float |
strafeMultiplier = 1.0f |
|
) |
| |
Utility method: updates the camera position using speed, yaw pich roll, and a time step.
Utility method: return a speed vector depeding on move flags and speed multipliers. Useful for turning digital input from keyboards / gamepads into speed information.
Camera* omega::CameraController::getCamera |
( |
| ) |
|
|
inline |
float omega::CameraController::getSpeed |
( |
| ) |
|
|
inline |
virtual bool omega::CameraController::handleCommand |
( |
const String & |
cmd | ) |
|
|
virtual |
virtual void omega::CameraController::handleEvent |
( |
const Event & |
evt | ) |
|
|
inlinevirtual |
bool omega::CameraController::isEnabled |
( |
| ) |
|
bool omega::CameraController::isFreeFlyEnabled |
( |
| ) |
|
|
inline |
virtual void omega::CameraController::reset |
( |
| ) |
|
|
virtual |
void omega::CameraController::setCamera |
( |
Camera * |
value | ) |
|
|
inline |
void omega::CameraController::setFreeFlyEnabled |
( |
bool |
value | ) |
|
|
inline |
void omega::CameraController::setSpeed |
( |
float |
value | ) |
|
|
inline |
virtual void omega::CameraController::setup |
( |
Setting & |
s | ) |
|
|
inlinevirtual |
virtual void omega::CameraController::update |
( |
const UpdateContext & |
context | ) |
|
|
inlinevirtual |
bool omega::CameraController::myFreeFlyEnabled |
|
protected |
float omega::CameraController::mySpeed |
|
protected |
The documentation for this class was generated from the following file: