OpenTTD Source: PalSpriteID Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
PalSpriteID Struct Reference

Combination of a palette sprite and a 'real' sprite. More...

`#include <gfx_type.h>`

Inheritance diagram for PalSpriteID:

## Public Member Functions
auto | operator<=> (const PalSpriteID &) const =default

## Data Fields
SpriteID | sprite {}
| The 'real' sprite.
PaletteID | pal {}
| The palette (use `PAL_NONE`) if not needed)

## Detailed Description

Combination of a palette sprite and a 'real' sprite.

Definition at line 22 of file gfx_type.h.

## Field Documentation

## ◆ pal

PaletteID PalSpriteID::pal {}

The palette (use `PAL_NONE`) if not needed)

Definition at line 24 of file gfx_type.h.

Referenced by DrawBadgeColumn(), DrawHouseInGUI(), DrawNewHouseTileInGUI(), DrawPillar(), DrawStationTile(), DrawTile_Town(), DrawTileLayout(), DrawTrackFence(), NWidgetBadgeFilter::GetDropDownList(), MapSpriteMappingRecolour(), and ReadSpriteLayoutSprite().

## ◆ sprite

SpriteID PalSpriteID::sprite {}

The 'real' sprite.

Definition at line 23 of file gfx_type.h.

Referenced by DrawBadgeColumn(), DrawBridgePillars(), DrawHouseInGUI(), DrawNewHouseTileInGUI(), DrawPillar(), DrawRoadDepotSprite(), DrawStationTile(), DrawTile_Road(), DrawTile_Town(), DrawTileLayout(), DrawTrackDetails(), DrawTrackFence(), DrawWaterLock(), NWidgetBadgeFilter::GetDropDownList(), MapSpriteMappingRecolour(), and ReadSpriteLayoutSprite().

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

- src/gfx_type.h