19static bool MockLoadNextSprite(
SpriteID load_index)
24 bool is_mapgen = IsMapgenSpriteID(load_index);
29 sc->ptr = std::move(allocator.data);
30 sc->
length =
static_cast<uint32_t
>(allocator.size);
41void MockGfxLoadSprites()
49 while (MockLoadNextSprite(load_index)) {
static Blitter * SelectBlitter(std::string_view name)
Find the requested blitter and return its class.
T * Allocate(size_t size)
Allocate memory for a sprite.
SpriteAllocator that allocates memory via a unique_ptr array.
Factory to 'query' all available blitters.
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
@ MapGen
Special sprite for the map generator.
@ Normal
The most basic (normal) sprite.
A number of safeguards to prevent using unsafe methods.
Functions to cache sprites in memory.
Internal functions to cache sprites in memory.
This file contains all sprite-related enums and defines.
static const SpriteID SPR_OPENTTD_BASE
Extra graphic spritenumbers.
Definition of base types and functions in a cross-platform compatible way.
uint32_t length
Length of sprite data.
bool warned
True iff the user has been warned about incorrect use of this sprite.
SpriteCacheCtrlFlags control_flags
Control flags, see SpriteCacheCtrlFlags.
SpriteType type
In some cases a single sprite is misused by two NewGRFs. Once as real sprite and once as recolour spr...
SpriteFile * file
The file the sprite in this entry can be found in.
Data structure describing a sprite.