1 // model.hxx - 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 # error This library requires C++
20 #include <simgear/misc/props.hxx>
21 #include <simgear/timing/timestamp.hxx>
23 class FGAircraftModel : public FGSubsystem
28 virtual ~FGAircraftModel ();
32 virtual void unbind ();
33 virtual void update (int dt);
45 ssgTransform * transform;
47 SGPropertyNode * prop;
57 Animation read_animation (const SGPropertyNode * node);
58 void do_animation (Animation &animation, long elapsed_ms);
60 SGPropertyNode * _props;
62 ssgSelector * _selector;
63 ssgTransform * _position;
65 SGTimeStamp _last_timestamp;
66 SGTimeStamp _current_timestamp;
68 vector<Animation> _animations;
72 extern FGAircraftModel current_model;