# win32_v.h

    00001 /* $Id: win32_v.h 11734 2008-01-01 14:20:48Z belugas $ */
    00002
    00003 #ifndef VIDEO_WIN32_H
    00004 #define VIDEO_WIN32_H
    00005
    00006 #include "video_driver.hpp"
    00007
    00008 class VideoDriver_Win32: 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_Win32: public VideoDriverFactory<FVideoDriver_Win32> {
    00024 public:
    00025   static const int priority = 10;
    00026   /* virtual */ const char *GetName() { return "win32"; }
    00027   /* virtual */ const char *GetDescription() { return "Win32 GDI Video Driver"; }
    00028   /* virtual */ Driver *CreateInstance() { return new VideoDriver_Win32(); }
    00029 };
    00030
    00031 #endif /* VIDEO_WIN32_H */