src/video/dedicated_v.h
branchNewGRF_ports
changeset 6720 35756db7e577
parent 6314 f738bcf05ad6
child 6872 1c4a4a609f85
--- a/src/video/dedicated_v.h	Sat Jun 02 19:59:29 2007 +0000
+++ b/src/video/dedicated_v.h	Sat Jul 14 19:42:58 2007 +0000
@@ -3,8 +3,29 @@
 #ifndef VIDEO_DEDICATED_H
 #define VIDEO_DEDICATED_H
 
-#include "../hal.h"
+#include "video_driver.hpp"
 
-extern const HalVideoDriver _dedicated_video_driver;
+class VideoDriver_Dedicated: public VideoDriver {
+public:
+	/* virtual */ const char *Start(const char * const *param);
+
+	/* 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_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
+public:
+	static const int priority = 0;
+	/* virtual */ const char *GetName() { return "dedicated"; }
+	/* virtual */ const char *GetDescription() { return "Dedicated Video Driver"; }
+	/* virtual */ Driver *CreateInstance() { return new VideoDriver_Dedicated(); }
+};
 
 #endif /* VIDEO_DEDICATED_H */