Files
OpenSceneGraph/src/osgPlugins/osg/Image.cpp
Robert Osfield 00cc3a1833 Converted the instance of osgNew and osgDelete back to new and delete as part
of depecating the include/osg/MemoryManager
2002-12-16 13:40:58 +00:00

46 lines
1.0 KiB
C++

#include "osg/Image"
#include "osgDB/Registry"
#include "osgDB/Input"
#include "osgDB/Output"
using namespace osg;
using namespace osgDB;
// forward declare functions to use later.
bool Image_readLocalData(Object& obj, Input& fr);
bool Image_writeLocalData(const Object& obj, Output& fw);
// register the read and write functions with the osgDB::Registry.
RegisterDotOsgWrapperProxy g_ImageFuncProxy
(
new osg::Image,
"Image",
"Object Image",
&Image_readLocalData,
&Image_writeLocalData
);
bool Image_readLocalData(Object& /*obj*/, Input& /*fr*/)
{
bool iteratorAdvanced = false;
// Image& image = static_cast<Image&>(obj);
// no current image reading code
// as it is all handled by osg::Registry::readImage() via plugins.
return iteratorAdvanced;
}
bool Image_writeLocalData(const Object& /*obj*/, Output& /*fw*/)
{
// const Image& image = static_cast<const Image&>(obj);
// no current image writing code here
// as it is all handled by osg::Registry::writeImage() via plugins.
return true;
}