2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file win32_v.h Base of the Windows video driver. */
|
|
|
|
|
2005-07-23 15:16:57 +00:00
|
|
|
#ifndef VIDEO_WIN32_H
|
|
|
|
#define VIDEO_WIN32_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "video_driver.hpp"
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
class VideoDriver_Win32: public VideoDriver {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *Start(const char * const *param);
|
|
|
|
|
|
|
|
/* virtual */ void Stop();
|
|
|
|
|
|
|
|
/* virtual */ void MakeDirty(int left, int top, int width, int height);
|
|
|
|
|
|
|
|
/* virtual */ void MainLoop();
|
|
|
|
|
|
|
|
/* virtual */ bool ChangeResolution(int w, int h);
|
|
|
|
|
2008-01-01 14:20:48 +00:00
|
|
|
/* virtual */ bool ToggleFullscreen(bool fullscreen);
|
2007-07-05 12:23:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class FVideoDriver_Win32: public VideoDriverFactory<FVideoDriver_Win32> {
|
|
|
|
public:
|
2007-07-07 21:14:36 +00:00
|
|
|
static const int priority = 10;
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ const char *GetName() { return "win32"; }
|
2007-07-06 22:15:00 +00:00
|
|
|
/* virtual */ const char *GetDescription() { return "Win32 GDI Video Driver"; }
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ Driver *CreateInstance() { return new VideoDriver_Win32(); }
|
|
|
|
};
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-02-12 21:55:10 +00:00
|
|
|
#endif /* VIDEO_WIN32_H */
|