Cleaned up handling of Drawables so it utilizes the Node inheritance properly.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14822 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -461,15 +461,15 @@ class OSGUTIL_EXPORT Optimizer
|
||||
|
||||
protected:
|
||||
|
||||
void addStateSet(osg::StateSet* stateset,osg::Object* obj);
|
||||
void addStateSet(osg::StateSet* stateset, osg::Node* node);
|
||||
|
||||
inline bool optimize(osg::Object::DataVariance variance)
|
||||
{
|
||||
return _optimize[variance];
|
||||
}
|
||||
|
||||
typedef std::set<osg::Object*> ObjectSet;
|
||||
typedef std::map<osg::StateSet*,ObjectSet> StateSetMap;
|
||||
typedef std::set<osg::Node*> NodeSet;
|
||||
typedef std::map<osg::StateSet*, NodeSet> StateSetMap;
|
||||
|
||||
// note, one element for DYNAMIC, STATIC and UNSPECIFIED
|
||||
bool _optimize[3];
|
||||
|
||||
Reference in New Issue
Block a user