tron@2186: /* $Id$ */ tron@2186: rubidium@9111: /** @file null_v.h Base of the video driver that doesn't blit. */ rubidium@9111: tron@2174: #ifndef VIDEO_NULL_H tron@2174: #define VIDEO_NULL_H tron@2174: peter1138@7170: #include "video_driver.hpp" tron@2174: peter1138@7170: class VideoDriver_Null: public VideoDriver { peter1138@7245: private: peter1138@7245: uint ticks; peter1138@7245: peter1138@7170: public: peter1138@7170: /* virtual */ const char *Start(const char * const *param); peter1138@7170: peter1138@7170: /* virtual */ void Stop(); peter1138@7170: peter1138@7170: /* virtual */ void MakeDirty(int left, int top, int width, int height); peter1138@7170: peter1138@7170: /* virtual */ void MainLoop(); peter1138@7170: peter1138@7170: /* virtual */ bool ChangeResolution(int w, int h); peter1138@7170: belugas@8171: /* virtual */ bool ToggleFullscreen(bool fullscreen); peter1138@7170: }; peter1138@7170: peter1138@7170: class FVideoDriver_Null: public VideoDriverFactory { peter1138@7170: public: peter1138@7193: static const int priority = 1; peter1138@7170: /* virtual */ const char *GetName() { return "null"; } peter1138@7170: /* virtual */ const char *GetDescription() { return "Null Video Driver"; } peter1138@7170: /* virtual */ Driver *CreateInstance() { return new VideoDriver_Null(); } peter1138@7170: }; tron@2174: Darkvater@5988: #endif /* VIDEO_NULL_H */