Radium Engine
1.5.20
Loading...
Searching...
No Matches
DefaultLightManager.hpp
1
#pragma once
2
3
#include <Engine/RadiumEngine.hpp>
4
#include <Engine/Scene/Light.hpp>
5
#include <Engine/Scene/LightManager.hpp>
6
7
#include <memory>
8
#include <vector>
9
10
namespace
Ra
{
11
namespace
Engine {
12
namespace
Scene {
13
17
class
RA_ENGINE_API
DefaultLightStorage
:
public
LightStorage
18
{
19
public
:
20
DefaultLightStorage
();
21
void
add(
const
Scene::Light
* i )
override
;
22
void
remove(
const
Scene::Light
* li )
override
;
23
void
upload()
const override
;
24
size_t
size()
const override
;
25
void
clear()
override
;
26
const
Scene::Light
* operator[](
unsigned
int
n )
override
;
27
28
private
:
30
std::multimap<Scene::Light::LightType, const Scene::Light*>
m_lights;
31
};
32
36
class
RA_ENGINE_API
DefaultLightManager
:
public
LightManager
37
{
38
public
:
39
DefaultLightManager
();
40
41
const
Scene::Light
* getLight(
size_t
li )
const override
;
42
void
addLight(
const
Scene::Light
* li )
override
;
43
};
44
45
}
// namespace Scene
46
}
// namespace Engine
47
}
// namespace Ra
Ra::Engine::Scene::DefaultLightManager
DefaultLightManager. A simple Light Manager with a list of lights.
Definition
DefaultLightManager.hpp:37
Ra::Engine::Scene::DefaultLightStorage
Definition
DefaultLightManager.hpp:18
Ra::Engine::Scene::LightManager
Definition
LightManager.hpp:18
Ra::Engine::Scene::LightStorage
Definition
LightStorage.hpp:19
Ra::Engine::Scene::Light
Definition
Light.hpp:21
std::multimap
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:3
src
Engine
Scene
DefaultLightManager.hpp
Generated by
1.12.0