]> git.mxchange.org Git - flightgear.git/blob - src/Model/acmodel.hxx
743f162ea6a87a6f36ae672e60d6066ed21005b7
[flightgear.git] / src / Model / acmodel.hxx
1 // model.hxx - 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 #ifndef __ACMODEL_HXX
7 #define __ACMODEL_HXX 1
8
9 #ifndef __cplusplus
10 # error This library requires C++
11 #endif
12
13 #include <vector>
14
15 SG_USING_STD(string);
16 SG_USING_STD(vector);
17
18 #include <simgear/misc/props.hxx>
19
20 #include <Main/fgfs.hxx>
21
22 #include "model.hxx"
23
24
25 class FGAircraftModel : public FGSubsystem
26 {
27 public:
28
29   FGAircraftModel ();
30   virtual ~FGAircraftModel ();
31
32   virtual void init ();
33   virtual void bind ();
34   virtual void unbind ();
35   virtual void update (int dt);
36   virtual void draw ();
37   virtual FG3DModel * get3DModel() { return _aircraft; }
38
39 private:
40
41   FG3DModel * _aircraft;
42   ssgRoot * _scene;
43   float _nearplane;
44   float _farplane;
45
46 };
47
48 #endif // __ACMODEL_HXX
49
50