Radium Engine
1.5.20
|
DefaultLightManager. A simple Light Manager with a list of lights. More...
#include <Engine/Scene/DefaultLightManager.hpp>
Public Member Functions | |
const Scene::Light * | getLight (size_t li) const override |
Get a pointer to the li-th Light. | |
void | addLight (const Scene::Light *li) override |
Public Member Functions inherited from Ra::Engine::Scene::LightManager | |
LightManager ()=default | |
Constructor. | |
LightManager (const LightManager &)=delete | |
LightManager & | operator= (const LightManager &)=delete |
~LightManager () override | |
Virtual destructor. | |
virtual size_t | count () const |
Number of lights. This is still a work in progress. The idea is to make it possible for a LightManager to tell it has only one Light, for example if it wants to send a lot of sources at once in a single RenderParams, let's say a texture. | |
void | generateTasks (Core::TaskQueue *taskQueue, const Engine::FrameInfo &frameInfo) override |
Do nothing as this system only manage light related asset loading. | |
void | handleAssetLoading (Entity *entity, const Core::Asset::FileData *data) override |
Transform loaded file data to usable entities and component in the engine. | |
Public Member Functions inherited from Ra::Engine::Scene::System | |
std::vector< Component * > | getEntityComponents (const Entity *entity) |
void | addComponent (Entity *entity, Component *component) |
Additional Inherited Members | |
Protected Member Functions inherited from Ra::Engine::Scene::LightManager | |
void | registerComponent (const Entity *entity, Component *component) final |
void | unregisterComponent (const Entity *entity, Component *component) final |
void | unregisterAllComponents (const Entity *entity) final |
Protected Member Functions inherited from Ra::Engine::Scene::System | |
Protected Attributes inherited from Ra::Engine::Scene::LightManager | |
std::unique_ptr< LightStorage > | m_data { nullptr } |
Stores the object that stores the lights... | |
Protected Attributes inherited from Ra::Engine::Scene::System | |
std::vector< std::pair< const Entity *, Component * > > | m_components |
List of active components. | |
DefaultLightManager. A simple Light Manager with a list of lights.
Definition at line 36 of file DefaultLightManager.hpp.
Ra::Engine::Scene::DefaultLightManager::DefaultLightManager | ( | ) |
Definition at line 9 of file DefaultLightManager.cpp.
|
overridevirtual |
Add a light to the manager ... Consider the component is already registered. The light manager will not take ownership of the added light, it will just push the light on the storage ...
li | The (already registered) light to add. |
Implements Ra::Engine::Scene::LightManager.
Definition at line 17 of file DefaultLightManager.cpp.
|
overridevirtual |
Get a pointer to the li-th Light.
Implements Ra::Engine::Scene::LightManager.
Definition at line 13 of file DefaultLightManager.cpp.