OpenTTD Source: src/spriteloader/spriteloader.hpp File Reference

OpenTTD Source 14.1

Data Structures | Typedefs | Enumerations
spriteloader.hpp File Reference
`#include "../core/alloc_type.hpp"`
`#include "../core/enum_type.hpp"`
`#include "../gfx_type.h"`
`#include "sprite_file_type.hpp"`

Go to the source code of this file.

## Data Structures
class | SpriteLoader
| Interface for the loader of our sprites. More...
struct | SpriteLoader::CommonPixel
| Definition of a common pixel in OpenTTD's realm. More...
struct | SpriteLoader::Sprite
| Structure for passing information from the sprite loader to the blitter. More...
class | SpriteEncoder
| Interface for something that can encode a sprite. More...

## Typedefs
typedef void * | AllocatorProc(size_t size)

## Enumerations
enum | SpriteColourComponent { SCC_RGB = 1 << 0, SCC_ALPHA = 1 << 1, SCC_PAL = 1 << 2, SCC_MASK = SCC_RGB | SCC_ALPHA | SCC_PAL }
| The different colour components a sprite can have. More...

## Detailed Description

Base for loading sprites.

Definition in file spriteloader.hpp.

## Enumeration Type Documentation

## ◆ SpriteColourComponent

enum SpriteColourComponent

The different colour components a sprite can have.

Enumerator
SCC_RGB | Sprite has RGB.
SCC_ALPHA | Sprite has alpha.
SCC_PAL | Sprite has palette data.
SCC_MASK | Mask of valid colour bits.

Definition at line 22 of file spriteloader.hpp.