+ Parsing object system

This commit is contained in:
TheRedShip
2024-12-26 23:06:49 +01:00
parent 2f217b50e9
commit 8941169f4a
13 changed files with 218 additions and 58 deletions

View File

@ -12,10 +12,10 @@
#include "Window.hpp"
Window::Window(int width, int height, const char *title, int sleep)
Window::Window(Scene *scene, int width, int height, const char *title, int sleep)
{
_scene = new Scene();
_scene = scene;
if (!glfwInit())
{
fprintf( stderr, "Failed to initialize GLFW\n" );
@ -130,11 +130,6 @@ GLFWwindow *Window::getWindow(void) const
return (_window);
}
Scene *Window::getScene(void) const
{
return (_scene);
}
float Window::getFps(void) const
{
return (_fps);