10 #ifndef VIDEO_ALLEGRO_H
11 #define VIDEO_ALLEGRO_H
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"; }
Base for all driver factories.
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
A driver for communicating with the user.
@ DT_VIDEO
A video driver.
Factory for the allegro video driver.
Driver * CreateInstance() const override
Create an instance of this driver-class.
The allegro video driver.
void MainLoop() override
Perform the actual drawing.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
bool PollEvent() override
Process a single system event.
std::string_view GetName() const override
Get the name of this driver.
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.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
void Paint() override
Paint the window.
void Stop() override
Stop this driver.
void CheckPaletteAnim() override
Process any pending palette animation.
std::vector< int > GetListOfMonitorRefreshRates() override
Get a list of refresh rates of each available monitor.
bool AfterBlitterChange() override
Callback invoked after the blitter was changed.
std::optional< std::string_view > Start(const StringList ¶m) override
Start this driver.
The base of all video drivers.
std::vector< std::string > StringList
Type for a list of strings.
Base of all video drivers.