+ | Camera system

This commit is contained in:
TheRedShip
2024-12-21 20:45:56 +01:00
parent a006174ce5
commit 97fb7948f0
442 changed files with 67864 additions and 41 deletions

View File

@ -13,19 +13,29 @@
#ifndef RT_CAMERA__HPP
# define RT_CAMERA__HPP
# include "RT.hpp"
class Camera
{
public:
Camera(void);
Camera(Camera const &src);
Camera(glm::vec3 startPos, glm::vec3 startUp, float startYaw, float startPitch);
~Camera(void);
Camera &operator=(Camera const &rhs);
void update_camera_vectors();
glm::mat4 get_view_matrix();
void process_movement(float xoffset, float yoffset, bool constrainPitch);
private:
glm::vec3 _position;
glm::vec3 _forward;
glm::vec3 _up;
glm::vec3 _right;
float _pitch;
float _yaw;
};
#endif