1
/* $Id: allegro_v.h 14630 2008-11-25 19:32:12Z rubidium $ */
3
/** @file allegro_v.h Base of the Allegro video driver. */
5
#ifndef VIDEO_ALLEGRO_H
6
#define VIDEO_ALLEGRO_H
8
#include "video_driver.hpp"
10
class VideoDriver_Allegro: public VideoDriver {
12
/* virtual */ const char *Start(const char * const *param);
14
/* virtual */ void Stop();
16
/* virtual */ void MakeDirty(int left, int top, int width, int height);
18
/* virtual */ void MainLoop();
20
/* virtual */ bool ChangeResolution(int w, int h);
22
/* virtual */ bool ToggleFullscreen(bool fullscreen);
25
class FVideoDriver_Allegro: public VideoDriverFactory<FVideoDriver_Allegro> {
27
static const int priority = 5;
28
/* virtual */ const char *GetName() { return "allegro"; }
29
/* virtual */ const char *GetDescription() { return "Allegro Video Driver"; }
30
/* virtual */ Driver *CreateInstance() { return new VideoDriver_Allegro(); }
33
#endif /* VIDEO_ALLEGRO_H */