tron@2186: /* $Id$ */ tron@2186: tron@2171: #ifndef VIDEO_NULL_H tron@2171: #define VIDEO_NULL_H tron@2171: peter1138@7666: #include "video_driver.hpp" tron@2171: peter1138@7666: class VideoDriver_Null: public VideoDriver { peter1138@7741: private: peter1138@7741: uint ticks; peter1138@7741: peter1138@7666: public: peter1138@7666: /* virtual */ const char *Start(const char * const *param); peter1138@7666: peter1138@7666: /* virtual */ void Stop(); peter1138@7666: peter1138@7666: /* virtual */ void MakeDirty(int left, int top, int width, int height); peter1138@7666: peter1138@7666: /* virtual */ void MainLoop(); peter1138@7666: peter1138@7666: /* virtual */ bool ChangeResolution(int w, int h); peter1138@7666: peter1138@7666: /* virtual */ void ToggleFullscreen(bool fullscreen); peter1138@7666: }; peter1138@7666: peter1138@7666: class FVideoDriver_Null: public VideoDriverFactory { peter1138@7666: public: peter1138@7689: static const int priority = 1; peter1138@7666: /* virtual */ const char *GetName() { return "null"; } peter1138@7666: /* virtual */ const char *GetDescription() { return "Null Video Driver"; } peter1138@7666: /* virtual */ Driver *CreateInstance() { return new VideoDriver_Null(); } peter1138@7666: }; tron@2171: Darkvater@6314: #endif /* VIDEO_NULL_H */