# dedicated_v.h

    00001 /* $Id: dedicated_v.h 11780 2008-01-07 16:41:03Z peter1138 $ */
    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   /* virtual */ const char *Start(const char * const *param);
    00011
    00012   /* virtual */ void Stop();
    00013
    00014   /* virtual */ void MakeDirty(int left, int top, int width, int height);
    00015
    00016   /* virtual */ void MainLoop();
    00017
    00018   /* virtual */ bool ChangeResolution(int w, int h);
    00019
    00020   /* virtual */ bool ToggleFullscreen(bool fullscreen);
    00021 };
    00022
    00023 class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
    00024 public:
    00025 #ifdef DEDICATED
    00026   /* Automatically select this dedicated driver when making a dedicated
    00027    * server build. */
    00028   static const int priority = 10;
    00029 #else
    00030   static const int priority = 0;
    00031 #endif
    00032   /* virtual */ const char *GetName() { return "dedicated"; }
    00033   /* virtual */ const char *GetDescription() { return "Dedicated Video Driver"; }
    00034   /* virtual */ Driver *CreateInstance() { return new VideoDriver_Dedicated(); }
    00035 };
    00036
    00037 #endif /* VIDEO_DEDICATED_H */