dedicated_v.h

Go to the documentation of this file.
00001 /* $Id: dedicated_v.h 12971 2008-05-06 15:11:33Z rubidium $ */
00002 
00005 #ifndef VIDEO_DEDICATED_H
00006 #define VIDEO_DEDICATED_H
00007 
00008 #include "video_driver.hpp"
00009 
00010 class VideoDriver_Dedicated: public VideoDriver {
00011 public:
00012   /* virtual */ const char *Start(const char * const *param);
00013 
00014   /* virtual */ void Stop();
00015 
00016   /* virtual */ void MakeDirty(int left, int top, int width, int height);
00017 
00018   /* virtual */ void MainLoop();
00019 
00020   /* virtual */ bool ChangeResolution(int w, int h);
00021 
00022   /* virtual */ bool ToggleFullscreen(bool fullscreen);
00023 };
00024 
00025 class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
00026 public:
00027 #ifdef DEDICATED
00028   /* Automatically select this dedicated driver when making a dedicated
00029    * server build. */
00030   static const int priority = 10;
00031 #else
00032   static const int priority = 0;
00033 #endif
00034   /* virtual */ const char *GetName() { return "dedicated"; }
00035   /* virtual */ const char *GetDescription() { return "Dedicated Video Driver"; }
00036   /* virtual */ Driver *CreateInstance() { return new VideoDriver_Dedicated(); }
00037 };
00038 
00039 #endif /* VIDEO_DEDICATED_H */

Generated on Sun Sep 13 08:19:21 2009 for OpenTTD by  doxygen 1.5.6