◆ Manager()
Raytracer::Config::Manager::Manager |
( |
| ) |
|
Construct a new Manager:: Manager object.
Initialize the argument map with the available arguments and their corresponding functions. Initialize the camera map with the available camera arguments and their corresponding functions.
◆ bootstrap()
void Raytracer::Config::Manager::bootstrap |
( |
| ) |
|
Bootstrap the configuration.
Bootstrap the configuration by adding the shapes to the world.
- Returns
- void
◆ parse()
bool Raytracer::Config::Manager::parse |
( |
std::string | path | ) |
|
Parse the configuration file.
Parse the configuration file and load the scene, textures, materials, shapes and effects. If an error occurs while parsing the file, an exception is thrown.
- Parameters
-
path | Path to the configuration file |
- Exceptions
-
- Returns
- void
◆ render()
void Raytracer::Config::Manager::render |
( |
bool | fast | ) |
|
Render the scene.
Render the scene using the camera and the world. If the fast flag is set, the rendering is done in fast mode, which reduces the image width, the samples per pixel and the maximum depth.
- Parameters
-
- Returns
- void
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/config/Manager.hpp
- /Users/javii/Code/raytracer/sources/config/Manager.cpp