mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-19 07:55:47 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user