mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Camera system
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user