Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag, with option to immediately compile osg::Drawable OpenGL Display lists and osg::StateAttribute's
Inheritance:
Public Classes
-
enum ModeValues
- Operation modes of the
Public Methods
-
GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
- Construct a GLObjectsVisior to traverse all child, operating on node according to specified mode, such as to compile or release display list/texture objects etc.
-
void setMode(Mode mode)
- Set the operational mode of what operations to do on the scene graph
-
Mode getMode() const
- Get the operational mode
-
void setState(osg::State* state)
- Set the State to use during traversal.
-
osg::State* getState()
-
virtual void apply(osg::Node& node)
- Simply traverse using standard NodeVisitor traverse method
-
virtual void apply(osg::Geode& node)
- For each Geode visited set the display list usage according to the _displayListMode
-
void apply(osg::Drawable& drawable)
-
void apply(osg::StateSet& stateset)
Public
-
typedef unsigned int Mode
Protected Fields
-
Mode _mode
-
osg::ref_ptr<osg::State> _state
Documentation
Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag,
with option to immediately compile osg::Drawable OpenGL Display lists and
osg::StateAttribute's
- enum ModeValues
- Operation modes of the
- SWITCH_ON_DISPLAY_LISTS
- SWITCH_OFF_DISPLAY_LISTS
- COMPILE_DISPLAY_LISTS
- COMPILE_STATE_ATTRIBUTES
- RELEASE_DISPLAY_LISTS
- RELEASE_STATE_ATTRIBUTES
- typedef unsigned int Mode
- GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
- Construct a GLObjectsVisior to traverse all child, operating on
node according to specified mode, such as to compile or release
display list/texture objects etc. Default mode is to compile
GL objects.
- void setMode(Mode mode)
- Set the operational mode of what operations to do on the scene graph
- Mode getMode() const
- Get the operational mode
- void setState(osg::State* state)
- Set the State to use during traversal.
- osg::State* getState()
- virtual void apply(osg::Node& node)
- Simply traverse using standard NodeVisitor traverse method
- virtual void apply(osg::Geode& node)
- For each Geode visited set the display list usage according to the
_displayListMode
- void apply(osg::Drawable& drawable)
- void apply(osg::StateSet& stateset)
- Mode _mode
- osg::ref_ptr<osg::State> _state
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.