Added first cut of ImageStream IO wrapper
This commit is contained in:
parent
d12708e6f6
commit
c2432b22da
@ -29,6 +29,7 @@ Geode.cpp
|
||||
Geometry.cpp
|
||||
Group.cpp
|
||||
Image.cpp
|
||||
ImageSequence.cpp
|
||||
LOD.cpp
|
||||
Light.cpp
|
||||
LightModel.cpp
|
||||
|
45
src/osgPlugins/osg/ImageSequence.cpp
Normal file
45
src/osgPlugins/osg/ImageSequence.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user