The writeImage/Object/Node methods in the .osg and .pfb reader/writer didn't

have the new ReaderWriter::Options* structure passed to them, which meant the
the virtual functions didn't bind with the new base class methods and wern't
called on a write.
This commit is contained in:
Robert Osfield
2001-10-15 08:40:30 +00:00
parent d66bfdbbc5
commit 7c54b58306
2 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ class OSGReaderWriter : public ReaderWriter
}
}
virtual bool writeObject(const Object& obj,const std::string& fileName)
virtual bool writeObject(const Object& obj,const std::string& fileName, const osgDB::ReaderWriter::Options*)
{
Output fout;
fout.open(fileName.c_str());
@@ -83,7 +83,7 @@ class OSGReaderWriter : public ReaderWriter
return false;
}
virtual bool writeNode(const Node& node,const std::string& fileName)
virtual bool writeNode(const Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options*)
{
Output fout;
fout.open(fileName.c_str());

View File

@@ -31,7 +31,7 @@ class ReaderWriterPFB : public osgDB::ReaderWriter
virtual const char* className() { return "Performer Reader/Writer"; }
virtual bool acceptsExtension(const std::string& extension) { return extension=="pfb"; }
virtual osg::Image* readImage(const std::string& fileName)
virtual osg::Image* readImage(const std::string& fileName, const osgDB::ReaderWriter::Options*)
{
osg::notify(osg::INFO)<< "ReaderWriterPFB::readImage( "<<fileName.c_str()<<" )\n";
@@ -84,7 +84,7 @@ class ReaderWriterPFB : public osgDB::ReaderWriter
}
virtual bool writeNode(const osg::Node& node,const std::string& fileName)
virtual bool writeNode(const osg::Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options*)
{
osg::notify(osg::INFO)<< "ReaderWriterPFB::writeNode( "<<fileName.c_str()<<" )\n";
initPerformer();