2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2005-07-23 15:16:57 +00:00
|
|
|
#ifndef VIDEO_SDL_H
|
|
|
|
#define VIDEO_SDL_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "video_driver.hpp"
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
class VideoDriver_SDL: public VideoDriver {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *Start(const char * const *param);
|
|
|
|
|
|
|
|
/* virtual */ void Stop();
|
|
|
|
|
|
|
|
/* virtual */ void MakeDirty(int left, int top, int width, int height);
|
|
|
|
|
|
|
|
/* virtual */ void MainLoop();
|
|
|
|
|
|
|
|
/* virtual */ bool ChangeResolution(int w, int h);
|
|
|
|
|
|
|
|
/* virtual */ void ToggleFullscreen(bool fullscreen);
|
|
|
|
};
|
|
|
|
|
|
|
|
class FVideoDriver_SDL: public VideoDriverFactory<FVideoDriver_SDL> {
|
|
|
|
public:
|
2007-07-07 20:31:23 +00:00
|
|
|
static const int priority = 5;
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ const char *GetName() { return "sdl"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "SDL Video Driver"; }
|
|
|
|
/* virtual */ Driver *CreateInstance() { return new VideoDriver_SDL(); }
|
|
|
|
};
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-02-12 21:55:10 +00:00
|
|
|
#endif /* VIDEO_SDL_H */
|