|
OpenTTD Source 20260704-master-gbf70c61fb8
|
Implementation of the default backend for SDL2 video driver. More...
#include "../stdafx.h"#include "../openttd.h"#include "../error_func.h"#include "../gfx_func.h"#include "../rev.h"#include "../blitter/factory.hpp"#include "../network/network.h"#include "../thread.h"#include "../progress.h"#include "../core/geometry_func.hpp"#include "../fileio_func.h"#include "../framerate_type.h"#include "../window_func.h"#include "sdl2_default_v.h"#include <SDL.h>#include <mutex>#include <condition_variable>#include "../safeguards.h"Go to the source code of this file.
Variables | |
| static FVideoDriver_SDL_Default | iFVideoDriver_SDL_Default |
| The default, non-GL, SDL video driver. | |
| static SDL_Surface * | _sdl_surface |
| The surface to draw on/to. | |
| static SDL_Surface * | _sdl_rgb_surface |
| Optional surface to use for blitting all changes at once. | |
| static SDL_Surface * | _sdl_real_surface |
| The actual surface of the screen. | |
| static SDL_Palette * | _sdl_palette |
| The palette mapping. | |
Implementation of the default backend for SDL2 video driver.
Definition in file sdl2_default_v.cpp.
|
static |
The palette mapping.
Definition at line 39 of file sdl2_default_v.cpp.
Referenced by VideoDriver_SDL_Default::MakePalette(), and VideoDriver_SDL_Default::UpdatePalette().
|
static |
The actual surface of the screen.
Definition at line 38 of file sdl2_default_v.cpp.
Referenced by VideoDriver_SDL_Default::AllocateBackingStore(), VideoDriver_SDL_Default::MakePalette(), and VideoDriver_SDL_Default::Paint().
|
static |
Optional surface to use for blitting all changes at once.
Definition at line 37 of file sdl2_default_v.cpp.
Referenced by VideoDriver_SDL_Default::AllocateBackingStore().
|
static |
The surface to draw on/to.
Definition at line 36 of file sdl2_default_v.cpp.
Referenced by VideoDriver_SDL_Default::AllocateBackingStore(), VideoDriver_SDL_Default::GetVideoPointer(), VideoDriver_SDL_Default::MakePalette(), VideoDriver_SDL_Default::Paint(), and VideoDriver_SDL_Default::UpdatePalette().
|
static |
The default, non-GL, SDL video driver.
Definition at line 34 of file sdl2_default_v.cpp.