OpenTTD Source 20250730-master-gfe95782047
|
A tile child sprite and palette to draw for stations etc, with 3D bounding box. More...
#include <sprite.h>
Public Member Functions | |
constexpr | DrawTileSeqStruct (int8_t origin_x, int8_t origin_y, int8_t origin_z, uint8_t extent_x, uint8_t extent_y, uint8_t extent_z, PalSpriteID image) |
bool | IsParentSprite () const |
Check whether this is a parent sprite with a boundingbox. | |
![]() | |
constexpr | SpriteBounds (const Coord3D< int8_t > &origin, const Coord3D< uint8_t > &extent, const Coord3D< int8_t > &offset) |
Data Fields | |
PalSpriteID | image |
![]() | |
Coord3D< int8_t > | origin |
Position of northern corner within tile. | |
Coord3D< uint8_t > | extent |
Size of bounding box. | |
Coord3D< int8_t > | offset |
Relative position of sprite from bounding box. | |
A tile child sprite and palette to draw for stations etc, with 3D bounding box.
|
inlineconstexpr |
|
inline |
Check whether this is a parent sprite with a boundingbox.
Definition at line 41 of file sprite.h.
References SpriteBounds::origin, and Coord3D< T >::z.
Referenced by ReadSpriteLayout().
PalSpriteID DrawTileSeqStruct::image |