summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-26 16:37:53 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-26 16:37:53 +1000
commitf083cacb259054ce996b70f8b9dc0d9eb0bdbfb8 (patch)
treecfec9813483e139d8f4ca71eefb4ec9a0450826f /src/core
parent9d11440c145cef897853576b509316bf952cb121 (diff)
wip egui
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/core.c b/src/core/core.c
index d508de8..a46e395 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -68,10 +68,18 @@ bool ShouldExit() {
}
void Frame_Begin() {
- Input_Update(&g_core.input);
+ // Input_Update(&g_core.input);
Render_FrameBegin(g_core.renderer);
}
void Frame_Draw() {}
void Frame_End() { Render_FrameEnd(g_core.renderer); }
+Core* get_global_core() {
+ return &g_core;
+}
+
+GLFWwindow* Core_GetGlfwWindowPtr(Core* core) {
+ return g_core.window;
+}
+
struct Renderer* Core_GetRenderer(Core* core) { return core->renderer; } \ No newline at end of file