equal
deleted
inserted
replaced
5 |
5 |
6 #include "video_driver.hpp" |
6 #include "video_driver.hpp" |
7 |
7 |
8 class VideoDriver_Cocoa: public VideoDriver { |
8 class VideoDriver_Cocoa: public VideoDriver { |
9 public: |
9 public: |
10 /* virtual */ bool CanProbe() { return true; } |
|
11 |
|
12 /* virtual */ const char *Start(const char * const *param); |
10 /* virtual */ const char *Start(const char * const *param); |
13 |
11 |
14 /* virtual */ void Stop(); |
12 /* virtual */ void Stop(); |
15 |
13 |
16 /* virtual */ void MakeDirty(int left, int top, int width, int height); |
14 /* virtual */ void MakeDirty(int left, int top, int width, int height); |
22 /* virtual */ void ToggleFullscreen(bool fullscreen); |
20 /* virtual */ void ToggleFullscreen(bool fullscreen); |
23 }; |
21 }; |
24 |
22 |
25 class FVideoDriver_Cocoa: public VideoDriverFactory<FVideoDriver_Cocoa> { |
23 class FVideoDriver_Cocoa: public VideoDriverFactory<FVideoDriver_Cocoa> { |
26 public: |
24 public: |
|
25 static const int priority = 10; |
27 /* virtual */ const char *GetName() { return "cocoa"; } |
26 /* virtual */ const char *GetName() { return "cocoa"; } |
28 /* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; } |
27 /* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; } |
29 /* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); } |
28 /* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); } |
30 }; |
29 }; |
31 |
30 |