summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
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);
}