+ | Starting camera handling

This commit is contained in:
TheRedShip
2024-10-15 14:11:49 +02:00
parent 1c25a29c38
commit a006174ce5
6 changed files with 72 additions and 2 deletions

31
includes/Camera.hpp Normal file
View File

@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Camera.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: TheRed <TheRed@students.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/15 13:59:57 by TheRed #+# #+# */
/* Updated: 2024/10/15 13:59:57 by TheRed ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef RT_CAMERA__HPP
# define RT_CAMERA__HPP
class Camera
{
public:
Camera(void);
Camera(Camera const &src);
~Camera(void);
Camera &operator=(Camera const &rhs);
private:
};
#endif

View File

@ -39,6 +39,8 @@ class Window
private:
GLFWwindow *_window;
RT::Vec2i _mousePos;
RT::Vec2i _prevMousePos;
RT::Vec2i _mouseDelta;
float _fps;