4741
|
1 #ifndef APP_HPP
|
|
2 #define APP_HPP
|
|
3
|
|
4 #include "Window.hpp"
|
|
5
|
|
6 class App : public Window_Listener
|
|
7 {
|
|
8 public:
|
|
9 App();
|
|
10 virtual ~App();
|
|
11
|
|
12 void Initialize();
|
|
13 void Finalize();
|
|
14
|
|
15 void Run();
|
|
16
|
|
17 virtual void On_Close();
|
|
18 virtual void On_Key_Down(int Key);
|
|
19 virtual void On_Key_Up(int Key);
|
|
20 virtual void On_Char(unsigned int Char);
|
|
21 virtual void On_Resized(unsigned int Width, unsigned int Height);
|
|
22
|
|
23 private:
|
|
24 void Update();
|
|
25 void Draw();
|
|
26
|
|
27 static const int Width = 800;
|
|
28 static const int Height = 600;
|
|
29 static const int Bits_Per_Pixel = 32;
|
|
30 static const bool Fullscreen = false;
|
|
31
|
|
32 Window my_Window;
|
|
33 bool my_Done;
|
|
34 };
|
|
35
|
|
36 #endif
|