using namespace simgear;
+// SGReaderWriterBTGOptions static value here to avoid an additional,
+// tiny source file.
+
+std::string SGReaderWriterBTGOptions::defaultOptions;
+
const char* SGReaderWriterBTG::className() const
{
return "BTG Database reader";
#include <simgear/scene/tgdb/obj.hxx>
class SGReaderWriterBTGOptions : public osgDB::ReaderWriter::Options {
public:
- SGReaderWriterBTGOptions() {}
- SGReaderWriterBTGOptions(const std::string& str):
+ SGReaderWriterBTGOptions(const std::string& str = defaultOptions) :
osgDB::ReaderWriter::Options(str),
- _matlib(0), _calcLights(false),
+ _matlib(0), _calcLights(true),
_useRandomObjects(false),
_useRandomVegetation(false)
{}
bool _calcLights;
bool _useRandomObjects;
bool _useRandomVegetation;
+ static std::string defaultOptions;
};
#endif