Added support for RenderBin's have a local top level StateSet. This is now

used by default in the depth sorted bin.
This commit is contained in:
Robert Osfield
2006-06-29 15:57:24 +00:00
parent d74397ce58
commit 30265ac0b3
7 changed files with 44 additions and 6 deletions

View File

@@ -72,6 +72,11 @@ class OSGUTIL_EXPORT RenderBin : public osg::Object
virtual void reset();
void setStateSet(osg::StateSet* stateset) { _stateset = stateset; }
osg::StateSet* getStateSet() { return _stateset.get(); }
const osg::StateSet* getStateSet() const { return _stateset.get(); }
RenderBin* getParent() { return _parent; }
const RenderBin* getParent() const { return _parent; }
@@ -149,12 +154,12 @@ class OSGUTIL_EXPORT RenderBin : public osg::Object
StateGraphList _stateGraphList;
RenderLeafList _renderLeafList;
SortMode _sortMode;
osg::ref_ptr<SortCallback> _sortCallback;
osg::ref_ptr<DrawCallback> _drawCallback;
osg::ref_ptr<osg::StateSet> _stateset;
};