![]() |
VR-Forces 4.3 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 (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 |
Base class for components that affect the state on a subset of the scene graph, injecting state, shaders, or other information.
| makVrv::DtOsgStateComponent::DtOsgStateComponent | ( | 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::DtOsgFogComponent, and makVrv::DtOsgGlobalShaderComponent.
|
pure virtual |
Uninstall this component from a state set.
Implemented in makVrv::DtOsgLightingComponent, makVrv::DtOsgFogComponent, and makVrv::DtOsgGlobalShaderComponent.
|
protected |
Loads shader source code from a path.
|
private |