src/video/cocoa_v.h
branchNewGRF_ports
changeset 6720 35756db7e577
parent 6450 1c2016673250
--- a/src/video/cocoa_v.h	Sat Jun 02 19:59:29 2007 +0000
+++ b/src/video/cocoa_v.h	Sat Jul 14 19:42:58 2007 +0000
@@ -3,11 +3,29 @@
 #ifndef VIDEO_COCOA_H
 #define VIDEO_COCOA_H
 
-#include "../hal.h"
+#include "video_driver.hpp"
 
-#include "../openttd.h"
-#include "../gfx.h"
+class VideoDriver_Cocoa: public VideoDriver {
+public:
+	/* virtual */ const char *Start(const char * const *param);
 
-extern const HalVideoDriver _cocoa_video_driver;
+	/* virtual */ void Stop();
+
+	/* virtual */ void MakeDirty(int left, int top, int width, int height);
+
+	/* virtual */ void MainLoop();
+
+	/* virtual */ bool ChangeResolution(int w, int h);
+
+	/* virtual */ void ToggleFullscreen(bool fullscreen);
+};
+
+class FVideoDriver_Cocoa: public VideoDriverFactory<FVideoDriver_Cocoa> {
+public:
+	static const int priority = 10;
+	/* virtual */ const char *GetName() { return "cocoa"; }
+	/* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; }
+	/* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); }
+};
 
 #endif /* VIDEO_COCOA_H */