equal
deleted
inserted
replaced
1 #ifndef GRAPHICS_HH |
1 #ifndef GRAPHICS_HH |
2 #define GRAPHICS_HH |
2 #define GRAPHICS_HH |
3 |
3 |
4 #include "GraphicsPointer.hh" |
4 #include "GraphicsPointer.hh" |
|
5 #include "Types.hh" |
|
6 |
|
7 /** |
|
8 * Parameters used by Graphics |
|
9 */ |
|
10 struct GraphicsConfiguration { |
|
11 /** Initial resolution to use */ |
|
12 PixelCoordinate resolution; |
|
13 |
|
14 /* Use fullscreen mode at startup */ |
|
15 bool fullscreen; |
|
16 }; |
5 |
17 |
6 #include "GameState.hh" |
18 #include "GameState.hh" |
7 #include "Input.hh" |
19 #include "Input.hh" |
8 #include "Timer.hh" |
20 #include "Timer.hh" |
9 #include "Engine.hh" |
21 #include "Engine.hh" |
73 |
85 |
74 public: |
86 public: |
75 /** |
87 /** |
76 * |
88 * |
77 */ |
89 */ |
78 Graphics (Engine &engine, GameState &state, PixelCoordinate resolution, bool fullscreen); |
90 Graphics (Engine &engine, GameState &state, const GraphicsConfiguration &config); |
79 |
91 |
80 /** |
92 /** |
81 * Returns a CL_Font that can be used for drawing text |
93 * Returns a CL_Font that can be used for drawing text |
82 */ |
94 */ |
83 CL_Font& getSimpleFont (void) { return simple_font; } |
95 CL_Font& getSimpleFont (void) { return simple_font; } |