Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Engine::Scene::LightStorage Class Referenceabstract

#include <Engine/Scene/LightStorage.hpp>

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

Public Member Functions

 LightStorage ()=default
 Constructor.
 
virtual ~LightStorage ()=default
 Destructor.
 
virtual void upload () const =0
 
virtual size_t size () const =0
 Returns the container size.
 
virtual void add (const Scene::Light *li)=0
 Add a Light to the container.
 
virtual void remove (const Scene::Light *li)=0
 Remove a Light from the container.
 
virtual void clear ()=0
 Clear the container.
 
virtual const Scene::Lightoperator[] (unsigned int n)=0
 Access the container.
 

Detailed Description

Interface providing functions to access and store lights in an implementation-defined way.

Definition at line 18 of file LightStorage.hpp.

Member Function Documentation

◆ add()

virtual void Ra::Engine::Scene::LightStorage::add ( const Scene::Light * li)
pure virtual

Add a Light to the container.

Implemented in Ra::Engine::Scene::DefaultLightStorage.

◆ clear()

virtual void Ra::Engine::Scene::LightStorage::clear ( )
pure virtual

Clear the container.

Implemented in Ra::Engine::Scene::DefaultLightStorage.

◆ operator[]()

virtual const Scene::Light * Ra::Engine::Scene::LightStorage::operator[] ( unsigned int n)
pure virtual

Access the container.

Implemented in Ra::Engine::Scene::DefaultLightStorage.

◆ remove()

virtual void Ra::Engine::Scene::LightStorage::remove ( const Scene::Light * li)
pure virtual

Remove a Light from the container.

Implemented in Ra::Engine::Scene::DefaultLightStorage.

◆ size()

virtual size_t Ra::Engine::Scene::LightStorage::size ( ) const
pure virtual

Returns the container size.

Implemented in Ra::Engine::Scene::DefaultLightStorage.

◆ upload()

virtual void Ra::Engine::Scene::LightStorage::upload ( ) const
pure virtual

Upload data to the GPU.

Implemented in Ra::Engine::Scene::DefaultLightStorage.


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