![]() |
VR-Forces 4.8 Class Documentation
|
Helper class to pack lights into a buffer/texture. More...
Public Member Functions | |
| DtLightData (size_t maxLights) | |
| CTOR. More... | |
| virtual | ~DtLightData () |
| DTOR. More... | |
| size_t | maxLights (void) const |
| Return max light count given to constructor. More... | |
| size_t | sizeInBytes (void) const |
| Return size in bytes of light structure. More... | |
| size_t | inUseSizeInBytes (void) const |
| Return in-use size in bytes for the current light count. More... | |
| size_t | inUseSliceSizeInBytes (void) const |
| Return in-use size in bytes for a single UBO slice. More... | |
| void | packLights (const VectorLights &lights) |
| Pack lights into the grid. More... | |
| void | packLights (const VectorLights &lights, size_t total) |
| Pack lights into the grid. More... | |
| float32 * | data (int slice) |
| Get the light grid data. More... | |
Private Member Functions | |
| void | packLight (size_t offset, const DtLight *pLight) |
| Pack a slight light at the given offset. More... | |
Private Attributes | |
| boost::array< float32 *, DtBindingManager::theLightBlockCount > | myData |
| size_t | myMaxLights |
| size_t | myLightCount |
Helper class to pack lights into a buffer/texture.
| makVrv::DtLightData::DtLightData | ( | size_t | maxLights | ) |
CTOR.
|
virtual |
DTOR.
| size_t makVrv::DtLightData::maxLights | ( | void | ) | const |
Return max light count given to constructor.
| size_t makVrv::DtLightData::sizeInBytes | ( | void | ) | const |
Return size in bytes of light structure.
| size_t makVrv::DtLightData::inUseSizeInBytes | ( | void | ) | const |
Return in-use size in bytes for the current light count.
| size_t makVrv::DtLightData::inUseSliceSizeInBytes | ( | void | ) | const |
Return in-use size in bytes for a single UBO slice.
| void makVrv::DtLightData::packLights | ( | const VectorLights & | lights | ) |
Pack lights into the grid.
| void makVrv::DtLightData::packLights | ( | const VectorLights & | lights, |
| size_t | total | ||
| ) |
Pack lights into the grid.
|
private |
Pack a slight light at the given offset.
|
private |
|
private |
|
private |