OpenTTD Source 20250905-master-g122023be8d
SpriteBounds Struct Reference
Inheritance diagram for SpriteBounds:
DrawBuildingsTileStruct DrawTileSeqStruct FenceOffset SortableSpriteStruct

Public Member Functions

constexpr SpriteBounds (const Coord3D< int8_t > &origin, const Coord3D< uint8_t > &extent, const Coord3D< int8_t > &offset)
 

Data Fields

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.
 

Detailed Description

Definition at line 18 of file sprite.h.

Constructor & Destructor Documentation

◆ SpriteBounds()

constexpr SpriteBounds::SpriteBounds ( const Coord3D< int8_t > &  origin,
const Coord3D< uint8_t > &  extent,
const Coord3D< int8_t > &  offset 
)
inlineconstexpr

Definition at line 24 of file sprite.h.

Field Documentation

◆ extent

Coord3D<uint8_t> SpriteBounds::extent

◆ offset

Coord3D<int8_t> SpriteBounds::offset

Relative position of sprite from bounding box.

Definition at line 21 of file sprite.h.

Referenced by AddSortableSpriteToDraw(), RoadVehicle::UpdateDeltaXY(), and Train::UpdateDeltaXY().

◆ origin


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