From d166d6c4a316be5315783cca184fbb1c69d03d38 Mon Sep 17 00:00:00 2001 From: Ben Kyd Date: Mon, 24 Apr 2023 11:08:42 +0100 Subject: [PATCH] apply that --- src/inferno.cpp | 5 ++--- src/inferno.hpp | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/inferno.cpp b/src/inferno.cpp index 3d9c24b..4af2dd7 100644 --- a/src/inferno.cpp +++ b/src/inferno.cpp @@ -33,8 +33,7 @@ InfernoApp* inferno_create() InfernoApp* app = new InfernoApp(); // Create window - app->Win = &Window::GetInstance(); - app->Win->init("Inferno v" INFERNO_VERSION, 1280, 720); + graphics::window_create("Inferno v" INFERNO_VERSION, 1280, 720); return app; } @@ -75,7 +74,7 @@ void inferno_preset_gui(InfernoApp *app) void inferno_move_input(InfernoApp *app) { static GLFWcursor* cursor = glfwCreateStandardCursor(GLFW_HAND_CURSOR); - glfwSetCursor(app->Win->getGLFWWindow(), cursor); + glfwSetCursor(graphics::window_get_glfw_window(), cursor); // KBD & MOUSE // pan only get on hold diff --git a/src/inferno.hpp b/src/inferno.hpp index a9192fa..02bbc0b 100644 --- a/src/inferno.hpp +++ b/src/inferno.hpp @@ -15,7 +15,6 @@ typedef struct InfernoInput { } InfernoInput; typedef struct InfernoApp { - Window* Win; InfernoInput* Input; } InfernoApp;