Add: INR currency (#8136)
[openttd-github.git] / src / video / allegro_v.h
blobfb7b84ee2c0b17d374df5497f38e554faf0f4ef6
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file allegro_v.h Base of the Allegro video driver. */
10 #ifndef VIDEO_ALLEGRO_H
11 #define VIDEO_ALLEGRO_H
13 #include "video_driver.hpp"
15 /** The allegro video driver. */
16 class VideoDriver_Allegro : public VideoDriver {
17 public:
18 const char *Start(const char * const *param) override;
20 void Stop() override;
22 void MakeDirty(int left, int top, int width, int height) override;
24 void MainLoop() override;
26 bool ChangeResolution(int w, int h) override;
28 bool ToggleFullscreen(bool fullscreen) override;
30 bool AfterBlitterChange() override;
32 bool ClaimMousePointer() override;
34 const char *GetName() const override { return "allegro"; }
37 /** Factory for the allegro video driver. */
38 class FVideoDriver_Allegro : public DriverFactoryBase {
39 public:
40 FVideoDriver_Allegro() : DriverFactoryBase(Driver::DT_VIDEO, 4, "allegro", "Allegro Video Driver") {}
41 Driver *CreateInstance() const override { return new VideoDriver_Allegro(); }
44 #endif /* VIDEO_ALLEGRO_H */