Modified Files:
scene/tgdb/SGReaderWriterBTG.cxx
scene/tgdb/SGReaderWriterBTG.hxx
return "BTG Database reader";
}
+bool
+SGReaderWriterBTG::acceptsExtension(const std::string& extension) const
+{
+ std::string lowercase_ext = osgDB::convertToLowerCase(extension);
+ if (lowercase_ext == "gz")
+ return true;
+ return osgDB::ReaderWriter::acceptsExtension(extension);
+}
+
osgDB::ReaderWriter::ReadResult
SGReaderWriterBTG::readNode(const std::string& fileName,
const osgDB::ReaderWriter::Options* options) const
virtual const char* className() const;
+ virtual bool acceptsExtension(const std::string& /*extension*/) const;
virtual ReadResult readNode(const std::string& fileName,
const osgDB::ReaderWriter::Options* options)
const;