OpenTTD Source 20250905-master-g122023be8d
|
Offsets for drawing fences. More...
Public Member Functions | |
constexpr | FenceOffset (Corner height_ref, int8_t origin_x, int8_t origin_y, uint8_t extent_x, uint8_t extent_y) |
![]() | |
constexpr | SpriteBounds (const Coord3D< int8_t > &origin, const Coord3D< uint8_t > &extent, const Coord3D< int8_t > &offset) |
Data Fields | |
Corner | height_ref |
Corner to use height offset from. | |
![]() | |
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. | |
Offsets for drawing fences.
Definition at line 1906 of file rail_cmd.cpp.
|
inlineconstexpr |
Definition at line 1909 of file rail_cmd.cpp.
Corner FenceOffset::height_ref |
Corner to use height offset from.
Definition at line 1907 of file rail_cmd.cpp.
Referenced by DrawTrackFence().