X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fpanel.hxx;h=1adc9e811569859c14e7cdf5e909cea6bfed5f24;hb=29275ce1ecf9c4ea302aacca8c5ae5d4d3319a17;hp=38a7725eeda67c7e21555ecd569e05da25de4e6e;hpb=57a4c79eb508d7e3fef92103a000af6ca74b03ec;p=flightgear.git diff --git a/src/Cockpit/panel.hxx b/src/Cockpit/panel.hxx index 38a7725ee..1adc9e811 100644 --- a/src/Cockpit/panel.hxx +++ b/src/Cockpit/panel.hxx @@ -46,6 +46,8 @@ #include #include +#include
+ 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);