3#include "input/Camera.hpp"
70 glm::vec2
_angles = glm::vec2(glm::half_pi<float>(), 0.0f);
This class represents a camera as used in real-time rendering APIs. It provides a view and projection...
Definition: Camera.hpp:11
const glm::vec3 & up() const
Definition: Camera.hpp:90
const glm::vec3 & center() const
Definition: Camera.hpp:96
const glm::vec3 & position() const
Definition: Camera.hpp:84
This camera can be controlled through the inputs received from the user.
Definition: ControllableCamera.hpp:10
void physics(double frameTime)
Definition: ControllableCamera.cpp:53
void reset()
Reset the position of the camera.
Definition: ControllableCamera.cpp:8
void updateUsingJoystick(double frameTime)
Definition: ControllableCamera.cpp:66
float _guiFOV
Field of view in degrees for the GUI.
Definition: ControllableCamera.hpp:75
void pose(const glm::vec3 &position, const glm::vec3 ¢er, const glm::vec3 &up) override
Definition: ControllableCamera.cpp:19
ControllableCamera()
Constructor.
Definition: ControllableCamera.cpp:4
glm::vec2 _angles
Orientation angles.
Definition: ControllableCamera.hpp:70
void updateUsingKeyboard(double frameTime)
Definition: ControllableCamera.cpp:146
void interface()
Definition: ControllableCamera.cpp:263
float & speed()
Definition: ControllableCamera.hpp:45
Mode
The interaction mode of the controllable camera.
Definition: ControllableCamera.hpp:14
void update()
Update once-per-frame parameters.
Definition: ControllableCamera.cpp:29
float _speed
Camera speed.
Definition: ControllableCamera.hpp:66
void updateUsingTurnTable(double frameTime)
Definition: ControllableCamera.cpp:201
Mode _mode
The current interaction mode.
Definition: ControllableCamera.hpp:73
float _angularSpeed
Camera angular speed.
Definition: ControllableCamera.hpp:67
float _radius
Turntable radius.
Definition: ControllableCamera.hpp:71