From a0ccaf5f95fc26226d332ecd9161fc8661ff3389 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 3 May 2005 06:23:02 +0000 Subject: [PATCH] Removed Impostor.cpp --- src/osgPlugins/osg/Impostor.cpp | 51 --------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/osgPlugins/osg/Impostor.cpp diff --git a/src/osgPlugins/osg/Impostor.cpp b/src/osgPlugins/osg/Impostor.cpp deleted file mode 100644 index b126c503b..000000000 --- a/src/osgPlugins/osg/Impostor.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include "osg/Impostor" - -#include "osgDB/Registry" -#include "osgDB/Input" -#include "osgDB/Output" - -using namespace osg; -using namespace osgDB; - -// forward declare functions to use later. -bool Impostor_readLocalData(Object& obj, Input& fr); -bool Impostor_writeLocalData(const Object& obj, Output& fw); - -// register the read and write functions with the osgDB::Registry. -RegisterDotOsgWrapperProxy g_ImpostorProxy -( - new osg::Impostor, - "Impostor", - "Object Node Impostor LOD Group", - &Impostor_readLocalData, - &Impostor_writeLocalData -); - -bool Impostor_readLocalData(Object& obj, Input& fr) -{ - bool iteratorAdvanced = false; - - Impostor& impostor = static_cast(obj); - - if (fr.matchSequence("ImpostorThreshold %f")) - { - float threshold; - fr[1].getFloat(threshold); - impostor.setImpostorThreshold(threshold); - - iteratorAdvanced = true; - fr+=2; - } - - return iteratorAdvanced; -} - - -bool Impostor_writeLocalData(const Object& obj, Output& fw) -{ - const Impostor& impostor = static_cast(obj); - - fw.indent() << "ImpostorThreshold "<< impostor.getImpostorThreshold() << std::endl; - - return true; -}