From 99f2476d7bb8479d543f080c209324c77c775737 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Mon, 10 Jun 2024 13:35:23 +1000 Subject: bring back gltf --- src/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core.c') 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); } -- cgit v1.2.3-70-g09d2