equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef VIDEO_COCOA_H |
3 #ifndef VIDEO_COCOA_H |
4 #define VIDEO_COCOA_H |
4 #define VIDEO_COCOA_H |
5 |
5 |
6 #include "../hal.h" |
6 #include "video_driver.hpp" |
7 |
7 |
8 #include "../openttd.h" |
8 class VideoDriver_Cocoa: public VideoDriver { |
9 #include "../gfx.h" |
9 public: |
|
10 /* virtual */ const char *Start(const char * const *param); |
10 |
11 |
11 extern const HalVideoDriver _cocoa_video_driver; |
12 /* virtual */ void Stop(); |
|
13 |
|
14 /* virtual */ void MakeDirty(int left, int top, int width, int height); |
|
15 |
|
16 /* virtual */ void MainLoop(); |
|
17 |
|
18 /* virtual */ bool ChangeResolution(int w, int h); |
|
19 |
|
20 /* virtual */ void ToggleFullscreen(bool fullscreen); |
|
21 }; |
|
22 |
|
23 class FVideoDriver_Cocoa: public VideoDriverFactory<FVideoDriver_Cocoa> { |
|
24 public: |
|
25 static const int priority = 10; |
|
26 /* virtual */ const char *GetName() { return "cocoa"; } |
|
27 /* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; } |
|
28 /* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); } |
|
29 }; |
12 |
30 |
13 #endif /* VIDEO_COCOA_H */ |
31 #endif /* VIDEO_COCOA_H */ |