class OSGDB_EXPORT osgDB::SharedStateManager


Inheritance:


Public Classes

[more]enum ShareMode

Public Methods

[more] SharedStateManager()
[more]void setShareMode(unsigned int mode)
[more]unsigned int getShareMode()
[more]void prune()
[more]void share(osg::Node* node, OpenThreads::Mutex* mt=0)

Protected Fields

[more]TextureSet _sharedTextureList
[more]StateSetSet _sharedStateSetList
[more]TextureTextureSharePairMap tmpSharedTextureList
[more]StateSetStateSetSharePairMap tmpSharedStateSetList
[more]unsigned int shareMode
[more]OpenThreads::Mutex* mutex

Protected Methods

[more]void apply(osg::Node& node)
[more]void apply(osg::Geode& geode)
[more]void process(osg::StateSet* ss, osg::Object* parent)
[more]inline osg::StateAttribute* find(osg::StateAttribute* sa)
[more]inline osg::StateSet* find(osg::StateSet* ss)
[more]inline void setStateSet(osg::StateSet* ss, osg::Object* object)
[more]inline void shareTextures(osg::StateSet* ss)

Protected

[more]typedef std::set< osg::ref_ptr<osg::StateAttribute> > TextureSet
[more]typedef std::set< osg::ref_ptr<osg::StateSet> > StateSetSet
[more]typedef std::pair<osg::StateAttribute*, bool> TextureSharePair
[more]typedef std::map<osg::StateAttribute*, TextureSharePair> TextureTextureSharePairMap
[more]typedef std::pair<osg::StateSet*, bool> StateSetSharePair
[more]typedef std::map<osg::StateSet*, StateSetSharePair> StateSetStateSetSharePairMap


Documentation

oenum ShareMode

o SHARE_NONE

o SHARE_TEXTURES

o SHARE_STATESETS

o SHARE_ALL

o SharedStateManager()

ovoid setShareMode(unsigned int mode)

ounsigned int getShareMode()

ovoid prune()

ovoid share(osg::Node* node, OpenThreads::Mutex* mt=0)

ovoid apply(osg::Node& node)

ovoid apply(osg::Geode& geode)

ovoid process(osg::StateSet* ss, osg::Object* parent)

oinline osg::StateAttribute* find(osg::StateAttribute* sa)

oinline osg::StateSet* find(osg::StateSet* ss)

oinline void setStateSet(osg::StateSet* ss, osg::Object* object)

oinline void shareTextures(osg::StateSet* ss)

otypedef std::set< osg::ref_ptr<osg::StateAttribute> > TextureSet

oTextureSet _sharedTextureList

otypedef std::set< osg::ref_ptr<osg::StateSet> > StateSetSet

oStateSetSet _sharedStateSetList

otypedef std::pair<osg::StateAttribute*, bool> TextureSharePair

otypedef std::map<osg::StateAttribute*, TextureSharePair> TextureTextureSharePairMap

oTextureTextureSharePairMap tmpSharedTextureList

otypedef std::pair<osg::StateSet*, bool> StateSetSharePair

otypedef std::map<osg::StateSet*, StateSetSharePair> StateSetStateSetSharePairMap

oStateSetStateSetSharePairMap tmpSharedStateSetList

ounsigned int shareMode

oOpenThreads::Mutex* mutex


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.