]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.hxx
Tweaks for Mips Irix compilers.
[flightgear.git] / src / Cockpit / panel.hxx
index 38a7725eeda67c7e21555ecd569e05da25de4e6e..1adc9e811569859c14e7cdf5e909cea6bfed5f24 100644 (file)
@@ -46,6 +46,8 @@
 #include <map>
 #include <plib/fnt.h>
 
+#include <Main/fgfs.hxx>
+
 
 FG_USING_STD(vector);
 FG_USING_STD(map);
@@ -119,19 +121,22 @@ private:
 // 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);