]> git.mxchange.org Git - flightgear.git/blob - src/Model/model_panel.cxx
I have added Aaron Wilson's virtual 3d runway projection to the HUD.
[flightgear.git] / src / Model / model_panel.cxx
1 // model.cxx - manage a 3D aircraft model.
2 // Written by David Megginson, started 2002.
3 //
4 // This file is in the Public Domain, and comes with no warranty.
5
6 #ifdef HAVE_CONFIG_H
7 #  include <config.h>
8 #endif
9
10 #include <simgear/compiler.h>
11
12 #include <plib/ssg.h>
13
14 #include <simgear/props/props.hxx>
15 #include <simgear/scene/model/model.hxx>
16
17 #include "panelnode.hxx"
18
19 #include "model_panel.hxx"
20
21 SG_USING_STD(vector);
22
23 static
24 ssgEntity *load_panel(SGPropertyNode *n)
25 {
26   return new FGPanelNode(n);
27 }
28 \f
29 ////////////////////////////////////////////////////////////////////////
30 // Global functions.
31 ////////////////////////////////////////////////////////////////////////
32
33 ssgBranch *
34 fgLoad3DModelPanel( const string &fg_root, const string &path,
35                     SGPropertyNode *prop_root,
36                     double sim_time_sec )
37 {
38   return sgLoad3DModel( fg_root, path, prop_root, sim_time_sec, load_panel );
39 }
40
41
42 // end of model_panel.cxx