DtOsgLightManager receives LightSource nodes from the DtOsgCullVisitor, and collects them all here where they may by applied simultaneously at the same time.
More...
Detailed Description
DtOsgLightManager receives LightSource nodes from the DtOsgCullVisitor, and collects them all here where they may by applied simultaneously at the same time.
Member Typedef Documentation
Constructor & Destructor Documentation
| virtual makVrv::DtOsgLightManager::~DtOsgLightManager |
( |
| ) |
|
|
virtual |
| makVrv::DtOsgLightManager::DtOsgLightManager |
( |
DtDe & |
de | ) |
|
|
protected |
| makVrv::DtOsgLightManager::DtOsgLightManager |
( |
| ) |
|
|
private |
Member Function Documentation
Get/create instance of sky object manager.
| static std::string makVrv::DtOsgLightManager::theClassName |
( |
| ) |
|
|
static |
Get the name this class is registered by.
| static LightType makVrv::DtOsgLightManager::getLightType |
( |
const osg::Light * |
light | ) |
|
|
static |
| void makVrv::DtOsgLightManager::attachToStateSet |
( |
osg::StateSet * |
stateSet | ) |
|
Attach the light manager to a particular OSG state set.
Pass in NULL to detach.
| void makVrv::DtOsgLightManager::setPerPixelLightingEnabled |
( |
bool |
enabled | ) |
|
Toggles global use of shader-based lighting effects.
| bool makVrv::DtOsgLightManager::getPerPixelLightingEnabled |
( |
| ) |
const |
Retrieves whether per-pixel shader-based lighting is active.
Get the internal light manager implementation object.
| void makVrv::DtOsgLightManager::setReservedID |
( |
int |
id | ) |
|
Reserves a light ID that the light manager won't mess with.
| int makVrv::DtOsgLightManager::reservedID |
( |
| ) |
const |
Retrieves the reserved light ID, or -1 if none.
| void makVrv::DtOsgLightManager::cullReset |
( |
| ) |
|
Clear the internal list of light sources and implement state changes when the cull visitor is reset each frame.
| bool makVrv::DtOsgLightManager::registerLight |
( |
const osg::LightSource * |
light, |
|
|
const osg::NodePath & |
nodePath, |
|
|
const osg::Matrixd & |
modelingMatrix, |
|
|
bool |
globalLights |
|
) |
| |
Add a light source to the ones globally managed.
| void makVrv::DtOsgLightManager::deregisterLight |
( |
const osg::LightSource * |
light | ) |
|
| void makVrv::DtOsgLightManager::update |
( |
const osg::State & |
state, |
|
|
DtDe & |
de |
|
) |
| |
Active the underlying GLLight's, transformed by the matrix passed in.
| void makVrv::DtOsgLightManager::deactivateLights |
( |
| ) |
|
Disable all GLLights managed by this class.
| int makVrv::DtOsgLightManager::getTextureStartOffset |
( |
void |
| ) |
const |
| const Vector2_uint32& makVrv::DtOsgLightManager::GetTileSize |
( |
void |
| ) |
const |
| const Vector2_uint32& makVrv::DtOsgLightManager::GetGridMaxDims |
( |
void |
| ) |
const |
| void makVrv::DtOsgLightManager::releaseGLObjects |
( |
void |
| ) |
|
| void makVrv::DtOsgLightManager::updateLightOnOffStatus |
( |
void |
| ) |
|
|
protected |
| void makVrv::DtOsgLightManager::updateFixedFunctionLights |
( |
const osg::State & |
state | ) |
|
|
protected |
| void makVrv::DtOsgLightManager::updateShaderBasedLights |
( |
const osg::State & |
state | ) |
|
|
protected |
| void makVrv::DtOsgLightManager::configurePerPixelLighting |
( |
osg::StateSet * |
| ) |
|
|
protected |
| void makVrv::DtOsgLightManager::setComponentVisualizationMode |
( |
int |
mode | ) |
|
|
protected |
| void makVrv::DtOsgLightManager::slot_reloadShader |
( |
| ) |
|
|
protected |
| bool makVrv::DtOsgLightManager::existsInLightManager |
( |
const DtLight * |
light | ) |
const |
|
private |
Member Data Documentation
| int makVrv::DtOsgLightManager::myReservedID |
|
protected |
| DtDe& makVrv::DtOsgLightManager::myDe |
|
protected |
| bool makVrv::DtOsgLightManager::myPerPixelLightingEnabled |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtOsgLightManager::myComponentDebugUniform |
|
protected |
| bool makVrv::DtOsgLightManager::myLightingComponentInstalled |
|
protected |
| osg::observer_ptr<osg::StateSet> makVrv::DtOsgLightManager::myStateSet |
|
protected |
| DtOsgLightsObserver* makVrv::DtOsgLightManager::myOsgLightsObserver |
|
private |
The documentation for this class was generated from the following file: