The LightManager class manages slots that can be filled with Light instances and is able to set those lights as a uniform array on a shader program.
More...
#include <lightmanager.h>
|
static constexpr int | slotCount = 8 |
| number of slots managed by this class More...
|
|
The LightManager class manages slots that can be filled with Light instances and is able to set those lights as a uniform array on a shader program.
- See also
- Light
Inserts a light in the next free slot.
- Parameters
-
- Returns
- the number of the slot that the light was inserted in
It is an invalid operation to call this method if freeSlots() == 0
int terminus::LightManager::freeSlots |
( |
| ) |
const |
- Returns
- the number of yet unoccupied light slots
- Parameters
-
- Returns
- get a reference to the Light instance contained in a particular slot
void terminus::LightManager::setUniforms |
( |
Program & |
program | ) |
const |
sets the lights managed by this class as a uniform array
- Parameters
-
std::set<ID> terminus::LightManager::m_usedSlots |
|
protected |
constexpr int terminus::LightManager::slotCount = 8 |
|
static |
number of slots managed by this class
The documentation for this class was generated from the following files: