![]() |
VR-Forces 4.7 Class Documentation
|
Base class for components that affect the state on a subset of the scene graph, injecting state, shaders, or other information. More...

Public Member Functions | |
| DtOsgStateComponent (DtDe &de, const DtOsgStateComponentContext *context=0L) | |
| CTOR. | |
| const DtOsgStateComponentContext * | getContext () const |
| Gets the context under which this component operates. | |
| virtual bool | install (osg::StateSet *stateset)=0 |
| Install this component on a state set. | |
| virtual bool | uninstall (osg::StateSet *stateset)=0 |
| Uninstall this component from a state set. | |
Protected Member Functions | |
| virtual | ~DtOsgStateComponent () |
| DTOR. | |
| std::string | loadShaderSource (const std::string &strFileName) const |
| Loads shader source code from a path. | |
Private Attributes | |
| osg::ref_ptr< const DtOsgStateComponentContext > | myContext |
| DtDe & | myDe |
| DtOsgShaderFilesCache & | myShaderFilesCache |
Base class for components that affect the state on a subset of the scene graph, injecting state, shaders, or other information.
| makVrv::DtOsgStateComponent::DtOsgStateComponent | ( | DtDe & | de, |
| const DtOsgStateComponentContext * | context = 0L |
||
| ) |
CTOR.
|
protectedvirtual |
DTOR.
| const DtOsgStateComponentContext* makVrv::DtOsgStateComponent::getContext | ( | ) | const |
Gets the context under which this component operates.
|
pure virtual |
Install this component on a state set.
Implemented in makVrv::DtOsgLightingComponent, makVrv::DtOsgGlobalShaderComponent, and makVrv::DtOsgFogComponent.
|
pure virtual |
Uninstall this component from a state set.
Implemented in makVrv::DtOsgLightingComponent, makVrv::DtOsgGlobalShaderComponent, and makVrv::DtOsgFogComponent.
|
protected |
Loads shader source code from a path.
|
private |
|
private |
|
private |