10#ifndef VIDEO_SDL2_DEFAULT_H
11#define VIDEO_SDL2_DEFAULT_H
18 std::string_view
GetName()
const override {
return "sdl"; }
23 void Paint()
override;
Base for all driver factories.
A driver for communicating with the user.
@ DT_VIDEO
A video driver.
Factory for the SDL video driver.
Driver * CreateInstance() const override
Create an instance of this driver-class.
The SDL video driver using default SDL backend.
bool AllocateBackingStore(int w, int h, bool force=false) override
(Re-)create the backing store.
void ReleaseVideoPointer() override
Hand video buffer back to the painting backend.
void * GetVideoPointer() override
Get a pointer to the video buffer.
void Paint() override
Paint the window.
std::string_view GetName() const override
Get the name of this driver.
Base of the SDL2 video driver.