| 1 | // SPDX-FileCopyrightText: 2011 Torsten Dreyer |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #ifndef __FGPANELAPPLICATION_HXX |
| 5 | #define __FGPANELAPPLICATION_HXX |
| 6 | |
| 7 | #include <simgear/structure/subsystem_mgr.hxx> |
| 8 | |
| 9 | #include "FGGLApplication.hxx" |
| 10 | #include "FGPanel.hxx" |
| 11 | #include "FGPanelProtocol.hxx" |
| 12 | |
| 13 | class FGPanelApplication : public FGGLApplication { |
| 14 | public: |
| 15 | FGPanelApplication (int argc, char **argv); |
| 16 | ~FGPanelApplication (); |
| 17 | |
| 18 | void Run (); |
| 19 | |
| 20 | protected: |
| 21 | virtual void Key (const unsigned char key, const int x, const int y); |
| 22 | virtual void Idle (); |
| 23 | // !!! virtual void Display (); |
| 24 | virtual void Reshape (const int width, const int height); |
| 25 | |
| 26 | virtual void Init (); |
| 27 | |
| 28 | double Sleep (); |
| 29 | |
| 30 | SGSharedPtr<FGPanel> panel; |
| 31 | SGSharedPtr<FGPanelProtocol> protocol; |
| 32 | |
| 33 | int width; |
| 34 | int height; |
| 35 | }; |
| 36 | |
| 37 | #endif |