Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Engine::Scene::DefaultLightManager Class Reference

DefaultLightManager. A simple Light Manager with a list of lights. More...

#include <Engine/Scene/DefaultLightManager.hpp>

+ Inheritance diagram for Ra::Engine::Scene::DefaultLightManager:
+ Collaboration diagram for Ra::Engine::Scene::DefaultLightManager:

Public Member Functions

const Scene::LightgetLight (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
 
LightManageroperator= (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< LightStoragem_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.
 

Detailed Description

DefaultLightManager. A simple Light Manager with a list of lights.

Definition at line 36 of file DefaultLightManager.hpp.

Constructor & Destructor Documentation

◆ DefaultLightManager()

Ra::Engine::Scene::DefaultLightManager::DefaultLightManager ( )

Definition at line 9 of file DefaultLightManager.cpp.

Member Function Documentation

◆ addLight()

void Ra::Engine::Scene::DefaultLightManager::addLight ( const Scene::Light * li)
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 ...

Parameters
liThe (already registered) light to add.

Implements Ra::Engine::Scene::LightManager.

Definition at line 17 of file DefaultLightManager.cpp.

◆ getLight()

const Scene::Light * Ra::Engine::Scene::DefaultLightManager::getLight ( size_t li) const
overridevirtual

Get a pointer to the li-th Light.

Implements Ra::Engine::Scene::LightManager.

Definition at line 13 of file DefaultLightManager.cpp.


The documentation for this class was generated from the following files: