null_v.h
00001
00002
00003 #ifndef VIDEO_NULL_H
00004 #define VIDEO_NULL_H
00005
00006 #include "video_driver.hpp"
00007
00008 class VideoDriver_Null: public VideoDriver {
00009 private:
00010 uint ticks;
00011
00012 public:
00013 const char *Start(const char * const *param);
00014
00015 void Stop();
00016
00017 void MakeDirty(int left, int top, int width, int height);
00018
00019 void MainLoop();
00020
00021 bool ChangeResolution(int w, int h);
00022
00023 bool ToggleFullscreen(bool fullscreen);
00024 };
00025
00026 class FVideoDriver_Null: public VideoDriverFactory<FVideoDriver_Null> {
00027 public:
00028 static const int priority = 1;
00029 const char *GetName() { return "null"; }
00030 const char *GetDescription() { return "Null Video Driver"; }
00031 Driver *CreateInstance() { return new VideoDriver_Null(); }
00032 };
00033
00034 #endif