diff options
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); } |