]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/Pass.cxx
Improved tile cache priority scheme.
[simgear.git] / simgear / scene / material / Pass.cxx
index 210a8506dfc5c35a50dcbe5e03e65f9952a8020d..2a47ea39644f2561ac73e64c7e92e6d23dba961f 100644 (file)
@@ -1,50 +1,24 @@
 #include "Pass.hxx"
 
-#include <simgear/structure/OSGUtils.hxx>
-
-#include <osg/StateSet>
 #include <osgDB/Registry>
-#include <osgDB/Input>
-#include <osgDB/ParameterOutput>
 
 namespace simgear
 {
 
 Pass::Pass(const Pass& rhs, const osg::CopyOp& copyop) :
-    _stateSet(clone_ref(rhs._stateSet, copyop))
-{
-}
-
-void Pass::resizeGLObjectBuffers(unsigned int maxSize)
+    osg::StateSet(rhs, copyop)
 {
-    if (_stateSet.valid())
-        _stateSet->resizeGLObjectBuffers(maxSize);
-}
-
-void Pass::releaseGLObjects(osg::State* state) const
-{
-    if (_stateSet.valid())
-        _stateSet->releaseGLObjects(state);
-}
-
-bool Pass_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
-{
-    const Pass& pass = static_cast<const Pass&>(obj);
-
-    fw.indent() << "stateSet\n";
-    fw.writeObject(*pass.getStateSet());
-    return true;
 }
 
 namespace
 {
-osgDB::RegisterDotOsgWrapperProxy passProxy
+osgDB::RegisterDotOsgWrapperProxy PassProxy
 (
     new Pass,
     "simgear::Pass",
-    "Object simgear::Pass",
+    "Object simgear::Pass StateSet ",
     0,
-    &Pass_writeLocalData
+    0
     );
 }
 }