OpenTTD Source
20241108-master-g80f628063a
|
Base for loading sprites. More...
#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 | 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... | |
Base for loading sprites.
Definition in file spriteloader.hpp.
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.