summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-30 23:24:36 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-30 23:43:03 -0600
commit141732e737eb7e9a1677fc3b5aa9ebcd66de3aca (patch)
tree196dabb31b85b92951e48462a425a58328350319 /libdimension/scene.c
parent54585ba35adc6afc46201b746401c5a8a66ab6fa (diff)
downloaddimension-141732e737eb7e9a1677fc3b5aa9ebcd66de3aca.tar.xz
Make lights more generic to support directional lights.
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index ec9fdbd..8462203 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -92,6 +92,13 @@ dmnsn_scene_set_canvas(dmnsn_scene *scene, dmnsn_canvas *canvas)
}
void
+dmnsn_scene_add_light(dmnsn_scene *scene, dmnsn_light *light)
+{
+ DMNSN_INCREF(light);
+ dmnsn_array_push(scene->lights, &light);
+}
+
+void
dmnsn_scene_set_camera(dmnsn_scene *scene, dmnsn_camera *camera)
{
DMNSN_INCREF(camera);