|
OpenTTD Source
1.11.0-beta1
|
Go to the documentation of this file.
36 bool ClaimMousePointer()
override;
42 const char *
GetName()
const override {
return "sdl"; }
50 void MainLoopCleanup();
51 bool CreateMainSurface(uint w, uint h,
bool resize);
55 static void EmscriptenLoop(
void *
self) { ((
VideoDriver_SDL *)
self)->LoopOnce(); }
64 uint32 last_cur_ticks;
68 std::thread draw_thread;
69 std::unique_lock<std::recursive_mutex> draw_lock;
bool fullscreen
Whether to use (true) fullscreen mode.
const char * Start(const StringList ¶m) override
Start this driver.
The base of all video drivers.
Dimensions (a width and height) of a rectangle in 2D.
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.
void ReleaseBlitterLock() override
Release any lock(s) required to be held when changing blitters.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
void MainLoop() override
Perform the actual drawing.
int height
Height in pixels of our display surface.
void AcquireBlitterLock() override
Acquire any lock(s) required to be held when changing blitters.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
bool edit_box_focused
This is true to indicate that keyboard input is in text input mode, and SDL_TEXTINPUT events are enab...
void EditBoxGainedFocus() override
An edit box gained the input focus.
std::vector< std::string > StringList
Type for a list of strings.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
Factory for the SDL video driver.
bool AfterBlitterChange() override
Callback invoked after the blitter was changed.
@ DT_VIDEO
A video driver.
int width
Width in pixels of our display surface.
void EditBoxLostFocus() override
An edit box lost the input focus.
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.