implement input and rework window implementation

moved the window variable as a constant in the window module, and
implement more of GLFW logic, including some basic input handling.
This commit is contained in:
Quinn
2025-04-14 16:20:45 +02:00
committed by Quinn
parent 9ade61e006
commit 8c78ffdca5
5 changed files with 58 additions and 19 deletions

View File

@@ -2,11 +2,5 @@
// Licensed under the MIT Licence. See LICENSE for details
#pragma once
#include <GLFW/glfw3.h>
struct renderdat {
GLFWwindow* win;
};
int window_init(struct renderdat* restrict rdat);
void window_free(struct renderdat* restrict rdat);
int window_init(void); // initializes the global window, returns non-zero upon failure
void window_loop(void); // performs the window updates