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);
46 ssgTransform * transform;
48 SGPropertyNode * prop;
61 Animation read_animation (const string &object_name,
62 const SGPropertyNode * node);
63 void do_animation (Animation &animation, long elapsed_ms);
66 ssgSelector * _selector;
67 ssgTransform * _position;
69 SGTimeStamp _last_timestamp;
70 SGTimeStamp _current_timestamp;
72 vector<Animation> _animations;
76 extern FGAircraftModel current_model;