19 #include "physics/photon.hpp" 55 inline const std::string &
name()
const{
79 const std::list<const Object *> &
objects()
const;
88 const std::list<const Light *> &
lights()
const;
105 std::list<Entity *> _roots;
107 std::list<const Object *> _objs;
108 std::list<const Light *> _lights;
Basic space entity.
Definition: entity.hpp:50
static color WHITE
default white color.
Definition: color.hpp:33
const std::list< const Light * > & lights() const
Scene lights.
Definition: scene.cpp:36
Entity * append(Entity *e)
Add a new root entity to the scene.
Definition: scene.cpp:16
const std::string & name() const
The name of the scene.
Definition: scene.hpp:55
const std::list< const Object * > & objects() const
Scene objects.
Definition: scene.cpp:32
Complete scene.
Definition: scene.hpp:42
Scene(const std::string &name, const color &ambient_color=color::WHITE)
Make a new scene.
Definition: scene.cpp:10
RGBA color representation.
Definition: color.hpp:31
const photon & ambientLight() const
The ambient light of the scene.
Definition: scene.cpp:40
void update()
Update object and light lists required for the render.
Definition: scene.cpp:44
Light photon class.
Definition: photon.hpp:28
Image surface.
Definition: image.hpp:31