summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/triangle/ex_triangle.c2
-rw-r--r--src/core.c4
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);
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 <glfw3.h>