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

OpenTTD Source 15.0-RC2

Data Structures | Typedefs | Enumerations
spriteloader.hpp File Reference

Base for loading sprites. More...

`#include "../core/alloc_type.hpp"`
`#include "../core/enum_type.hpp"`
`#include "../gfx_type.h"`
`#include "../spritecache_type.h"`
`#include "sprite_file_type.hpp"`

Go to the source code of this file.

## Data Structures
class | SpriteCollMap< T >
| Map zoom level to data. More...
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 | SpriteAllocator
| Interface for something that can allocate memory for a sprite. More...
class | SpriteEncoder
| Interface for something that can encode a sprite. More...

## Typedefs
using | SpriteComponents = EnumBitSet< SpriteComponent, uint8_t, SpriteComponent::End >

## Enumerations
enum class | SpriteComponent : uint8_t { RGB = 0 , Alpha = 1 , Palette = 2 , End }
| The different colour components a sprite can have. More...

## Detailed Description

Base for loading sprites.

Definition in file spriteloader.hpp.

## Typedef Documentation

## ◆ SpriteComponents

using SpriteComponents = EnumBitSet<SpriteComponent, uint8_t, SpriteComponent::End>

Definition at line 28 of file spriteloader.hpp.

## Enumeration Type Documentation

## ◆ SpriteComponent

enum class SpriteComponent : uint8_t
| strong

The different colour components a sprite can have.

Enumerator
RGB | Sprite has RGB.
Alpha | Sprite has alpha.
Palette | Sprite has palette data.

Definition at line 22 of file spriteloader.hpp.