summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 024b2d7..0db8962 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2,13 +2,16 @@
#include <stdlib.h>
+#include "glfw3.h"
+#include "input.h"
+#include "keys.h"
#include "log.h"
#include "render.h"
#include "render_types.h"
#include "threadpool.h"
-#define SCR_WIDTH 1080
-#define SCR_HEIGHT 800
+#define SCR_WIDTH 1000
+#define SCR_HEIGHT 1000
core* core_bringup() {
INFO("Initiate Core bringup");
@@ -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