14 m_objects.push_back(dynamic_cast<geo::Shape*>(_object));
19 m_lights.push_back(dynamic_cast<Light*>(_light));
This is a base class that will be used as template when creating concretes types of light...
~Scene()
Default destructor for the Scene class.
This hold all the objects and lights that the parser interpred and later pushed into the scene...
std::vector< Light * > m_lights
Holds all the Light instances of the scene.
Scene()
Default constructor.
void addObject(geo::Shape *_object)
Adds an shape obejct to the scene.
Semi abstract class with virtual methods that holds all the calls for getting intersections, getting normals, also for specifying the properties of the material that will be hold by the Material member of this class.
void addLight(Light *_light)
Adds a light to the scene structure.
std::vector< geo::Shape * > m_objects
Holds all the Shape objects in the scene.