OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
21 std::optional<std::string_view>
Start(
const StringList ¶m)
override;
25 void MakeDirty(
int left,
int top,
int width,
int height)
override;
32 std::string_view
GetName()
const override {
return "null"; }
33 bool HasGUI()
const override {
return false; }
The base of all video drivers.
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.
uint ticks
Amount of ticks to run.
std::string_view GetName() const override
Get the name of this driver.
Driver * CreateInstance() const override
Create an instance of this driver-class.
std::optional< std::string_view > Start(const StringList ¶m) override
Start this driver.
std::vector< std::string > StringList
Type for a list of strings.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
@ DT_VIDEO
A video driver.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
Factory the null video driver.
void Stop() override
Stop this driver.
A driver for communicating with the user.
bool HasGUI() const override
Whether the driver has a graphical user interface with the end user.
void MainLoop() override
Perform the actual drawing.
Base for all driver factories.