# null_v.h

Go to the documentation of this file.

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