b0f9d24f9d
configure.ac src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx src/AIModel/AIBase.hxx src/AIModel/AICarrier.cxx src/AIModel/AICarrier.hxx src/AIModel/AIManager.cxx src/AIModel/AIManager.hxx src/ATC/AIEntity.cxx src/ATC/AIEntity.hxx src/ATC/AIMgr.cxx src/ATC/AIMgr.hxx src/ATC/ATCdisplay.cxx src/ATC/ATCdisplay.hxx src/Cockpit/cockpit.cxx src/Cockpit/cockpit.hxx src/Cockpit/hud.cxx src/Cockpit/hud.hxx src/Cockpit/hud_rwy.cxx src/Cockpit/panel.cxx src/Cockpit/panel.hxx src/Cockpit/built_in/FGMagRibbon.cxx src/Cockpit/built_in/FGMagRibbon.hxx src/FDM/flight.cxx src/FDM/groundcache.cxx src/FDM/groundcache.hxx src/GUI/gui_funcs.cxx src/Input/input.cxx src/Instrumentation/od_gauge.cxx src/Instrumentation/od_gauge.hxx src/Instrumentation/render_area_2d.cxx src/Instrumentation/render_area_2d.hxx src/Instrumentation/wxradar.cxx src/Instrumentation/wxradar.hxx src/Instrumentation/HUD/HUD.cxx src/Instrumentation/HUD/HUD.hxx src/Instrumentation/HUD/HUD_runway.cxx src/Main/Makefile.am src/Main/main.cxx src/Main/renderer.cxx src/Main/renderer.hxx src/Main/viewmgr.cxx src/Model/acmodel.cxx src/Model/acmodel.hxx src/Model/model_panel.cxx src/Model/model_panel.hxx src/Model/modelmgr.cxx src/Model/modelmgr.hxx src/Model/panelnode.cxx src/Model/panelnode.hxx src/Navaids/awynet.cxx src/Scenery/Makefile.am src/Scenery/hitlist.cxx src/Scenery/hitlist.hxx src/Scenery/newcache.cxx src/Scenery/scenery.cxx src/Scenery/scenery.hxx src/Scenery/tileentry.cxx src/Scenery/tileentry.hxx src/Scenery/tilemgr.cxx src/Scripting/NasalSys.cxx src/Scripting/NasalSys.hxx src/Time/light.cxx Big BLOB on the way to OSG.
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// model.cxx - manage a 3D aircraft model.
|
||
// Written by David Megginson, started 2002.
|
||
//
|
||
// This file is in the Public Domain, and comes with no warranty.
|
||
|
||
#ifdef HAVE_CONFIG_H
|
||
# include <config.h>
|
||
#endif
|
||
|
||
#include <simgear/compiler.h>
|
||
|
||
#include <osg/Geode>
|
||
|
||
#include <simgear/props/props.hxx>
|
||
#include <simgear/scene/model/model.hxx>
|
||
#include <simgear/scene/util/SGNodeMasks.hxx>
|
||
|
||
#include "panelnode.hxx"
|
||
|
||
#include "model_panel.hxx"
|
||
|
||
SG_USING_STD(vector);
|
||
|
||
static
|
||
osg::Node* load_panel(SGPropertyNode *n)
|
||
{
|
||
osg::Geode* geode = new osg::Geode;
|
||
geode->addDrawable(new FGPanelNode(n));
|
||
return geode;
|
||
}
|
||
|
||
|
||
////////////////////////////////////////////////////////////////////////
|
||
// Global functions.
|
||
////////////////////////////////////////////////////////////////////////
|
||
|
||
osg::Node *
|
||
fgLoad3DModelPanel( const string &fg_root, const string &path,
|
||
SGPropertyNode *prop_root,
|
||
double sim_time_sec, const SGPath& livery )
|
||
{
|
||
osg::Node* node = sgLoad3DModel( fg_root, path, prop_root, sim_time_sec,
|
||
load_panel, 0, livery );
|
||
node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
|
||
return node;
|
||
}
|
||
|
||
|
||
// end of model_panel.cxx
|