OpenTTD Source 20261123-master-g1c55c72fd0
40bpp_anim.cpp File Reference

Implementation of the animated 40 bpp blitter. More...

#include "../stdafx.h"
#include "../spritecache.h"
#include "../video/video_driver.hpp"
#include "../palette_func.h"
#include "32bpp_anim.hpp"
#include "40bpp_anim.hpp"
#include "common.hpp"
#include "../table/sprites.h"
#include "../safeguards.h"

Go to the source code of this file.

Functions

static uint8_t * ScreenToAnimationBuffer (const void *video)
 Converts video buffer pointer into the animation buffer pointer.

Variables

static FBlitter_40bppAnim iFBlitter_40bppAnim
 Instantiation of the 40bpp with animation blitter factory.
static const Colour _black_colour {0, 0, 0}
 Cached black value.

Detailed Description

Implementation of the animated 40 bpp blitter.

Definition in file 40bpp_anim.cpp.

Function Documentation

◆ ScreenToAnimationBuffer()

uint8_t * ScreenToAnimationBuffer ( const void * video)
inlinestatic

Converts video buffer pointer into the animation buffer pointer.

Parameters
videoThe video buffer's pointer.
Returns
The animation buffer pointer.

Definition at line 34 of file 40bpp_anim.cpp.

References VideoDriver::GetInstance().

Variable Documentation

◆ _black_colour

const Colour _black_colour {0, 0, 0}
static

◆ iFBlitter_40bppAnim

FBlitter_40bppAnim iFBlitter_40bppAnim
static

Instantiation of the 40bpp with animation blitter factory.

Definition at line 24 of file 40bpp_anim.cpp.