|
Nebula
|
#include <freecamerautil.h>
Implements a free camera.
Public Member Functions | |
| FreeCameraUtil () | |
| constructor | |
| void | Setup (const Math::point &defaultEyePos, const Math::vector &defaultEyeVec) |
| sets up free camera | |
| void | Reset () |
| resets free camera to default values | |
| void | Update (float deltaTime) |
| updates camera matrix | |
| const Math::mat4 & | GetTransform () const |
| gets camera transform | |
| void | SetTargetPosition (Math::vec3 const &point) |
| sets the target position of the camera | |
| void | SetRotateButton (bool state) |
| sets the state of the rotate button | |
| void | SetAccelerateButton (bool state) |
| sets the state of the accelerate button | |
| void | SetMouseMovement (Math::vec2 movement) |
| sets the mouse movement | |
| void | SetRotationSpeed (float speed) |
| sets the rotation speed | |
| void | SetMovementSpeed (float speed) |
| sets the movement speed | |
| void | SetForwardsKey (bool state) |
| sets the forward movement key | |
| void | SetBackwardsKey (bool state) |
| sets the backward movement key | |
| void | SetLeftStrafeKey (bool state) |
| sets the left strafe key | |
| void | SetRightStrafeKey (bool state) |
| sets the right strafe key | |
| void | SetUpKey (bool state) |
| sets the up movement key | |
| void | SetDownKey (bool state) |
| sets the down movement key | |
Private Attributes | |
| Math::point | defaultEyePos |
| Math::vector | defaultEyeVec |
| Math::vec2 | mouseMovement |
| Math::polar | viewAngles |
| Math::point | position |
| Math::point | targetPosition |
| Math::mat4 | cameraTransform |
| float | rotationSpeed |
| float | moveSpeed |
| bool | rotateButton |
| bool | accelerateButton |
| bool | forwardsKey |
| bool | backwardsKey |
| bool | leftStrafeKey |
| bool | rightStrafeKey |
| bool | upKey |
| bool | downKey |
| RenderUtil::FreeCameraUtil::FreeCameraUtil | ( | ) |
constructor
|
inline |
gets camera transform
| void RenderUtil::FreeCameraUtil::Reset | ( | ) |
resets free camera to default values
|
inline |
sets the state of the accelerate button
|
inline |
sets the backward movement key
|
inline |
sets the down movement key
|
inline |
sets the forward movement key
|
inline |
sets the left strafe key
|
inline |
sets the mouse movement
|
inline |
sets the movement speed
|
inline |
sets the right strafe key
|
inline |
sets the state of the rotate button
|
inline |
sets the rotation speed
|
inline |
sets the target position of the camera
| void RenderUtil::FreeCameraUtil::Setup | ( | const Math::point & | defaultEyePos, |
| const Math::vector & | defaultEyeVec ) |
sets up free camera
|
inline |
sets the up movement key
| void RenderUtil::FreeCameraUtil::Update | ( | float | deltaTime | ) |
updates camera matrix
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |