OpenTTD Source 20261112-master-gbcbec5e63f
sdl3_default_v.cpp File Reference

Implementation of the default backend for SDL3 video driver. More...

#include "../stdafx.h"
#include "../error_func.h"
#include "../gfx_func.h"
#include "../blitter/factory.hpp"
#include "../core/geometry_func.hpp"
#include "../framerate_type.h"
#include "sdl3_default_v.h"
#include <SDL3/SDL_video.h>
#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.

Detailed Description

Implementation of the default backend for SDL3 video driver.

Definition in file sdl3_default_v.cpp.

Variable Documentation

◆ _sdl_palette

SDL_Palette* _sdl_palette
static

The palette mapping.

Definition at line 30 of file sdl3_default_v.cpp.

Referenced by VideoDriver_SDL_Default::MakePalette(), and VideoDriver_SDL_Default::UpdatePalette().

◆ _sdl_real_surface

SDL_Surface* _sdl_real_surface
static

◆ _sdl_rgb_surface

SDL_Surface* _sdl_rgb_surface
static

Optional surface to use for blitting all changes at once.

Definition at line 28 of file sdl3_default_v.cpp.

Referenced by VideoDriver_SDL_Default::AllocateBackingStore().

◆ _sdl_surface

◆ iFVideoDriver_SDL_Default

FVideoDriver_SDL_Default iFVideoDriver_SDL_Default
static

The default, non-GL, SDL video driver.

Definition at line 25 of file sdl3_default_v.cpp.