OpenTTD Source 20250728-master-g7c8759552a
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 67 of file sprite.h.

Constructor & Destructor Documentation

◆ DrawTileSpriteSpan() [1/2]

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

Definition at line 70 of file sprite.h.

◆ DrawTileSpriteSpan() [2/2]

DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID  ground)
inline

Definition at line 71 of file sprite.h.

Member Function Documentation

◆ GetSequence()

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

Implements DrawTileSprites.

Definition at line 74 of file sprite.h.

Field Documentation

◆ seq

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

Child sprites,.

Definition at line 68 of file sprite.h.


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