summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index fadd077..f5b76e7 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -81,8 +81,11 @@ dmnsn_initialize_scene(dmnsn_scene *scene)
if (scene->sky_sphere) {
dmnsn_initialize_sky_sphere(scene->sky_sphere);
}
+}
- DMNSN_ARRAY_FOREACH (dmnsn_object **, object, scene->objects) {
- dmnsn_initialize_object(*object);
- }
+void
+dmnsn_scene_add_object(dmnsn_scene *scene, dmnsn_object *object)
+{
+ dmnsn_initialize_object(object);
+ dmnsn_array_push(scene->objects, &object);
}