diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-10 13:35:23 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-10 13:35:23 +1000 |
commit | 99f2476d7bb8479d543f080c209324c77c775737 (patch) | |
tree | 8c8f52155552fb7c9ade94e70f5f11d36fa73701 /src/core.c | |
parent | b9a7166d9a7e2b0eed948353c134e72dfa86ab58 (diff) |
bring back gltf
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); } |