#include <RenderStateManager.h>
Definition at line 50 of file RenderStateManager.h.
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.
| 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.
| void agx::Singleton::_shutdown |
( |
| ) |
|
|
protectedinherited |
| void agxOSG::RenderStateManager::addRenderState |
( |
RenderState * |
renderState | ) |
|
| void agxOSG::RenderStateManager::addShaderState |
( |
ShaderState * |
shaderState | ) |
|
| void agxOSG::RenderStateManager::addTexture |
( |
const std::string & |
name, |
|
|
osg::Texture * |
texture |
|
) |
| |
| void agxOSG::RenderStateManager::clear |
( |
| ) |
|
Remove all previous configurations, Shader/RenderStates.
Begin fresh.
| osg::Program* agxOSG::RenderStateManager::createProgram |
( |
const std::string & |
name | ) |
|
| osg::Shader* agxOSG::RenderStateManager::createShader |
( |
const std::string & |
name, |
|
|
const std::string & |
shader, |
|
|
osg::Shader::Type |
type, |
|
|
bool |
isAFile |
|
) |
| |
| osg::Program* agxOSG::RenderStateManager::findProgram |
( |
const std::string & |
name | ) |
|
| RenderState* agxOSG::RenderStateManager::findRenderState |
( |
const std::string & |
name | ) |
|
| osg::Shader* agxOSG::RenderStateManager::findShader |
( |
const std::string & |
name, |
|
|
osg::Shader::Type |
type |
|
) |
| |
| ShaderState* agxOSG::RenderStateManager::findShaderState |
( |
const std::string & |
name | ) |
|
| osg::Texture* agxOSG::RenderStateManager::findTexture |
( |
const std::string & |
name | ) |
|
| virtual std::string agx::Singleton::getClassName |
( |
| ) |
const |
|
pure virtualinherited |
| int agx::Singleton::getPriority |
( |
| ) |
const |
|
inherited |
Return the shutdown priority of the singleton instance.
Return the singleton object.
| void agxOSG::RenderStateManager::parse |
( |
agxCFG::ConfigScript * |
cfg | ) |
|
template<typename T >
| static void agxOSG::RenderStateManager::parseUniform |
( |
T * |
obj, |
|
|
agxCFG::ConfigScript * |
cfg |
|
) |
| |
|
inlinestatic |
| 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: