2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file sdl_v.h Base of the SDL video driver. */
|
|
|
|
|
2005-07-23 17:16:57 +02:00
|
|
|
#ifndef VIDEO_SDL_H
|
|
|
|
#define VIDEO_SDL_H
|
|
|
|
|
2007-07-05 14:23:54 +02:00
|
|
|
#include "video_driver.hpp"
|
2005-07-23 17:16:57 +02:00
|
|
|
|
2007-07-05 14:23:54 +02: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);
|
|
|
|
|
2008-01-01 15:20:48 +01:00
|
|
|
/* virtual */ bool ToggleFullscreen(bool fullscreen);
|
2007-07-05 14:23:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class FVideoDriver_SDL: public VideoDriverFactory<FVideoDriver_SDL> {
|
|
|
|
public:
|
2007-07-07 22:31:23 +02:00
|
|
|
static const int priority = 5;
|
2007-07-05 14:23:54 +02: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 17:16:57 +02:00
|
|
|
|
2007-02-12 22:55:10 +01:00
|
|
|
#endif /* VIDEO_SDL_H */
|