summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-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);