OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef VIDEO_DEDICATED_H
11 #define VIDEO_DEDICATED_H
22 void MakeDirty(
int left,
int top,
int width,
int height)
override;
29 const char *
GetName()
const override {
return "dedicated"; }
30 bool HasGUI()
const override {
return false; }
39 static const int PRIORITY = 10;
41 static const int PRIORITY = 0;
Driver * CreateInstance() const override
Create an instance of this driver-class.
The base of all video drivers.
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
The dedicated server video driver.
const char * GetName() const override
Get the name of this driver.
Factory for the dedicated server video driver.
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.
const char * Start(const StringList ¶m) override
Start this driver.
bool HasGUI() const override
Whether the driver has a graphical user interface with the end user.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
@ DT_VIDEO
A video driver.
void MainLoop() override
Perform the actual drawing.
void Stop() override
Stop this driver.
A driver for communicating with the user.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
Base for all driver factories.