10 #include "../stdafx.h"
12 #include "../blitter/factory.hpp"
13 #include "../core/math_func.hpp"
14 #include "../spritecache.h"
15 #include "../spritecache_internal.h"
16 #include "../table/sprites.h"
18 static bool MockLoadNextSprite(
SpriteID load_index)
23 bool is_mapgen = IsMapgenSpriteID(load_index);
39 void MockGfxLoadSprites()
47 while (MockLoadNextSprite(load_index)) {
static Blitter * SelectBlitter(const std::string_view name)
Find the requested blitter and return its class.
SpriteAllocate that uses malloc to allocate memory.
T * Allocate(size_t size)
Allocate memory for a sprite.
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.
static const SpriteID SPR_OPENTTD_BASE
Extra graphic spritenumbers.
uint8_t control_flags
Control flags, see SpriteCacheCtrlFlags.
bool warned
True iff the user has been warned about incorrect use of this sprite.
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.