mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Going to start object systems
This commit is contained in:
44
includes/RT/Camera.hpp
Normal file
44
includes/RT/Camera.hpp
Normal file
@ -0,0 +1,44 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Camera.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/15 13:59:57 by TheRed #+# #+# */
|
||||
/* Updated: 2024/12/23 17:42:18 by ycontre ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef RT_CAMERA__HPP
|
||||
# define RT_CAMERA__HPP
|
||||
|
||||
# include "RT.hpp"
|
||||
|
||||
class Camera
|
||||
{
|
||||
public:
|
||||
|
||||
Camera(glm::vec3 startPos, glm::vec3 startUp, float startYaw, float startPitch);
|
||||
~Camera(void);
|
||||
|
||||
void update_camera_vectors();
|
||||
|
||||
glm::mat4 get_view_matrix();
|
||||
glm::vec3 get_position();
|
||||
|
||||
void process_mouse(float xoffset, float yoffset, bool constrainPitch);
|
||||
void process_keyboard(bool forward, bool backward, bool left, bool right, bool up, bool down);
|
||||
|
||||
private:
|
||||
|
||||
glm::vec3 _forward;
|
||||
glm::vec3 _position;
|
||||
glm::vec3 _up;
|
||||
glm::vec3 _right;
|
||||
|
||||
float _pitch;
|
||||
float _yaw;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user