allegro_v.h

Go to the documentation of this file.
00001 /* $Id: allegro_v.h 18046 2009-11-11 21:45:50Z rubidium $ */
00002 
00005 #ifndef VIDEO_ALLEGRO_H
00006 #define VIDEO_ALLEGRO_H
00007 
00008 #include "video_driver.hpp"
00009 
00010 class VideoDriver_Allegro: public VideoDriver {
00011 public:
00012   /* virtual */ const char *Start(const char * const *param);
00013 
00014   /* virtual */ void Stop();
00015 
00016   /* virtual */ void MakeDirty(int left, int top, int width, int height);
00017 
00018   /* virtual */ void MainLoop();
00019 
00020   /* virtual */ bool ChangeResolution(int w, int h);
00021 
00022   /* virtual */ bool ToggleFullscreen(bool fullscreen);
00023 };
00024 
00025 class FVideoDriver_Allegro: public VideoDriverFactory<FVideoDriver_Allegro> {
00026 public:
00027   static const int priority = 4;
00028   /* virtual */ const char *GetName() { return "allegro"; }
00029   /* virtual */ const char *GetDescription() { return "Allegro Video Driver"; }
00030   /* virtual */ Driver *CreateInstance() { return new VideoDriver_Allegro(); }
00031 };
00032 
00033 #endif /* VIDEO_ALLEGRO_H */

Generated on Tue Dec 1 00:06:21 2009 for OpenTTD by  doxygen 1.5.6