#define SGREADERWRITEROPTIONS_HXX 1
#include <osgDB/Options>
+#include <osgDB/Registry>
#include <simgear/scene/model/modellib.hxx>
#include <simgear/props/props.hxx>
void setInstantiateEffects(bool instantiateEffects)
{ _instantiateEffects = instantiateEffects; }
+ static SGReaderWriterOptions* copyOrCreate(const osgDB::Options* options)
+ {
+ if (!options)
+ options = osgDB::Registry::instance()->getOptions();
+ if (!options)
+ return new SGReaderWriterOptions;
+ if (!dynamic_cast<const SGReaderWriterOptions*>(options))
+ return new SGReaderWriterOptions(*options);
+ return new SGReaderWriterOptions(*static_cast<const SGReaderWriterOptions*>(options));
+ }
+
protected:
virtual ~SGReaderWriterOptions() {}