#include <Scene.h>
Public Member Functions | |
Scene (const std::vector< Light * > &lights, Fire3dSimulator *fireSimulation, bool slice) | |
void | compute () |
void | render (const OpenGL::Camera &cam) |
void | addSceneObject (SceneObject &sceneObject) |
void | setFireLocation (const Math::Vector3d &location) |
void | setFireScale (float scale) |
void | setGlobalAmbient (const Util::Color &globalAmbient) |
void | setDisplayLights (bool displayLights) |
bool | getDisplayLights () const |
OpenGL::IoTextureSet * | getIoTextureSet () |
|
Initialize the scene. The Fire3dSimulation is needed for dynamic lights.
|
|
Add a scene object to the Scene.
|
|
Perform per-frame computations (light sampling). |
|
Check whether lights are displayed as spheres.
|
|
Get the texture set used for light positions and colors.
|
|
Render the scene from the given viewpoint.
|
|
Set whether to display the point lights as spheres. Used mainly for debugging.
|
|
Set the location of the fire. Used for dynamic lights.
|
|
Set the scale of the fire. Used for positioning of dynamic lights.
|
|
Set the global ambient color. The global ambient affects all scene objects based on their material properties.
|