3 #include <simgear/structure/OSGUtils.hxx>
5 #include <osg/StateSet>
6 #include <osgDB/Registry>
8 #include <osgDB/ParameterOutput>
13 Pass::Pass(const Pass& rhs, const osg::CopyOp& copyop) :
14 _stateSet(clone_ref(rhs._stateSet, copyop))
18 void Pass::resizeGLObjectBuffers(unsigned int maxSize)
20 if (_stateSet.valid())
21 _stateSet->resizeGLObjectBuffers(maxSize);
24 void Pass::releaseGLObjects(osg::State* state) const
26 if (_stateSet.valid())
27 _stateSet->releaseGLObjects(state);
30 bool Pass_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
32 const Pass& pass = static_cast<const Pass&>(obj);
34 fw.indent() << "stateSet\n";
35 fw.writeObject(*pass.getStateSet());
41 osgDB::RegisterDotOsgWrapperProxy passProxy
45 "Object simgear::Pass",