OpenTTD Source 20260531-master-g0e951f3528
track_land.h File Reference

Sprites to use and how to display them for train depot tiles. More...

Go to the source code of this file.

Macros

#define TILE_SEQ_LINE(img, dx, dy, sx, sy)

Variables

static constexpr DrawTileSeqStruct _depot_gfx_NE []
static constexpr DrawTileSeqStruct _depot_gfx_SE []
static constexpr DrawTileSeqStruct _depot_gfx_SW []
static constexpr DrawTileSeqStruct _depot_gfx_NW []
static const DiagDirectionIndexArray< DrawTileSpriteSpan_depot_gfx_table
 Sprite layout of a depot for each direction.
static const DiagDirectionIndexArray< DrawTileSpriteSpan_depot_invisible_gfx_table
 Sprite layout of an invisible depot with for each direction.

Detailed Description

Sprites to use and how to display them for train depot tiles.

Definition in file track_land.h.

Macro Definition Documentation

◆ TILE_SEQ_LINE

#define TILE_SEQ_LINE ( img,
dx,
dy,
sx,
sy )
Value:
{ dx, dy, 0, sx, sy, 23, {img, PAL_NONE} },

Definition at line 10 of file track_land.h.

Variable Documentation

◆ _depot_gfx_NE

DrawTileSeqStruct _depot_gfx_NE[]
staticconstexpr
Initial value:
= {
}

Definition at line 13 of file track_land.h.

◆ _depot_gfx_NW

DrawTileSeqStruct _depot_gfx_NW[]
staticconstexpr
Initial value:
= {
}

Definition at line 27 of file track_land.h.

◆ _depot_gfx_SE

DrawTileSeqStruct _depot_gfx_SE[]
staticconstexpr
Initial value:
= {
}

Definition at line 17 of file track_land.h.

◆ _depot_gfx_SW

DrawTileSeqStruct _depot_gfx_SW[]
staticconstexpr
Initial value:
= {
}

Definition at line 22 of file track_land.h.

◆ _depot_gfx_table

const DiagDirectionIndexArray<DrawTileSpriteSpan> _depot_gfx_table
static
Initial value:
{{{
{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NE },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NW },
}}}

Sprite layout of a depot for each direction.

Definition at line 32 of file track_land.h.

Referenced by DrawTile_Rail(), and DrawTrainDepotSprite().

◆ _depot_invisible_gfx_table

const DiagDirectionIndexArray<DrawTileSpriteSpan> _depot_invisible_gfx_table
static
Initial value:
{{{
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_NE },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW },
}}}

Sprite layout of an invisible depot with for each direction.

Definition at line 40 of file track_land.h.

Referenced by DrawTile_Rail().