Added replacement of the placeholder StateSet in the StateGraph with custom StateSet implemented just for the

needs of that particular frame.
This commit is contained in:
Robert Osfield
2011-08-09 06:54:44 +00:00
parent 4238629ebf
commit e4a73d121e
3 changed files with 50 additions and 36 deletions

View File

@@ -100,7 +100,9 @@ class OSGUTIL_EXPORT StateGraph : public osg::Referenced
void setUserData(osg::Referenced* obj) { _userData = obj; }
osg::Referenced* getUserData() { return _userData.get(); }
const osg::Referenced* getUserData() const { return _userData.get(); }
void setStateSet(const osg::StateSet* stateset) { _stateset = stateset; }
#ifdef OSGUTIL_RENDERBACKEND_USE_REF_PTR
const osg::StateSet* getStateSet() const { return _stateset.get(); }
#else