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