tron@2186: /* $Id$ */ tron@2186: rubidium@9111: /** @file sdl_v.h Base of the SDL video driver. */ rubidium@9111: tron@2174: #ifndef VIDEO_SDL_H tron@2174: #define VIDEO_SDL_H tron@2174: peter1138@7170: #include "video_driver.hpp" tron@2174: peter1138@7170: class VideoDriver_SDL: public VideoDriver { peter1138@7170: public: peter1138@7170: /* virtual */ const char *Start(const char * const *param); peter1138@7170: peter1138@7170: /* virtual */ void Stop(); peter1138@7170: peter1138@7170: /* virtual */ void MakeDirty(int left, int top, int width, int height); peter1138@7170: peter1138@7170: /* virtual */ void MainLoop(); peter1138@7170: peter1138@7170: /* virtual */ bool ChangeResolution(int w, int h); peter1138@7170: belugas@8171: /* virtual */ bool ToggleFullscreen(bool fullscreen); peter1138@7170: }; peter1138@7170: peter1138@7170: class FVideoDriver_SDL: public VideoDriverFactory { peter1138@7170: public: peter1138@7193: static const int priority = 5; peter1138@7170: /* virtual */ const char *GetName() { return "sdl"; } peter1138@7170: /* virtual */ const char *GetDescription() { return "SDL Video Driver"; } peter1138@7170: /* virtual */ Driver *CreateInstance() { return new VideoDriver_SDL(); } peter1138@7170: }; tron@2174: Darkvater@5988: #endif /* VIDEO_SDL_H */