diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-10 13:36:03 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-10 13:36:03 +1000 |
commit | 78275161e08df050d3439f16ef88de8e421c6f8b (patch) | |
tree | 1e344e9fe2e529a32d13e5077201d8ff006e8724 | |
parent | f7944239b793d1d5c49336856965d3a793f99316 (diff) |
initiate scene when bringing up core
-rw-r--r-- | examples/triangle/ex_triangle.c | 2 | ||||
-rw-r--r-- | src/core.c | 4 |
2 files changed, 5 insertions, 1 deletions
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); @@ -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 <glfw3.h> |