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