summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-30 15:46:38 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-30 15:46:38 +1000
commit4505fb6585885866ff9a76f76c00ed727d3bb818 (patch)
tree5a6fb84426827e818513632cf9bde8dca0300b4b /src/core
parentbfae2fd3f7b367709f21a8b4fccab107e2e81797 (diff)
wip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c6
-rw-r--r--src/core/core.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/core/core.c b/src/core/core.c
index fffb43d..b18b807 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -78,4 +78,8 @@ 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
+struct Renderer* Core_GetRenderer(Core* core) { return core->renderer; }
+
+Model* Model_Get(ModelHandle h) {
+ return Model_pool_get(&g_core.models, h);
+} \ No newline at end of file
diff --git a/src/core/core.h b/src/core/core.h
index 54e6ec3..86f5b01 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -10,6 +10,7 @@
TYPED_POOL(Model, Model)
#define MODEL_GET(h) (Model_pool_get(&g_core.models, h))
+Model* Model_Get(ModelHandle h);
typedef struct GLFWwindow GLFWwindow;