OpenTTD Source 20250531-master-g621c031307
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

 DrawTileSpriteSpan (PalSpriteID ground, std::span< const DrawTileSeqStruct > seq)
 
 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 58 of file sprite.h.

Constructor & Destructor Documentation

◆ DrawTileSpriteSpan() [1/2]

DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID  ground,
std::span< const DrawTileSeqStruct seq 
)
inline

Definition at line 61 of file sprite.h.

◆ DrawTileSpriteSpan() [2/2]

DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID  ground)
inline

Definition at line 62 of file sprite.h.

Member Function Documentation

◆ GetSequence()

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

Implements DrawTileSprites.

Definition at line 65 of file sprite.h.

Field Documentation

◆ seq

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

Child sprites,.

Definition at line 59 of file sprite.h.


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