|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Implementation of the SDL2 video driver. More...
#include "../stdafx.h"#include "../openttd.h"#include "../gfx_func.h"#include "../blitter/factory.hpp"#include "../thread.h"#include "../progress.h"#include "../core/math_func.hpp"#include "../core/geometry_func.hpp"#include "../core/utf8.hpp"#include "../fileio_func.h"#include "../framerate_type.h"#include "../window_func.h"#include "sdl2_v.h"#include <SDL.h>#include "../safeguards.h"Go to the source code of this file.
Data Structures | |
| struct | SDLVkMapping |
Macros | |
| #define | AS(x, z) |
| #define | AM(x, y, z, w) |
| #define | AS_UP(x, z) |
| #define | AM_UP(x, y, z, w) |
Functions | |
| static void | FindResolutions () |
| static void | GetAvailableVideoMode (uint *w, uint *h) |
| static uint | FindStartupDisplay (uint startup_display) |
| static uint | ConvertSdlKeyIntoMy (SDL_Keysym *sym, char32_t *character) |
| static uint | ConvertSdlKeycodeIntoMy (SDL_Keycode kc) |
| Like ConvertSdlKeyIntoMy(), but takes an SDL_Keycode as input instead of an SDL_Keysym. | |
| static std::optional< std::string_view > | InitializeSDL () |
Variables | |
| static const Dimension | default_resolutions [] |
| static constexpr SDLVkMapping | _vk_mapping [] |
Implementation of the SDL2 video driver.
Definition in file sdl2_v.cpp.
| #define AM | ( | x, | |
| y, | |||
| z, | |||
| w ) |
Definition at line 254 of file sdl2_v.cpp.
| #define AM_UP | ( | x, | |
| y, | |||
| z, | |||
| w ) |
Definition at line 256 of file sdl2_v.cpp.
| #define AS | ( | x, | |
| z ) |
Definition at line 253 of file sdl2_v.cpp.
| #define AS_UP | ( | x, | |
| z ) |
Definition at line 255 of file sdl2_v.cpp.
|
static |
Like ConvertSdlKeyIntoMy(), but takes an SDL_Keycode as input instead of an SDL_Keysym.
Definition at line 359 of file sdl2_v.cpp.
References IsInsideBS().
Referenced by VideoDriver_SDL_Base::PollEvent().
|
static |
Definition at line 320 of file sdl2_v.cpp.
|
static |
Definition at line 57 of file sdl2_v.cpp.
|
static |
Definition at line 102 of file sdl2_v.cpp.
|
static |
Definition at line 80 of file sdl2_v.cpp.
|
static |
Definition at line 530 of file sdl2_v.cpp.
|
staticconstexpr |
Definition at line 258 of file sdl2_v.cpp.
|
static |
Definition at line 43 of file sdl2_v.cpp.