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:
46
includes/RT/Window.hpp
Normal file
46
includes/RT/Window.hpp
Normal file
@ -0,0 +1,46 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Window.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/13 16:15:41 by TheRed #+# #+# */
|
||||
/* Updated: 2024/12/23 18:35:35 by ycontre ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef RT_WINDOW__HPP
|
||||
# define RT_WINDOW__HPP
|
||||
|
||||
# include "RT.hpp"
|
||||
|
||||
class Scene;
|
||||
|
||||
class Window
|
||||
{
|
||||
public:
|
||||
Window(int width, int height, const char *title, int sleep);
|
||||
~Window(void);
|
||||
|
||||
GLFWwindow *getWindow(void) const;
|
||||
Scene *getScene(void) const;
|
||||
float getFps(void) const;
|
||||
|
||||
void display();
|
||||
void pollEvents();
|
||||
bool shouldClose();
|
||||
|
||||
static void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mods);
|
||||
static void mouseMoveCallback(GLFWwindow *window, double xpos, double ypos);
|
||||
static void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods);
|
||||
|
||||
private:
|
||||
GLFWwindow *_window;
|
||||
Scene *_scene;
|
||||
|
||||
float _fps;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user