Phongo Clap RT
1.0
Simple Raytracing Renderer
|
Hold all the objects and lights of the scene. More...
#include <Scene.h>
Public Member Functions | |
Scene () | |
Default constructor. More... | |
Scene (std::string _n) | |
Constructor which takes a string and sets it as the name of the scene. More... | |
~Scene () | |
Default destructor for the Scene class. More... | |
void | addObject (geo::Shape *_object) |
Adds an shape obejct to the scene. More... | |
void | addLight (Light *_light) |
Adds a light to the scene structure. More... | |
Private Attributes | |
std::string | m_fileName |
Holds the name of the file scene. More... | |
std::vector< geo::Shape * > | m_objects |
Holds all the Shape objects in the scene. More... | |
std::vector< Light * > | m_lights |
Holds all the Light instances of the scene. More... | |
Friends | |
class | Renderer |
Scene::Scene | ( | std::string | _n | ) |
Scene::~Scene | ( | ) |
void Scene::addLight | ( | Light * | _light | ) |
Adds a light to the scene structure.
[in] | Light | to push |
Definition at line 17 of file Scene.cpp.
References m_lights.
void Scene::addObject | ( | geo::Shape * | _object | ) |
Adds an shape obejct to the scene.
[in] | Shape | to push into the objects vector contanier |
Definition at line 12 of file Scene.cpp.
References m_objects.
|
private |
|
private |
|
private |