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);
|
4744
|
22 virtual void On_Mouse_Button_Down(Mouse_Button Button);
|
4741
|
23
|
|
24 private:
|
|
25 void Update();
|
|
26 void Draw();
|
|
27
|
|
28 static const int Width = 800;
|
|
29 static const int Height = 600;
|
|
30 static const int Bits_Per_Pixel = 32;
|
4744
|
31 static const bool Fullscreen = true;
|
4741
|
32
|
|
33 Window my_Window;
|
|
34 bool my_Done;
|
|
35 };
|
|
36
|
|
37 #endif
|