#include <plib/ssg.h>
#include <simgear/misc/props.hxx>
+#include <simgear/timing/timestamp.hxx>
#include <vector>
#include <map>
#include <plib/fnt.h>
-#include <Time/timestamp.hxx>
+#include <Main/fgfs.hxx>
+
FG_USING_STD(vector);
FG_USING_STD(map);
// the appropriate instruments for processing.
////////////////////////////////////////////////////////////////////////
-class FGPanel
+class FGPanel : public FGSubsystem
{
public:
FGPanel (int window_x, int window_y, int window_w, int window_h);
virtual ~FGPanel ();
+ // Update the panel (every frame).
+ virtual void init ();
+ virtual void bind ();
+ virtual void unbind ();
+ virtual void update ();
+
// transfer pointer ownership!!!
virtual void addInstrument (FGPanelInstrument * instrument);
- // Update the panel (every frame).
- virtual void update () const;
-
// Background texture.
virtual void setBackground (ssgTexture * texture);
float _pointSize;
mutable string _value;
- mutable FGTimeStamp _then;
- mutable FGTimeStamp _now;
+ mutable SGTimeStamp _then;
+ mutable SGTimeStamp _now;
};
};
+\f
+////////////////////////////////////////////////////////////////////////
+// Functions.
+////////////////////////////////////////////////////////////////////////
+
+bool fgPanelVisible ();
+
+
\f
////////////////////////////////////////////////////////////////////////
// The current panel, if any.