summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-30 21:39:31 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-30 21:39:31 +1100
commitf7b91c2eae24ecb7a20b638246fb849d6c63615a (patch)
tree4bdf8fd3425db9f0203f7cf1c58464f4be88e720 /src/core.c
parent16237e6499f47d963df35c0f0c4649900ec98d84 (diff)
start adding mouse input processing
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 4b3bd1b..0db8962 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2,6 +2,9 @@
#include <stdlib.h>
+#include "glfw3.h"
+#include "input.h"
+#include "keys.h"
#include "log.h"
#include "render.h"
#include "render_types.h"
@@ -49,3 +52,13 @@ core* core_bringup() {
return c;
}
+
+void core_shutdown(core* core) {
+ // threadpool_destroy(&core->threadpool);
+ input_system_shutdown(&core->input);
+ renderer_shutdown(&core->renderer);
+}
+
+bool should_exit(core* core) {
+ return key_just_released(KEYCODE_ESCAPE) || glfwWindowShouldClose(core->renderer.window);
+} \ No newline at end of file