OpenTTD Source 20241224-master-gf74b0cf984
|
Data Fields | |
void * | ptr |
size_t | file_pos |
SpriteFile * | file |
The file the sprite in this entry can be found in. | |
uint32_t | length |
Length of sprite data. | |
uint32_t | id |
int16_t | lru |
SpriteType | type |
In some cases a single sprite is misused by two NewGRFs. Once as real sprite and once as recolour sprite. If the recolour sprite gets into the cache it might be drawn as real sprite which causes enormous trouble. | |
bool | warned |
True iff the user has been warned about incorrect use of this sprite. | |
uint8_t | control_flags |
Control flags, see SpriteCacheCtrlFlags. | |
Definition at line 23 of file spritecache_internal.h.
uint8_t SpriteCache::control_flags |
Control flags, see SpriteCacheCtrlFlags.
Definition at line 32 of file spritecache_internal.h.
Referenced by LoadNextSprite(), and ReadSprite().
SpriteFile* SpriteCache::file |
The file the sprite in this entry can be found in.
Definition at line 26 of file spritecache_internal.h.
Referenced by GetOriginFile(), GetRawSprite(), GetSpriteCountForFile(), LoadNextSprite(), and ReadSprite().
size_t SpriteCache::file_pos |
Definition at line 25 of file spritecache_internal.h.
uint32_t SpriteCache::id |
Definition at line 28 of file spritecache_internal.h.
uint32_t SpriteCache::length |
Length of sprite data.
Definition at line 27 of file spritecache_internal.h.
Referenced by GetRawSprite(), and LoadNextSprite().
int16_t SpriteCache::lru |
Definition at line 29 of file spritecache_internal.h.
void* SpriteCache::ptr |
Definition at line 24 of file spritecache_internal.h.
SpriteType SpriteCache::type |
In some cases a single sprite is misused by two NewGRFs. Once as real sprite and once as recolour sprite. If the recolour sprite gets into the cache it might be drawn as real sprite which causes enormous trouble.
Definition at line 30 of file spritecache_internal.h.
Referenced by GetRawSprite(), GetSpriteType(), GfxClearFontSpriteCache(), HandleInvalidSpriteRequest(), LoadNextSprite(), and ReadSprite().
bool SpriteCache::warned |
True iff the user has been warned about incorrect use of this sprite.
Definition at line 31 of file spritecache_internal.h.
Referenced by HandleInvalidSpriteRequest(), and LoadNextSprite().