OpenTTD Source 20260208-master-g43af8e94d0
Palette Struct Reference

Information about the currently used palette. More...

#include <gfx_type.h>

Data Fields

Colour palette [256]
 Current palette. Entry 0 has to be always fully transparent!
int first_dirty
 The first dirty element.
int count_dirty
 The number of dirty elements.

Detailed Description

Information about the currently used palette.

Definition at line 373 of file gfx_type.h.

Field Documentation

◆ count_dirty

int Palette::count_dirty

The number of dirty elements.

Definition at line 376 of file gfx_type.h.

Referenced by CopyPalette().

◆ first_dirty

int Palette::first_dirty

The first dirty element.

Definition at line 375 of file gfx_type.h.

Referenced by VideoDriver_CocoaQuartz::CheckPaletteAnim(), CopyPalette(), and Blitter_32bppAnim::PaletteAnimate().

◆ palette

Colour Palette::palette[256]

Current palette. Entry 0 has to be always fully transparent!

Definition at line 374 of file gfx_type.h.

Referenced by Blitter_32bppAnim::LookupColourInPalette().


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