OpenTTD Source 20250220-master-gf89924a727
DrawTileSpriteSpan Struct Reference

Ground palette sprite of a tile, together with its sprite layout. More...

#include <sprite.h>

Inheritance diagram for DrawTileSpriteSpan:
DrawTileSprites

Public Member Functions

template<size_t N>
 DrawTileSpriteSpan (PalSpriteID ground, const DrawTileSeqStruct(&seq)[N])
 
 DrawTileSpriteSpan (PalSpriteID ground)
 
std::span< const DrawTileSeqStructGetSequence () const override
 
- Public Member Functions inherited from DrawTileSprites
 DrawTileSprites (PalSpriteID ground)
 

Data Fields

std::span< const DrawTileSeqStructseq
 Child sprites,.
 
- Data Fields inherited from DrawTileSprites
PalSpriteID ground {}
 Palette and sprite for the ground.
 

Detailed Description

Ground palette sprite of a tile, together with its sprite layout.

This struct is used for static sprite layouts in the code. For allocated ones from NewGRF see NewGRFSpriteLayout.

Definition at line 61 of file sprite.h.

Constructor & Destructor Documentation

◆ DrawTileSpriteSpan() [1/2]

template<size_t N>
DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID  ground,
const DrawTileSeqStruct(&)  seq[N] 
)
inline

Definition at line 65 of file sprite.h.

◆ DrawTileSpriteSpan() [2/2]

DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID  ground)
inline

Definition at line 66 of file sprite.h.

Member Function Documentation

◆ GetSequence()

std::span< const DrawTileSeqStruct > DrawTileSpriteSpan::GetSequence ( ) const
inlineoverridevirtual

Implements DrawTileSprites.

Definition at line 69 of file sprite.h.

Field Documentation

◆ seq

std::span<const DrawTileSeqStruct> DrawTileSpriteSpan::seq

Child sprites,.

Definition at line 62 of file sprite.h.

Referenced by DrawStationTile(), and TileLayoutSpriteGroup::ProcessRegisters().


The documentation for this struct was generated from the following file: