OpenTTD Source: SpriteLoader::CommonPixel Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
SpriteLoader::CommonPixel Struct Reference

Definition of a common pixel in OpenTTD's realm. More...

`#include <spriteloader.hpp>`

## Data Fields
uint8_t | r
| Red-channel.
uint8_t | g
| Green-channel.
uint8_t | b
| Blue-channel.
uint8_t | a
| Alpha-channel.
uint8_t | m
| Remap-channel.

## Detailed Description

Definition of a common pixel in OpenTTD's realm.

Definition at line 33 of file spriteloader.hpp.

## Field Documentation

## ◆ a

uint8_t SpriteLoader::CommonPixel::a

Alpha-channel.

Definition at line 37 of file spriteloader.hpp.

Referenced by DecodeSingleSprite(), Blitter_32bppSimple::Encode(), and OpenGLSprite::Update().

## ◆ b

uint8_t SpriteLoader::CommonPixel::b

Blue-channel.

Definition at line 36 of file spriteloader.hpp.

Referenced by DecodeSingleSprite(), Blitter_32bppSimple::Encode(), and OpenGLSprite::Update().

## ◆ g

uint8_t SpriteLoader::CommonPixel::g

Green-channel.

Definition at line 35 of file spriteloader.hpp.

Referenced by DecodeSingleSprite(), Blitter_32bppSimple::Encode(), and OpenGLSprite::Update().

## ◆ m

uint8_t SpriteLoader::CommonPixel::m

Remap-channel.

Definition at line 38 of file spriteloader.hpp.

Referenced by DecodeSingleSprite(), Blitter_32bppSimple::Encode(), Blitter_8bppOptimized::Encode(), ReadSprite(), and OpenGLSprite::Update().

## ◆ r

uint8_t SpriteLoader::CommonPixel::r

Red-channel.

Definition at line 34 of file spriteloader.hpp.

Referenced by DecodeSingleSprite(), Blitter_32bppSimple::Encode(), and OpenGLSprite::Update().

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

- src/spriteloader/spriteloader.hpp