using namespace simgear;
-// SGReaderWriterBTGOptions static value here to avoid an additional,
-// tiny source file.
-
-std::string SGReaderWriterBTGOptions::defaultOptions;
-
SGReaderWriterBTG::SGReaderWriterBTG()
{
supportsExtension("btg", "SimGear btg database format");
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