diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-30 21:39:31 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-30 21:39:31 +1100 |
commit | f7b91c2eae24ecb7a20b638246fb849d6c63615a (patch) | |
tree | 4bdf8fd3425db9f0203f7cf1c58464f4be88e720 /src/core.c | |
parent | 16237e6499f47d963df35c0f0c4649900ec98d84 (diff) |
start adding mouse input processing
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |