#include "animation.hxx"
#include "particles.hxx"
#include "model.hxx"
+#include "SGText.hxx"
using namespace simgear;
}
osg::ref_ptr<SGReaderWriterXMLOptions> options
- = new SGReaderWriterXMLOptions(*osgDB::Registry::instance()->getOptions());
+ = new SGReaderWriterXMLOptions(*options_);
+ options->setPropRoot(prop_root);
+ options->setLoadPanel(load_panel);
// Assume that textures are in
// the same location as the XML file.
osg::ref_ptr<SGReaderWriterXMLOptions> options;
options = new SGReaderWriterXMLOptions(*options_);
options->setPropRoot(prop_root);
+ options->setLoadPanel(load_panel);
try {
submodel = sgLoad3DModel_internal(submodelpath.str(), options.get(),
sub_props->getNode("overlay"));
options.get()));
}
+ std::vector<SGPropertyNode_ptr> text_nodes;
+ text_nodes = props->getChildren("text");
+ for (unsigned i = 0; i < text_nodes.size(); ++i) {
+ group->addChild(SGText::appendText(text_nodes[i],
+ prop_root,
+ options.get()));
+ }
+
std::vector<SGPropertyNode_ptr> animation_nodes;
animation_nodes = props->getChildren("animation");
for (unsigned i = 0; i < animation_nodes.size(); ++i)