Further updates to the ReaderWriter support in osgDB, and a fix to a small warning

in Matrix.cpp.
This commit is contained in:
Robert Osfield
2001-10-30 19:23:24 +00:00
parent f0372817b5
commit 8f4e62ced0
7 changed files with 77 additions and 125 deletions

View File

@@ -50,11 +50,11 @@ class ReaderWriterFLY : public osgDB::ReaderWriter
return osgDB::equalCaseInsensitive(extension,"fly");
}
virtual Node* readNode(const std::string& fileName,const osgDB::ReaderWriter::Options*)
virtual ReadResult readNode(const std::string& fileName,const osgDB::ReaderWriter::Options*)
{
std::string ext = osgDB::getFileExtension(fileName);
if (!acceptsExtension(ext)) return NULL;
if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED;
char buff[256];
@@ -95,7 +95,7 @@ class ReaderWriterFLY : public osgDB::ReaderWriter
};
// now register with osg::Registry to instantiate the above
// now register with osgDB::Registry to instantiate the above
// reader/writer.
osgDB::RegisterReaderWriterProxy<ReaderWriterFLY> g_readerWriter_FLY_Proxy;