Class Camera
Defined in File Camera.hpp
Inheritance Relationships
Derived Type
public Cacao::PerspectiveCamera
(Class PerspectiveCamera)
Class Documentation
-
class Camera
Base camera type.
Note
Abstract, so cannot be passed by value
Subclassed by Cacao::PerspectiveCamera
Public Functions
-
virtual glm::vec3 GetPosition() const = 0
Get the position of the camera.
- Returns:
The camera position in world space
-
virtual void SetPosition(glm::vec3 pos) = 0
Set the position of the camera.
- Parameters:
pos – The new position
-
virtual glm::vec3 GetRotation() const = 0
Get the rotation of the camera.
- Returns:
The camera rotation
-
virtual void SetRotation(glm::vec3 rot) = 0
Set the rotation of the camera.
- Parameters:
rot – The new rotation
-
virtual glm::vec3 GetPosition() const = 0