ILightManager provides an interface for user applications to manipulate the list of lights in the scene.
The light list can be trimmed or re-ordered before device/ hardware lights are created, and/or individual lights can be switched on and off before or after each scene node is rendered. It is assumed that the ILightManager implementation will store any data that it wishes to retain, i.e. the ISceneManager to which it is assigned, the lightList, the current render pass, and the current scene node.
|virtual void irr::scene::ILightManager::OnNodePostRender||(||ISceneNode *||node||)||
Called after the the node specified in OnNodePreRender() has been rendered.
|[in]||node,:||the scene node that has just been rendered|
|virtual void irr::scene::ILightManager::OnNodePreRender||(||ISceneNode *||node||)||
Called before the given scene node is rendered.
|[in]||node,:||the scene node that's about to be rendered|
|virtual void irr::scene::ILightManager::OnPostRender||(||void||)||
Called after the last scene node is rendered.
After this call returns, the lightList passed to OnPreRender() becomes invalid.
|virtual void irr::scene::ILightManager::OnPreRender||(||core::array< ISceneNode * > &||lightList||)||
Called after the scene's light list has been built, but before rendering has begun.
As actual device/hardware lights are not created until the ESNRP_LIGHT render pass, this provides an opportunity for the light manager to trim or re-order the light list, before any device/hardware lights have actually been created.
|lightList,:||the Scene Manager's light list, which the light manager may modify. This reference will remain valid until OnPostRender().|
|virtual void irr::scene::ILightManager::OnRenderPassPostRender||(||E_SCENE_NODE_RENDER_PASS||renderPass||)||
Called after the render pass specified in OnRenderPassPreRender() ends.
|[in]||renderPass,:||the render pass that has finished|
|virtual void irr::scene::ILightManager::OnRenderPassPreRender||(||E_SCENE_NODE_RENDER_PASS||renderPass||)||
Called before a render pass begins.
|renderPass,:||the render pass that's about to begin|