OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef VIDEO_ALLEGRO_H
11 #define VIDEO_ALLEGRO_H
18 std::optional<std::string_view>
Start(
const StringList ¶m)
override;
22 void MakeDirty(
int left,
int top,
int width,
int height)
override;
32 bool ClaimMousePointer()
override;
36 std::string_view
GetName()
const override {
return "allegro"; }
40 void Paint()
override;
The base of all video drivers.
Factory for the allegro video driver.
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
bool AfterBlitterChange() override
Callback invoked after the blitter was changed.
std::optional< std::string_view > Start(const StringList ¶m) override
Start this driver.
void Paint() override
Paint the window.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
void InputLoop() override
Handle input logic, is CTRL pressed, should we fast-forward, etc.
std::vector< int > GetListOfMonitorRefreshRates() override
Get a list of refresh rates of each available monitor.
void CheckPaletteAnim() override
Process any pending palette animation.
std::vector< std::string > StringList
Type for a list of strings.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
@ DT_VIDEO
A video driver.
void MainLoop() override
Perform the actual drawing.
std::string_view GetName() const override
Get the name of this driver.
The allegro video driver.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
void Stop() override
Stop this driver.
A driver for communicating with the user.
bool PollEvent() override
Process a single system event.
Base for all driver factories.
Driver * CreateInstance() const override
Create an instance of this driver-class.