diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-30 23:24:36 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-30 23:43:03 -0600 |
commit | 141732e737eb7e9a1677fc3b5aa9ebcd66de3aca (patch) | |
tree | 196dabb31b85b92951e48462a425a58328350319 /libdimension/dimension/scene.h | |
parent | 54585ba35adc6afc46201b746401c5a8a66ab6fa (diff) | |
download | dimension-141732e737eb7e9a1677fc3b5aa9ebcd66de3aca.tar.xz |
Make lights more generic to support directional lights.
Diffstat (limited to 'libdimension/dimension/scene.h')
-rw-r--r-- | libdimension/dimension/scene.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h index b726a77..bb47ee9 100644 --- a/libdimension/dimension/scene.h +++ b/libdimension/dimension/scene.h @@ -100,6 +100,13 @@ void dmnsn_initialize_scene(dmnsn_scene *scene); void dmnsn_scene_set_canvas(dmnsn_scene *scene, dmnsn_canvas *canvas); /** + * Add a light to a scene. + * @param[in,out] scene The scene to which to add the light. + * @param[in] object The object to light. + */ +void dmnsn_scene_add_light(dmnsn_scene *scene, dmnsn_light *light); + +/** * Set the camera for a scene. * @param[in,out] scene The scene for which to set the canvas. * @param[in] camera The camera to set. |