Creates an Camera object.
More...
#include <Camera.h>
Creates an Camera object.
- Author
- Jamie Slowgrove
glm::vec3 Camera::getOrientation |
( |
| ) |
|
Getter # Returns the Camera orientation.
- Returns
- The Camera orientation.
glm::mat4 Camera::getProjection |
( |
| ) |
|
Getter # Returns the Camera projection matrix.
- Returns
- The Camera projection matrix.
glm::mat4 Camera::getView |
( |
| ) |
|
Getter # Returns the Camera view matrix.
- Returns
- The Camera view matrix.
void Camera::input |
( |
SDL_Event & |
incomingEvent | ) |
|
Handles inputs for the Camera.
- Parameters
-
incomingEvent | A reference to the input event. |
void Camera::moveCamera |
( |
glm::vec3 |
translation | ) |
|
Moves the Camera using the translation.
- Parameters
-
translation | The translation. |
void Camera::moveCameraAlongX |
( |
float |
translateX | ) |
|
Moves the Camera along the X axis.
- Parameters
-
translateX | The translation along the X axis. |
void Camera::moveCameraAlongY |
( |
float |
translateY | ) |
|
Moves the Camera along the Y axis.
- Parameters
-
translateY | The translation along the Y axis. |
void Camera::moveCameraAlongZ |
( |
float |
translateZ | ) |
|
Moves the Camera along the Z axis.
- Parameters
-
translateZ | The translation along the Z axis. |
void Camera::rotateCamera |
( |
glm::vec3 |
rotation | ) |
|
Rotates the Camera using the rotation.
- Parameters
-
void Camera::rotateCameraAlongX |
( |
float |
rotationX | ) |
|
Rotate the Camera along the X axis.
- Parameters
-
rotationX | The rotation along the X axis. |
void Camera::rotateCameraAlongY |
( |
float |
rotationY | ) |
|
Rotate the Camera along the Y axis.
- Parameters
-
rotationY | The rotation along the Y axis. |
void Camera::rotateCameraAlongZ |
( |
float |
rotationZ | ) |
|
Rotate the Camera along the Z axis.
- Parameters
-
rotationZ | The rotation along the Z axis. |
void Camera::setPosition |
( |
glm::vec3 |
position | ) |
|
Setter # Sets the position of the Camera.
- Parameters
-
position | The new position. |
void Camera::update |
( |
float |
dt | ) |
|
A function to update the Camera.
- Parameters
-
The movement speed of the Camera
glm::vec3 Camera::orientation |
|
private |
glm::mat4 Camera::projection |
|
private |
float Camera::rotateSpeed |
|
private |
The rotation speed of the Camera
The documentation for this class was generated from the following files: