win32_v.h
00001
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 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_Win32: public VideoDriverFactory<FVideoDriver_Win32> {
00024 public:
00025 static const int priority = 10;
00026 const char *GetName() { return "win32"; }
00027 const char *GetDescription() { return "Win32 GDI Video Driver"; }
00028 Driver *CreateInstance() { return new VideoDriver_Win32(); }
00029 };
00030
00031 #endif