OpenTTD Source
20241121-master-g67a0fccfad
|
Implementation of the SDL video driver. More...
#include "../stdafx.h"
#include "../openttd.h"
#include "../error_func.h"
#include "../gfx_func.h"
#include "../blitter/factory.hpp"
#include "../thread.h"
#include "../progress.h"
#include "../core/random_func.hpp"
#include "../core/math_func.hpp"
#include "../fileio_func.h"
#include "../framerate_type.h"
#include "../window_func.h"
#include "sdl_v.h"
#include <SDL.h>
#include "../safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | SDLVkMapping |
Macros | |
#define | MAX_DIRTY_RECTS 100 |
#define | AS(x, z) {x, x, z, z} |
#define | AM(x, y, z, w) {x, y, z, w} |
Variables | |
static FVideoDriver_SDL | iFVideoDriver_SDL |
static SDL_Surface * | _sdl_surface |
static SDL_Surface * | _sdl_realscreen |
static bool | _all_modes |
static Palette | _local_palette |
static SDL_Rect | _dirty_rects [MAX_DIRTY_RECTS] |
static int | _num_dirty_rects |
static int | _use_hwpalette |
static int | _requested_hwpalette |
static const Dimension | _default_resolutions [] |
static constexpr SDLVkMapping | _vk_mapping [] |
Implementation of the SDL video driver.
Definition in file sdl_v.cpp.