OpenTTD Source 20261112-master-gbcbec5e63f
SmallMapColourScheme Struct Reference

Colour scheme of the smallmap. More...

Data Fields

std::array< uint32_t, MAX_TILE_HEIGHT+1 > height_colours {}
 Cached colours for each level in a map.
std::span< const uint32_t > height_colours_base
 Base table for determining the colours.
uint32_t default_colour
 Default colour of the land.

Detailed Description

Colour scheme of the smallmap.

Definition at line 262 of file smallmap_gui.cpp.

Field Documentation

◆ default_colour

uint32_t SmallMapColourScheme::default_colour

Default colour of the land.

Definition at line 265 of file smallmap_gui.cpp.

Referenced by GetSmallMapIndustriesPixels(), GetSmallMapOwnerPixels(), GetSmallMapRoutesPixels(), and GetSmallMapVehiclesPixels().

◆ height_colours

std::array<uint32_t, MAX_TILE_HEIGHT + 1> SmallMapColourScheme::height_colours {}

Cached colours for each level in a map.

Definition at line 263 of file smallmap_gui.cpp.

Referenced by GetSmallMapContoursPixels(), GetSmallMapIndustriesPixels(), and GetSmallMapOwnerPixels().

◆ height_colours_base

std::span<const uint32_t> SmallMapColourScheme::height_colours_base

Base table for determining the colours.

Definition at line 264 of file smallmap_gui.cpp.


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