summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-09 10:57:07 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-09 10:57:07 +1000
commitc950737122cd88e1183896614d4276e219c3c158 (patch)
tree69b2eaf4ed4e574f92781e335ba1a851180ebe54
parent5e0f5662ae65d268db1bf1bc53c773ef9cba33ea (diff)
stuff
-rw-r--r--src/core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 714505f..a853637 100644
--- a/src/core.c
+++ b/src/core.c
@@ -53,6 +53,15 @@ core* core_bringup() {
return c;
}
+#include <glfw3.h>
+#include "input.h"
+#include "render.h"
+
+bool should_window_close(core *core) { glfwWindowShouldClose(core->renderer.window); }
+void core_input_update(core *core) { input_update(&core->input); }
+void core_frame_begin(core* core) { render_frame_begin(&core->renderer); }
+void core_frame_end(core* core) { render_frame_end(&core->renderer); }
+
void core_shutdown(core* core) {
// threadpool_destroy(&core->threadpool);
input_system_shutdown(&core->input);