apply that

This commit is contained in:
Ben Kyd
2023-04-24 11:08:42 +01:00
parent 54b2c2aab8
commit d166d6c4a3
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -15,7 +15,6 @@ typedef struct InfernoInput {
} InfernoInput;
typedef struct InfernoApp {
Window* Win;
InfernoInput* Input;
} InfernoApp;