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; }
40 std::unique_ptr<Driver>
CreateInstance()
const override {
return std::make_unique<VideoDriver_Null>(); }
DriverFactoryBase(Driver::Type type, int priority, std::string_view name, std::string_view description)
Construct a new DriverFactory.
@ DT_VIDEO
A video driver.
std::unique_ptr< Driver > CreateInstance() const override
Create an instance of this driver-class.
bool HasGUI() const override
Whether the driver has a graphical user interface with the end user.
uint ticks
Amount of ticks to run.
void Stop() override
Stop this driver.
void MainLoop() override
Perform the actual drawing.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
std::optional< std::string_view > Start(const StringList ¶m) override
Start this driver.
std::string_view GetName() const override
Get the name of this driver.
std::vector< std::string > StringList
Type for a list of strings.
Base of all video drivers.