OpenTTD Source 20241224-master-gee860a5c8e
palettes.h File Reference

The colour translation of the GRF palettes. More...

Go to the source code of this file.

Data Structures

struct  ExtraPaletteValues
 Description of tables for the palette animation. More...
 

Macros

#define M(r, g, b)   Colour(r, g, b)
 

Variables

static const Palette _palette
 Colour palette (DOS)
 
static const uint EPV_CYCLES_DARK_WATER = 5
 Description of the length of the palette cycle animations.
 
static const uint EPV_CYCLES_LIGHTHOUSE = 4
 length of the lighthouse/stadium animation
 
static const uint EPV_CYCLES_OIL_REFINERY = 7
 length of the oil refinery's fire animation
 
static const uint EPV_CYCLES_FIZZY_DRINK = 5
 length of the fizzy drinks animation
 
static const uint EPV_CYCLES_GLITTER_WATER = 15
 length of the glittery water animation
 
static const ExtraPaletteValues _extra_palette_values
 Actual palette animation tables.
 

Detailed Description

The colour translation of the GRF palettes.

Definition in file palettes.h.

Macro Definition Documentation

◆ M

#define M (   r,
  g,
 
)    Colour(r, g, b)

Definition at line 12 of file palettes.h.

Variable Documentation

◆ _extra_palette_values

const ExtraPaletteValues _extra_palette_values
static

Actual palette animation tables.

Definition at line 115 of file palettes.h.

◆ _palette

const Palette _palette
static

Colour palette (DOS)

Definition at line 15 of file palettes.h.

Referenced by FindNearestColourIndex().

◆ EPV_CYCLES_DARK_WATER

const uint EPV_CYCLES_DARK_WATER = 5
static

Description of the length of the palette cycle animations.

length of the dark blue water animation

Definition at line 97 of file palettes.h.

◆ EPV_CYCLES_FIZZY_DRINK

const uint EPV_CYCLES_FIZZY_DRINK = 5
static

length of the fizzy drinks animation

Definition at line 100 of file palettes.h.

◆ EPV_CYCLES_GLITTER_WATER

const uint EPV_CYCLES_GLITTER_WATER = 15
static

length of the glittery water animation

Definition at line 101 of file palettes.h.

◆ EPV_CYCLES_LIGHTHOUSE

const uint EPV_CYCLES_LIGHTHOUSE = 4
static

length of the lighthouse/stadium animation

Definition at line 98 of file palettes.h.

◆ EPV_CYCLES_OIL_REFINERY

const uint EPV_CYCLES_OIL_REFINERY = 7
static

length of the oil refinery's fire animation

Definition at line 99 of file palettes.h.