OpenTTD Source 20261123-master-g1c55c72fd0
32bpp_anim.hpp File Reference

A 32 bpp blitter with animation support. More...

Go to the source code of this file.

Data Structures

class  Blitter_32bppAnim
 The optimised 32 bpp blitter with palette animation. More...
class  FBlitter_32bppAnim
 Factory for the 32bpp blitter with animation. More...

Functions

template<typename T>
static T * ScreenToAnimationBuffer (const void *video, T *animation_buffer, int animation_buffer_pitch)
 Converts video buffer pointer into the animation buffer pointer.

Detailed Description

A 32 bpp blitter with animation support.

Definition in file 32bpp_anim.hpp.

Function Documentation

◆ ScreenToAnimationBuffer()

template<typename T>
T * ScreenToAnimationBuffer ( const void * video,
T * animation_buffer,
int animation_buffer_pitch )
inlinestatic

Converts video buffer pointer into the animation buffer pointer.

Parameters
videoThe video buffer's pointer.
animation_bufferThe animation buffer.
animation_buffer_pitchThe pitch of the animation buffer.
Returns
The animation buffer pointer.

Definition at line 23 of file 32bpp_anim.hpp.

References T.

Referenced by Blitter_40bppAnim::CopyFromBuffer(), Blitter_40bppAnim::CopyImageToBuffer(), Blitter_40bppAnim::CopyToBuffer(), Blitter_40bppAnim::Draw(), Blitter_40bppAnim::DrawColourMappingRect(), Blitter_40bppAnim::DrawLine(), Blitter_40bppAnim::DrawRect(), and Blitter_40bppAnim::SetPixel().