1 // model.cxx - manage a 3D aircraft model.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain, and comes with no warranty.
10 #include <simgear/compiler.h>
14 #include <simgear/props/props.hxx>
15 #include <simgear/scene/model/modellib.hxx>
16 #include <simgear/scene/util/SGNodeMasks.hxx>
17 #include <simgear/math/SGMath.hxx>
19 #include "panelnode.hxx"
20 #include "model_panel.hxx"
24 using namespace simgear;
26 ////////////////////////////////////////////////////////////////////////
28 ////////////////////////////////////////////////////////////////////////
31 fgLoad3DModelPanel(const std::string &path, SGPropertyNode *prop_root)
33 bool loadPanels = true;
34 osg::Node* node = SGModelLib::loadModel(path, prop_root, NULL, loadPanels);
36 node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
41 // end of model_panel.cxx