From 78275161e08df050d3439f16ef88de8e421c6f8b Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 10 May 2024 13:36:03 +1000 Subject: initiate scene when bringing up core --- examples/triangle/ex_triangle.c | 2 ++ src/core.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/triangle/ex_triangle.c b/examples/triangle/ex_triangle.c index 97d6484..7b8a1d0 100644 --- a/examples/triangle/ex_triangle.c +++ b/examples/triangle/ex_triangle.c @@ -18,6 +18,8 @@ int main() { core_bringup(); arena scratch = arena_create(malloc(1024 * 1024), 1024 * 1024); + DEBUG("render capacity %d", g_core.default_scene.renderables->capacity); + gpu_renderpass_desc pass_description = {}; gpu_renderpass* renderpass = gpu_renderpass_create(&pass_description); diff --git a/src/core.c b/src/core.c index 3596e01..17424b3 100644 --- a/src/core.c +++ b/src/core.c @@ -8,6 +8,7 @@ #include "log.h" #include "render.h" #include "render_types.h" +#include "scene.h" // #include "threadpool.h" #define SCR_WIDTH 1000 @@ -51,7 +52,8 @@ void core_bringup() { } */ - g_core.models = model_darray_new(10); + INFO("Creating default scene"); + scene_init(&g_core.default_scene); } #include -- cgit v1.2.3-70-g09d2