#include "Pass.hxx"
-#include <simgear/structure/OSGUtils.hxx>
-
-#include <osg/StateSet>
+#include <osgDB/Registry>
namespace simgear
{
Pass::Pass(const Pass& rhs, const osg::CopyOp& copyop) :
- _stateSet(clone_ref(rhs._stateSet, copyop))
+ osg::StateSet(rhs, copyop)
{
}
-void Pass::resizeGLObjectBuffers(unsigned int maxSize)
+namespace
{
- if (_stateSet.valid())
- _stateSet->resizeGLObjectBuffers(maxSize);
+osgDB::RegisterDotOsgWrapperProxy PassProxy
+(
+ new Pass,
+ "simgear::Pass",
+ "Object simgear::Pass StateSet ",
+ 0,
+ 0
+ );
}
-
-void Pass::releaseGLObjects(osg::State* state) const
-{
- if (_stateSet.valid())
- _stateSet->releaseGLObjects(state);
-}
-
}