23 #include "hx3d/graphics/cameras/perspective_camera.hpp" 25 #include "hx3d/core/core.hpp" 26 #include "hx3d/window/application.hpp" 28 #include "hx3d/utils/log.hpp"
float viewportHeight
Viewport height.
glm::vec3 up
Camera up vector.
glm::mat4 view
View matrix.
glm::mat4 projection
Projection matrix.
float viewportWidth
Viewport width.
PerspectiveCamera(const float near, const float far)
Create a perspective camera with the screen size and the near and far.
virtual void update() override
Update the camera.
glm::vec3 position
Camera position.
Centralized framework management.
float fieldOfView
Field of view (FOV)
glm::vec3 direction
Camera direction.