openscenegraph
|
Public Types | |
enum | ModeValues { SWITCH_ON_DISPLAY_LISTS = 0x1, SWITCH_OFF_DISPLAY_LISTS = 0x2, COMPILE_DISPLAY_LISTS = 0x4, COMPILE_STATE_ATTRIBUTES = 0x8, RELEASE_DISPLAY_LISTS = 0x10, RELEASE_STATE_ATTRIBUTES = 0x20, SWITCH_ON_VERTEX_BUFFER_OBJECTS = 0x40, SWITCH_OFF_VERTEX_BUFFER_OBJECTS = 0x80, CHECK_BLACK_LISTED_MODES = 0x100 } |
typedef unsigned int | Mode |
![]() | |
enum | TraversalMode { TRAVERSE_NONE, TRAVERSE_PARENTS, TRAVERSE_ALL_CHILDREN, TRAVERSE_ACTIVE_CHILDREN } |
enum | VisitorType { NODE_VISITOR = 0, UPDATE_VISITOR, EVENT_VISITOR, COLLECT_OCCLUDER_VISITOR, CULL_VISITOR } |
Protected Types | |
typedef std::set< osg::Drawable * > | DrawableAppliedSet |
typedef std::set< osg::StateSet * > | StatesSetAppliedSet |
Protected Attributes | |
Mode | _mode |
osg::RenderInfo | _renderInfo |
DrawableAppliedSet | _drawablesAppliedSet |
StatesSetAppliedSet | _stateSetAppliedSet |
osg::ref_ptr< osg::Program > | _lastCompiledProgram |
![]() | |
VisitorType | _visitorType |
unsigned int | _traversalNumber |
ref_ptr< FrameStamp > | _frameStamp |
TraversalMode | _traversalMode |
Node::NodeMask | _traversalMask |
Node::NodeMask | _nodeMaskOverride |
NodePath | _nodePath |
ref_ptr< Referenced > | _userData |
ref_ptr< DatabaseRequestHandler > | _databaseRequestHandler |
ref_ptr< ImageRequestHandler > | _imageRequestHandler |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
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.
|
protected |
typedef unsigned int osgUtil::GLObjectsVisitor::Mode |
|
protected |
osgUtil::GLObjectsVisitor::GLObjectsVisitor | ( | Mode | mode = COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES ) |
Construct a GLObjectsVisitor to traverse all children, 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.
|
virtual |
Simply traverse using standard NodeVisitor traverse method.
Reimplemented from osg::NodeVisitor.
|
virtual |
For each Geode visited set the display list usage according to the _displayListMode.
Reimplemented from osg::NodeVisitor.
void osgUtil::GLObjectsVisitor::apply | ( | osg::Drawable & | drawable) |
void osgUtil::GLObjectsVisitor::apply | ( | osg::StateSet & | stateset) |
|
inline |
Get the operational mode.
|
inline |
|
inline |
|
inline |
|
inline |
Set the operational mode of what operations to do on the scene graph.
|
inline |
|
inline |
Set the State to use during traversal.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |