diff --git a/src/osgPlugins/gles/CMakeLists.txt b/src/osgPlugins/gles/CMakeLists.txt index d1096e644..2f0e70829 100644 --- a/src/osgPlugins/gles/CMakeLists.txt +++ b/src/osgPlugins/gles/CMakeLists.txt @@ -20,7 +20,6 @@ SET(TARGET_H AABBonBoneVisitor AnimationCleanerVisitor BindPerVertexVisitor - debug DetachPrimitiveVisitor DisableAnimationVisitor DrawArrayVisitor diff --git a/src/osgPlugins/gles/debug b/src/osgPlugins/gles/debug deleted file mode 100644 index f5b8e8d6c..000000000 --- a/src/osgPlugins/gles/debug +++ /dev/null @@ -1,46 +0,0 @@ -#include -#include -#include -#include -#include -#include - -#include -#include - - -inline void save_debug(osg::Node& node, const std::string& path) { - osg::ref_ptr registry = osgDB::Registry::instance(); - std::string ext = osgDB::getLowerCaseFileExtension(path); - osgDB::ReaderWriter* writer = registry->getReaderWriterForExtension(ext); - if(writer) { - writer->writeNode(node, path.c_str()); - } -} - -inline void save_debug(osg::Geometry& geometry, const std::string& path) { - osg::ref_ptr geode = new osg::Geode; - geode->addDrawable(&geometry); - save_debug(*geode, path); -} - -template -std::string dump(const VV& v) { - std::ostringstream oss; - oss << "(" << v[0]; - for(int i = 1 ; i < VV::num_components ; ++ i) { - oss << ", " << v[i]; - } - oss << ")"; - return oss.str(); -} - -template -float length(const VV& v) { - float l = 0; - for(int i = 0 ; i < VV::num_components ; ++ i) { - l += v[i] * v[i]; - } - return std::sqrt(l); -} -