OpenTTD Source: Palette Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
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 328 of file gfx_type.h.

## Field Documentation

## ◆ count_dirty

int Palette::count_dirty

The number of dirty elements.

Definition at line 331 of file gfx_type.h.

Referenced by CopyPalette(), VideoDriver_SDL_Default::Paint(), VideoDriver_SDL_OpenGL::Paint(), and VideoDriver_Win32GDI::Paint().

## ◆ first_dirty

int Palette::first_dirty

The first dirty element.

Definition at line 330 of file gfx_type.h.

Referenced by CopyPalette(), VideoDriver_Win32GDI::Paint(), and Blitter_32bppAnim::PaletteAnimate().

## ◆ palette

Colour Palette::palette[256]

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

Definition at line 329 of file gfx_type.h.

Referenced by DrawSpriteToRgbaBuffer(), FindNearestColourIndex(), GetContrastColour(), Blitter_32bppAnim::LookupColourInPalette(), Blitter_32bppBase::LookupColourInPalette(), MakeLargeWorldScreenshot(), MakeMinimapWorldScreenshot(), MakeSmallScreenshot(), and VideoDriver_SDL_OpenGL::Paint().

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

- src/gfx_type.h