SpatiumLib
|
3D scene More...
#include <Scene.h>
Public Member Functions | |
Scene () | |
Constructor. More... | |
void | setCamera (std::shared_ptr< Camera > camera) |
Set the camera. More... | |
std::shared_ptr< Camera > | camera () const |
Get the camera. More... | |
void | addLight (std::shared_ptr< Light > light) |
Add a light. More... | |
std::vector< std::shared_ptr< Light > > | lights () const |
Get all lights. More... | |
void | addRenderObject (std::shared_ptr< RenderObject > renderObject) |
Add a render object. More... | |
std::vector< std::shared_ptr< RenderObject > > | renderObjects () const |
Get all render objects. More... | |
3D scene
A scene is a collection of:
|
inline |
Constructor.
|
inline |
Add a light.
[in] | light | Light |
|
inline |
Add a render object.
[in] | renderObject | Render object |
|
inline |
Get the camera.
|
inline |
Get all lights.
|
inline |
Get all render objects.
|
inline |
Set the camera.
[in] | camera | The camera |