equal
deleted
inserted
replaced
5 |
5 |
6 #include "GameState.hh" |
6 #include "GameState.hh" |
7 #include "Input.hh" |
7 #include "Input.hh" |
8 #include "Timer.hh" |
8 #include "Timer.hh" |
9 #include "Engine.hh" |
9 #include "Engine.hh" |
|
10 #include "Config.hh" |
10 |
11 |
11 #include <ClanLib/core.h> |
12 #include <ClanLib/core.h> |
12 #include <ClanLib/gl.h> |
13 #include <ClanLib/gl.h> |
13 #include <ClanLib/display.h> |
14 #include <ClanLib/display.h> |
14 |
15 |
15 const std::string GRAPHICS_WINDOW_TITLE = "Kisna Glista"; |
|
16 const uint32_t GRAPHICS_RESOLUTION_WIDTH = 800; |
|
17 const uint32_t GRAPHICS_RESOLUTION_HEIGHT = 600; |
|
18 const uint16_t GRAPHICS_UPDATE_INTERVAL_MS = 20; |
|
19 |
|
20 class Graphics : public CL_DisplayWindow { |
16 class Graphics : public CL_DisplayWindow { |
21 private: |
17 private: |
22 Engine &engine; |
18 Engine &engine; |
23 GameState &state; |
19 GameState &state; |
|
20 |
|
21 PixelCoordinate resolution; |
24 |
22 |
25 CL_SlotContainer slots; |
23 CL_SlotContainer slots; |
26 |
24 |
27 Timer update_timer; |
25 Timer update_timer; |
28 |
26 |