equal
deleted
inserted
replaced
1 /* $Id$ */ |
|
2 |
|
3 #ifndef VIDEO_COCOA_H |
|
4 #define VIDEO_COCOA_H |
|
5 |
|
6 #include "video_driver.hpp" |
|
7 |
|
8 class VideoDriver_Cocoa: public VideoDriver { |
|
9 public: |
|
10 /* virtual */ const char *Start(const char * const *param); |
|
11 |
|
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 }; |
|
30 |
|
31 #endif /* VIDEO_COCOA_H */ |
|