OpenTTD Source 20260218-master-g2123fca5ea
DrawTileSprites Struct Referenceabstract

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

#include <sprite.h>

Inheritance diagram for DrawTileSprites:
DrawTileSpriteSpan NewGRFSpriteLayout

Public Member Functions

 DrawTileSprites (PalSpriteID ground)
virtual std::span< const DrawTileSeqStructGetSequence () const =0
 The child sprites to draw.

Data Fields

PalSpriteID ground {}
 Palette and sprite for the ground.

Detailed Description

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

For static sprite layouts see DrawTileSpriteSpan. For allocated ones from NewGRF see NewGRFSpriteLayout.

Definition at line 52 of file sprite.h.

Constructor & Destructor Documentation

◆ DrawTileSprites()

DrawTileSprites::DrawTileSprites ( PalSpriteID ground)
inline

Definition at line 55 of file sprite.h.

Member Function Documentation

◆ GetSequence()

virtual std::span< const DrawTileSeqStruct > DrawTileSprites::GetSequence ( ) const
pure virtual

The child sprites to draw.

Returns
The span of child sprites.

Implemented in DrawTileSpriteSpan, and NewGRFSpriteLayout.

Referenced by DrawCommonTileSeq(), DrawCommonTileSeqInGUI(), and DrawWaterLock().

Field Documentation

◆ ground


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