From b9315f9cb625db09c3c41d8adf5230a67510bef7 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 14 Jul 2024 23:55:18 +1000 Subject: wip shadows --- src/core/core.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/core/core.h') diff --git a/src/core/core.h b/src/core/core.h index 78dcd14..b0f8dbe 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -2,12 +2,25 @@ #include "input.h" #include "render_types.h" +#include "mem.h" #include "scene.h" #include "screenspace.h" #include "terrain.h" #include "text.h" -typedef struct Core Core; +TYPED_POOL(Model, Model) +#define MODEL_GET(h) (Model_pool_get(&g_core.models, h)) + +typedef struct GLFWwindow GLFWwindow; + +typedef struct Core { + const char* app_name; + GLFWwindow* window; + Renderer* renderer; + Input_State input; + Model_pool models; +} Core; +extern Core g_core; struct Renderer; -- cgit v1.2.3-70-g09d2