dedicated_v.h
00001
00002
00003 #ifndef VIDEO_DEDICATED_H
00004 #define VIDEO_DEDICATED_H
00005
00006 #include "video_driver.hpp"
00007
00008 class VideoDriver_Dedicated: public VideoDriver {
00009 public:
00010 const char *Start(const char * const *param);
00011
00012 void Stop();
00013
00014 void MakeDirty(int left, int top, int width, int height);
00015
00016 void MainLoop();
00017
00018 bool ChangeResolution(int w, int h);
00019
00020 bool ToggleFullscreen(bool fullscreen);
00021 };
00022
00023 class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
00024 public:
00025 #ifdef DEDICATED
00026
00027
00028 static const int priority = 10;
00029 #else
00030 static const int priority = 0;
00031 #endif
00032 const char *GetName() { return "dedicated"; }
00033 const char *GetDescription() { return "Dedicated Video Driver"; }
00034 Driver *CreateInstance() { return new VideoDriver_Dedicated(); }
00035 };
00036
00037 #endif