OpenTTD Source: FenceOffset Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
FenceOffset Struct Reference

Offsets for drawing fences. More...

Inheritance diagram for FenceOffset:

## Public Member Functions
constexpr | FenceOffset (Corner height_ref, int8_t origin_x, int8_t origin_y, uint8_t extent_x, uint8_t extent_y)
Public Member Functions inherited from SpriteBounds
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.
Data Fields inherited from SpriteBounds
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

Offsets for drawing fences.

Definition at line 1904 of file rail_cmd.cpp.

## Constructor & Destructor Documentation

## ◆ FenceOffset()

constexpr FenceOffset::FenceOffset | ( | Corner | height_ref,
|  | int8_t | origin_x,
|  | int8_t | origin_y,
|  | uint8_t | extent_x,
|  | uint8_t | extent_y
| ) |  |
| inlineconstexpr

Definition at line 1907 of file rail_cmd.cpp.

## Field Documentation

## ◆ height_ref

Corner FenceOffset::height_ref

Corner to use height offset from.

Definition at line 1905 of file rail_cmd.cpp.

Referenced by DrawTrackFence().

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

- src/rail_cmd.cpp