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