summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-10 13:35:23 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-10 13:35:23 +1000
commit99f2476d7bb8479d543f080c209324c77c775737 (patch)
tree8c8f52155552fb7c9ade94e70f5f11d36fa73701 /src/core.c
parentb9a7166d9a7e2b0eed948353c134e72dfa86ab58 (diff)
bring back gltf
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 84c9cae..1d8fe91 100644
--- a/src/core.c
+++ b/src/core.c
@@ -6,6 +6,7 @@
#include "input.h"
#include "keys.h"
#include "log.h"
+#include "mem.h"
#include "render.h"
#include "render_types.h"
#include "scene.h"
@@ -52,6 +53,13 @@ void core_bringup() {
}
*/
+ size_t model_data_max = 1024 * 1024 * 1024;
+ arena model_arena = arena_create(malloc(model_data_max), model_data_max);
+
+ model_pool model_pool = model_pool_create(&model_arena, 256, sizeof(model));
+ g_core.models = model_pool;
+ INFO("Created model pool allocator");
+
INFO("Creating default scene");
scene_init(&g_core.default_scene);
}