OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
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(
int load_index)
23 bool is_mapgen = IsMapgenSpriteID(load_index);
39 void MockGfxLoadSprites()
47 while (MockLoadNextSprite(load_index)) {
@ Normal
The most basic (normal) sprite.
SpriteAllocate that uses malloc to allocate memory.
bool warned
True iff the user has been warned about incorrect use of this sprite.
uint8_t control_flags
Control flags, see SpriteCacheCtrlFlags.
@ MapGen
Special sprite for the map generator.
SpriteFile * file
The file the sprite in this entry can be found in.
T * Allocate(size_t size)
Allocate memory for a sprite.
static Blitter * SelectBlitter(const std::string_view name)
Find the requested blitter and return its class.
SpriteType type
In some cases a single sprite is misused by two NewGRFs. Once as real sprite and once as recolour spr...
static const SpriteID SPR_OPENTTD_BASE
Extra graphic spritenumbers.
Data structure describing a sprite.