equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef GFX_H |
3 #ifndef GFX_H |
4 #define GFX_H |
4 #define GFX_H |
5 |
5 |
6 /* !!! Note that the first part of this file if enclosed in extern "C" due to cocoa/obj-C !!! */ |
|
7 |
|
8 #ifdef __cplusplus |
|
9 extern "C" { |
|
10 #endif /* __cplusplus */ |
|
11 |
6 |
12 enum WindowKeyCodes { |
7 enum WindowKeyCodes { |
13 WKC_SHIFT = 0x8000, |
8 WKC_SHIFT = 0x8000, |
14 WKC_CTRL = 0x4000, |
9 WKC_CTRL = 0x4000, |
15 WKC_ALT = 0x2000, |
10 WKC_ALT = 0x2000, |
173 void ScreenSizeChanged(void); |
168 void ScreenSizeChanged(void); |
174 void HandleExitGameRequest(void); |
169 void HandleExitGameRequest(void); |
175 void GameSizeChanged(void); |
170 void GameSizeChanged(void); |
176 void UndrawMouseCursor(void); |
171 void UndrawMouseCursor(void); |
177 |
172 |
178 #ifdef __cplusplus |
|
179 }; //extern "C" |
|
180 /* Following part is only for C++ */ |
|
181 |
|
182 #include "helpers.hpp" |
173 #include "helpers.hpp" |
183 |
174 |
184 typedef enum FontSizes { |
175 typedef enum FontSizes { |
185 FS_NORMAL, |
176 FS_NORMAL, |
186 FS_SMALL, |
177 FS_SMALL, |
243 void DrawMouseCursor(void); |
234 void DrawMouseCursor(void); |
244 void ScreenSizeChanged(void); |
235 void ScreenSizeChanged(void); |
245 void UndrawMouseCursor(void); |
236 void UndrawMouseCursor(void); |
246 bool ChangeResInGame(int w, int h); |
237 bool ChangeResInGame(int w, int h); |
247 void SortResolutions(int count); |
238 void SortResolutions(int count); |
248 extern "C" void ToggleFullScreen(bool fs); |
239 void ToggleFullScreen(bool fs); |
249 |
240 |
250 /* gfx.c */ |
241 /* gfx.c */ |
251 #define ASCII_LETTERSTART 32 |
242 #define ASCII_LETTERSTART 32 |
252 extern FontSize _cur_fontsize; |
243 extern FontSize _cur_fontsize; |
253 |
244 |
299 |
290 |
300 #ifdef _DEBUG |
291 #ifdef _DEBUG |
301 extern bool _dbg_screen_rect; |
292 extern bool _dbg_screen_rect; |
302 #endif |
293 #endif |
303 |
294 |
304 #endif /* __cplusplus */ |
|
305 |
|
306 #endif /* GFX_H */ |
295 #endif /* GFX_H */ |