OpenTTD Source  20241108-master-g80f628063a
spriteloader.hpp File Reference

Base for loading sprites. More...

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  SpriteAllocator
 Interface for something that can allocate memory for a sprite. More...
 
class  SpriteEncoder
 Interface for something that can encode a sprite. More...
 

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

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 21 of file spriteloader.hpp.