#include <RenderStateManager.h>
Definition at line 50 of file RenderStateManager.h.
◆ RenderStateRef
◆ Priority
Specifies the ranges of the priority which can be assigned to a singleton at the time of creation.
| Enumerator |
|---|
| HIGHEST_PRIORITY | The highest priority that can be given to a singleton.
|
| LOWEST_PRIORITY | The lowest priority that can be given to a singleton.
|
| DEFAULT_PRIORITY | The default priority given to a singleton.
|
Definition at line 35 of file Singleton.h.
◆ Values
| Enumerator |
|---|
| OFF | means that associated GLMode and Override is disabled.
|
| ON | means that associated GLMode is enabled and Override is disabled.
|
| OVERRIDE | Overriding of GLMode's or StateAttributes is enabled, so that state below it is overridden.
|
| PROTECTED | Protecting of GLMode's or StateAttributes is enabled, so that state from above cannot override this and below state.
|
| INHERIT | means that GLMode or StateAttribute should be inherited from above.
|
Definition at line 54 of file RenderStateManager.h.
◆ _shutdown()
| void agx::Singleton::_shutdown |
( |
| ) |
|
|
protectedinherited |
◆ addRenderState()
| void agxOSG::RenderStateManager::addRenderState |
( |
RenderState * |
renderState | ) |
|
◆ addShaderState()
| void agxOSG::RenderStateManager::addShaderState |
( |
ShaderState * |
shaderState | ) |
|
◆ addTexture()
| void agxOSG::RenderStateManager::addTexture |
( |
const std::string & |
name, |
|
|
osg::Texture * |
texture |
|
) |
| |
◆ clear()
| void agxOSG::RenderStateManager::clear |
( |
| ) |
|
Remove all previous configurations, Shader/RenderStates.
Begin fresh.
◆ createProgram()
| osg::Program* agxOSG::RenderStateManager::createProgram |
( |
const std::string & |
name | ) |
|
◆ createShader()
| osg::Shader* agxOSG::RenderStateManager::createShader |
( |
const std::string & |
name, |
|
|
const std::string & |
shader, |
|
|
osg::Shader::Type |
type, |
|
|
bool |
isAFile |
|
) |
| |
◆ findProgram()
| osg::Program* agxOSG::RenderStateManager::findProgram |
( |
const std::string & |
name | ) |
|
◆ findRenderState()
| RenderState* agxOSG::RenderStateManager::findRenderState |
( |
const std::string & |
name | ) |
|
◆ findShader()
| osg::Shader* agxOSG::RenderStateManager::findShader |
( |
const std::string & |
name, |
|
|
osg::Shader::Type |
type |
|
) |
| |
◆ findShaderState()
| ShaderState* agxOSG::RenderStateManager::findShaderState |
( |
const std::string & |
name | ) |
|
◆ findTexture()
| osg::Texture* agxOSG::RenderStateManager::findTexture |
( |
const std::string & |
name | ) |
|
◆ getClassName()
| virtual std::string agx::Singleton::getClassName |
( |
| ) |
const |
|
pure virtualinherited |
◆ getPriority()
| int agx::Singleton::getPriority |
( |
| ) |
const |
|
inherited |
Return the shutdown priority of the singleton instance.
◆ instance()
Return the singleton object.
◆ parse()
| void agxOSG::RenderStateManager::parse |
( |
agxCFG::ConfigScript * |
cfg | ) |
|
◆ parseUniform()
template<typename T >
| static void agxOSG::RenderStateManager::parseUniform |
( |
T * |
obj, |
|
|
agxCFG::ConfigScript * |
cfg |
|
) |
| |
|
inlinestatic |
◆ reset()
| void agxOSG::RenderStateManager::reset |
( |
| ) |
|
Will call clear and then init to reinitialize back to default state.
The documentation for this class was generated from the following file: