From Glenn Waldron, "As you may recall, we discussed adding ReaderWriter::readObject() overrides to all the image plugins in order to facilitate future archive support. Attached are the necessary modifications. I tested JPEG, but not all the others... the code is identical though. Note that the DDS plugin already contained the readObject() implementations."

This commit is contained in:
Robert Osfield
2008-02-25 13:25:42 +00:00
parent d003972a5f
commit adbc15b5a1
8 changed files with 75 additions and 0 deletions

View File

@@ -354,6 +354,16 @@ class ReaderWriterBMP : public osgDB::ReaderWriter
return pOsgImage;
}
virtual ReadResult readObject(std::istream& fin,const osgDB::ReaderWriter::Options* options =NULL) const
{
return readImage(fin, options);
}
virtual ReadResult readObject(const std::string& file, const osgDB::ReaderWriter::Options* options =NULL) const
{
return readImage(file, options);
}
virtual ReadResult readImage(std::istream& fin,const Options* =NULL) const
{
return readBMPStream(fin);