|
openscenegraph
|
Classes | |
| struct | CompareStateAttributes |
| struct | CompareStateSets |
Public Types | |
| enum | ShareMode { SHARE_NONE = 0, SHARE_STATIC_TEXTURES = 1<<0, SHARE_UNSPECIFIED_TEXTURES = 1<<1, SHARE_DYNAMIC_TEXTURES = 1<<2, SHARE_STATIC_STATESETS = 1<<3, SHARE_UNSPECIFIED_STATESETS = 1<<4, SHARE_DYNAMIC_STATESETS = 1<<5, SHARE_TEXTURES = SHARE_STATIC_TEXTURES | SHARE_UNSPECIFIED_TEXTURES, SHARE_STATESETS = SHARE_STATIC_STATESETS | SHARE_UNSPECIFIED_STATESETS, SHARE_ALL } |
Public Types inherited from osg::NodeVisitor | |
| 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::ref_ptr < osg::StateAttribute > , CompareStateAttributes > | TextureSet |
| typedef std::set< osg::ref_ptr < osg::StateSet > , CompareStateSets > | StateSetSet |
| typedef std::pair < osg::StateAttribute *, bool > | TextureSharePair |
| typedef std::map < osg::StateAttribute *, TextureSharePair > | TextureTextureSharePairMap |
| typedef std::pair < osg::StateSet *, bool > | StateSetSharePair |
| typedef std::map < osg::StateSet *, StateSetSharePair > | StateSetStateSetSharePairMap |
Protected Member Functions | |
| bool | shareTexture (osg::Object::DataVariance variance) |
| bool | shareStateSet (osg::Object::DataVariance variance) |
| void | process (osg::StateSet *ss, osg::Object *parent) |
| osg::StateAttribute * | find (osg::StateAttribute *sa) |
| osg::StateSet * | find (osg::StateSet *ss) |
| void | setStateSet (osg::StateSet *ss, osg::Object *object) |
| void | shareTextures (osg::StateSet *ss) |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| TextureSet | _sharedTextureList |
| StateSetSet | _sharedStateSetList |
| TextureTextureSharePairMap | tmpSharedTextureList |
| StateSetStateSetSharePairMap | tmpSharedStateSetList |
| unsigned int | _shareMode |
| bool | _shareTexture [3] |
| bool | _shareStateSet [3] |
| OpenThreads::Mutex * | _mutex |
| OpenThreads::Mutex | _listMutex |
Protected Attributes inherited from osg::NodeVisitor | |
| 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 |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| osgDB::SharedStateManager::SharedStateManager | ( | unsigned int | mode = SHARE_ALL | ) |
|
virtual |
Reimplemented from osg::NodeVisitor.
|
virtual |
Reimplemented from osg::NodeVisitor.
|
protected |
|
protected |
|
inline |
| bool osgDB::SharedStateManager::isShared | ( | osg::StateSet * | stateSet | ) |
| bool osgDB::SharedStateManager::isShared | ( | osg::Texture * | texture | ) |
| osgDB::SharedStateManager::META_NodeVisitor | ( | osgDB | , |
| SharedStateManager | |||
| ) |
|
protected |
| void osgDB::SharedStateManager::prune | ( | ) |
| void osgDB::SharedStateManager::releaseGLObjects | ( | osg::State * | state | ) | const |
|
protected |
| void osgDB::SharedStateManager::share | ( | osg::Node * | node, |
| OpenThreads::Mutex * | mt = 0 |
||
| ) |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6