OpenSceneGraph
3.0.1
|
Public Member Functions | |
ShaderGenVisitor () | |
ShaderGenVisitor (ShaderGenCache *stateCache) | |
void | setStateCache (ShaderGenCache *stateCache) |
ShaderGenCache * | getStateCache () const |
void | setRootStateSet (osg::StateSet *stateSet) |
Top level state set applied as the first one. | |
osg::StateSet * | getRootStateSet () const |
void | apply (osg::Node &node) |
void | apply (osg::Geode &geode) |
void | reset () |
Method to call to reset visitor. | |
Protected Member Functions | |
void | update (osg::Drawable *drawable) |
Protected Attributes | |
osg::ref_ptr< ShaderGenCache > | _stateCache |
osg::ref_ptr< osg::State > | _state |
osg::ref_ptr< osg::StateSet > | _rootStateSet |
osgUtil::ShaderGenVisitor::ShaderGenVisitor | ( | ShaderGenCache * | stateCache | ) |
void osgUtil::ShaderGenVisitor::apply | ( | osg::Node & | node | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
void osgUtil::ShaderGenVisitor::apply | ( | osg::Geode & | geode | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
osg::StateSet* osgUtil::ShaderGenVisitor::getRootStateSet | ( | ) | const [inline] |
ShaderGenCache* osgUtil::ShaderGenVisitor::getStateCache | ( | ) | const [inline] |
void osgUtil::ShaderGenVisitor::reset | ( | ) | [virtual] |
Method to call to reset visitor.
Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal.
Reimplemented from osg::NodeVisitor.
void osgUtil::ShaderGenVisitor::setRootStateSet | ( | osg::StateSet * | stateSet | ) |
Top level state set applied as the first one.
void osgUtil::ShaderGenVisitor::setStateCache | ( | ShaderGenCache * | stateCache | ) | [inline] |
void osgUtil::ShaderGenVisitor::update | ( | osg::Drawable * | drawable | ) | [protected] |
osg::ref_ptr<osg::State> osgUtil::ShaderGenVisitor::_state [protected] |
![]() | Generated at Thu Sep 27 2012 12:20:31 for the OpenSceneGraph by doxygen 1.7.6.1. |