OpenTTD Source: DrawTileSpriteSpan Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
DrawTileSpriteSpan Struct Reference

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

`#include <sprite.h>`

Inheritance diagram for DrawTileSpriteSpan:

## Public Member Functions
| DrawTileSpriteSpan (PalSpriteID ground, std::span< const DrawTileSeqStruct > seq)
| DrawTileSpriteSpan (PalSpriteID ground)
std::span< const DrawTileSeqStruct > | GetSequence () const override
Public Member Functions inherited from DrawTileSprites
| DrawTileSprites (PalSpriteID ground)

## Data Fields
std::span< const DrawTileSeqStruct > | seq
| 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:

- src/sprite.h