OpenTTD Source 20250312-master-gcdcc6b491d
DrawTileSeqStruct Struct Reference

A tile child sprite and palette to draw for stations etc, with 3D bounding box. More...

#include <sprite.h>

Public Member Functions

bool IsParentSprite () const
 Check whether this is a parent sprite with a boundingbox.
 

Data Fields

int8_t delta_x = 0
 
int8_t delta_y = 0
 
int8_t delta_z = 0
 0x80 identifies child sprites
 
uint8_t size_x = 0
 
uint8_t size_y = 0
 
uint8_t size_z = 0
 
PalSpriteID image {}
 

Detailed Description

A tile child sprite and palette to draw for stations etc, with 3D bounding box.

Definition at line 25 of file sprite.h.

Member Function Documentation

◆ IsParentSprite()

bool DrawTileSeqStruct::IsParentSprite ( ) const
inline

Check whether this is a parent sprite with a boundingbox.

Definition at line 35 of file sprite.h.

Referenced by ReadSpriteLayout().

Field Documentation

◆ delta_x

int8_t DrawTileSeqStruct::delta_x = 0

Definition at line 26 of file sprite.h.

◆ delta_y

int8_t DrawTileSeqStruct::delta_y = 0

Definition at line 27 of file sprite.h.

◆ delta_z

int8_t DrawTileSeqStruct::delta_z = 0

0x80 identifies child sprites

Definition at line 28 of file sprite.h.

Referenced by NewGRFSpriteLayout::PrepareLayout(), ReadSpriteLayout(), and StationChangeInfo().

◆ image

PalSpriteID DrawTileSeqStruct::image {}

Definition at line 32 of file sprite.h.

◆ size_x

uint8_t DrawTileSeqStruct::size_x = 0

Definition at line 29 of file sprite.h.

◆ size_y

uint8_t DrawTileSeqStruct::size_y = 0

Definition at line 30 of file sprite.h.

◆ size_z

uint8_t DrawTileSeqStruct::size_z = 0

Definition at line 31 of file sprite.h.


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