|
OpenTTD Source
14.0-beta3
|
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)
20 static Sprite *sprite = (
Sprite *)AllocSprite(
sizeof(*sprite));
22 bool is_mapgen = IsMapgenSpriteID(load_index);
38 void MockGfxLoadSprites()
46 while (MockLoadNextSprite(load_index)) {
static Blitter * SelectBlitter(const std::string &name)
Find the requested blitter and return its class.
bool warned
True iff the user has been warned about incorrect use of this sprite.
byte control_flags
Control flags, see SpriteCacheCtrlFlags.
SpriteFile * file
The file the sprite in this entry can be found in.
@ MapGen
Special sprite for the map generator.
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.
@ Normal
The most basic (normal) sprite.