Container for the scene graph, lighting environment, fog, skybox, and layer composition.
More...
|
| const Color & | ambientLight () const |
| bool | atmosphereEnabled () const |
| const void * | atmosphereUniformData () const |
| | Access raw atmosphere uniform data for the device.
|
| size_t | atmosphereUniformSize () const |
| bool | clusteredLightingEnabled () const |
| bool | debugNormalMapsEnabled () const |
| Texture * | envAtlas () const |
| float | exposure () const |
| const FogParams & | fog () const |
| Immediate * | immediate () const |
| const std::shared_ptr< LayerComposition > & | layers () const |
| const LightingParams & | lighting () const |
| | Scene (const std::shared_ptr< GraphicsDevice > &graphicsDevice) |
| void | setAmbientLight (float r, float g, float b) |
| void | setAtmosphereEnabled (bool value) |
| void | setAtmosphereUniforms (const void *data, size_t size) |
| void | setClusteredLightingEnabled (bool value) |
| void | setDebugNormalMapsEnabled (const bool enabled) |
| void | setEnvAtlas (Texture *value) |
| void | setExposure (float value) |
| void | setFogColor (const Color &color) |
| void | setFogDensity (const float density) |
| void | setFogEnabled (const bool enabled) |
| void | setFogLinear (const float start, const float end) |
| void | setLayers (const std::shared_ptr< LayerComposition > &layers) |
| void | setPrefilteredCubemaps (const std::vector< Texture * > &cubemaps) |
| void | setSkybox (Texture *value) |
| void | setSkyboxIntensity (float value) |
| void | setSkyboxMip (int value) |
| void | setSkyType (int value) |
| void | setToneMapping (int value) |
| Sky * | sky () const |
| Texture * | skybox () const |
| float | skyboxIntensity () const |
| int | skyboxMip () const |
| int | skyType () const |
| int | toneMapping () const |
| | ~Scene ()=default |
| Public Member Functions inherited from visutwin::canvas::EventHandler |
| template<typename... Args> |
| EventHandler * | fire (const std::string &name, Args &&... args) |
| bool | hasEvent (const std::string &name) const |
| void | initEventHandler () |
template<typename Callback>
requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) |
| EventHandler * | off (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandler * | off (const std::string &name="", const HandleEventCallback &callback=HandleEventCallback(), void *scope=nullptr) |
| EventHandler * | offByHandle (EventHandle *handle) |
template<typename Callback>
requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) |
| EventHandle * | on (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | on (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
template<typename Callback>
requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) |
| EventHandle * | once (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | once (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| virtual | ~EventHandler ()=default |
Container for the scene graph, lighting environment, fog, skybox, and layer composition.
A Scene holds all graphical objects, lights, and environment settings that the ForwardRenderer draws each frame. It owns the LayerComposition that controls render order and the LightingParams consumed by the shader system.
Definition at line 28 of file scene.h.