null_v.h

00001 /* $Id: null_v.h 11734 2008-01-01 14:20:48Z belugas $ */
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   /* virtual */ const char *Start(const char * const *param);
00014 
00015   /* virtual */ void Stop();
00016 
00017   /* virtual */ void MakeDirty(int left, int top, int width, int height);
00018 
00019   /* virtual */ void MainLoop();
00020 
00021   /* virtual */ bool ChangeResolution(int w, int h);
00022 
00023   /* virtual */ bool ToggleFullscreen(bool fullscreen);
00024 };
00025 
00026 class FVideoDriver_Null: public VideoDriverFactory<FVideoDriver_Null> {
00027 public:
00028   static const int priority = 1;
00029   /* virtual */ const char *GetName() { return "null"; }
00030   /* virtual */ const char *GetDescription() { return "Null Video Driver"; }
00031   /* virtual */ Driver *CreateInstance() { return new VideoDriver_Null(); }
00032 };
00033 
00034 #endif /* VIDEO_NULL_H */

Generated on Mon Sep 22 20:34:20 2008 for openttd by  doxygen 1.5.6