Files
@ r9051:77c27cf6f760
Branch filter:
Location: cpp/openttd-patchpack/source/src/video/video_driver.hpp - annotation
r9051:77c27cf6f760
916 B
text/x-c++hdr
(svn r12881) -Fix (r12770): the check for missing header files could find more files than needed
r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r8171:ff11fcdf6589 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7193:2cae66b95848 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r8275:5932486ddd21 r8275:5932486ddd21 r8275:5932486ddd21 r8275:5932486ddd21 r7170:38b143754b40 r7170:38b143754b40 | /* $Id$ */
#ifndef VIDEO_VIDEO_DRIVER_HPP
#define VIDEO_VIDEO_DRIVER_HPP
#include "../driver.h"
class VideoDriver: public Driver {
public:
virtual void MakeDirty(int left, int top, int width, int height) = 0;
virtual void MainLoop() = 0;
virtual bool ChangeResolution(int w, int h) = 0;
virtual bool ToggleFullscreen(bool fullscreen) = 0;
};
class VideoDriverFactoryBase: public DriverFactoryBase {
};
template <class T>
class VideoDriverFactory: public VideoDriverFactoryBase {
public:
VideoDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_VIDEO, ((T *)this)->priority); }
/**
* Get the long, human readable, name for the Driver-class.
*/
const char *GetName();
};
extern VideoDriver *_video_driver;
extern char _ini_videodriver[32];
extern int _num_resolutions;
extern uint16 _resolutions[32][2];
extern uint16 _cur_resolution[2];
#endif /* VIDEO_VIDEO_DRIVER_HPP */
|