summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index 51b8215..ec9fdbd 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -92,6 +92,14 @@ dmnsn_scene_set_canvas(dmnsn_scene *scene, dmnsn_canvas *canvas)
}
void
+dmnsn_scene_set_camera(dmnsn_scene *scene, dmnsn_camera *camera)
+{
+ DMNSN_INCREF(camera);
+ dmnsn_delete_camera(scene->camera);
+ scene->camera = camera;
+}
+
+void
dmnsn_scene_add_object(dmnsn_scene *scene, dmnsn_object *object)
{
DMNSN_INCREF(object);