Added first cut of ImageStream IO wrapper

This commit is contained in:
Robert Osfield 2008-07-21 09:55:15 +00:00
parent d12708e6f6
commit c2432b22da
2 changed files with 46 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Geode.cpp
Geometry.cpp Geometry.cpp
Group.cpp Group.cpp
Image.cpp Image.cpp
ImageSequence.cpp
LOD.cpp LOD.cpp
Light.cpp Light.cpp
LightModel.cpp LightModel.cpp

View File

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