mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Starting camera handling
This commit is contained in:
31
includes/Camera.hpp
Normal file
31
includes/Camera.hpp
Normal 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
|
@ -39,6 +39,8 @@ class Window
|
||||
private:
|
||||
GLFWwindow *_window;
|
||||
RT::Vec2i _mousePos;
|
||||
RT::Vec2i _prevMousePos;
|
||||
RT::Vec2i _mouseDelta;
|
||||
|
||||
float _fps;
|
||||
|
||||
|
Reference in New Issue
Block a user