26 _set_error_mode(_OUT_TO_STDERR);
27 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
28 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
36 _screen.dst_ptr =
nullptr;
40 Debug(misc, 1,
"Forcing blitter 'null'...");
53 for (i = 0; i < this->
ticks; i++) {
static Blitter * SelectBlitter(std::string_view name)
Find the requested blitter and return its class.
Factory the null video driver.
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.
virtual void InputLoop()
Handle input logic, is CTRL pressed, should we fast-forward, etc.
void UpdateAutoResolution()
Apply resolution auto-detection and clamp to sensible defaults.
#define Debug(category, level, format_string,...)
Output a line of debugging information.
int GetDriverParamInt(const StringList &parm, std::string_view name, int def)
Get an integer parameter the list of parameters.
Dimension _cur_resolution
The current resolution.
Factory to 'query' all available blitters.
Functions related to the gfx engine.
void UpdateWindows()
Update the continuously changing contents of the windows, such as the viewports.
static FVideoDriver_Null iFVideoDriver_Null
Factory for the null video driver.
Base of the video driver that doesn't blit.
A number of safeguards to prevent using unsafe methods.
void DoExitSave()
Do a save when exiting the game (_settings_client.gui.autosave_on_exit).
Functions/types related to saving and loading games.
ClientSettings _settings_client
The current settings for this game.
Definition of base types and functions in a cross-platform compatible way.
std::vector< std::string > StringList
Type for a list of strings.
Window functions not directly related to making/drawing windows.