Files
@ r4381:c965d1f3016a
Branch filter:
Location: cpp/openttd-patchpack/source/spritecache.h - annotation
r4381:c965d1f3016a
667 B
text/x-c
(svn r6131) -Codechange : Complete all missing _ttdpatch_flags entries
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r1349:8fc4bdf6c588 r1349:8fc4bdf6c588 r1349:8fc4bdf6c588 r1350:2e611710fdde r1350:2e611710fdde r1350:2e611710fdde r1356:ce1373b836e5 r1356:ce1373b836e5 r1356:ce1373b836e5 r1350:2e611710fdde r1350:2e611710fdde r1350:2e611710fdde r1361:d1246fcfda96 r3565:99183437dfaa r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1361:d1246fcfda96 r1349:8fc4bdf6c588 r2340:fbdaeafc90de r1349:8fc4bdf6c588 r1349:8fc4bdf6c588 r2340:fbdaeafc90de r2407:bc0da484827c r2340:fbdaeafc90de r2340:fbdaeafc90de r2436:963efe8b84cc | /* $Id$ */
#ifndef SPRITECACHE_H
#define SPRITECACHE_H
typedef struct Sprite {
byte info;
byte height;
uint16 width;
int16 x_offs;
int16 y_offs;
byte data[VARARRAY_SIZE];
} Sprite;
const void *GetRawSprite(SpriteID sprite);
bool SpriteExists(SpriteID sprite);
static inline const Sprite *GetSprite(SpriteID sprite)
{
return GetRawSprite(sprite);
}
static inline const byte *GetNonSprite(SpriteID sprite)
{
return GetRawSprite(sprite);
}
void GfxInitSpriteMem(void);
void IncreaseSpriteLRU(void);
bool LoadNextSprite(int load_index, byte file_index);
void DupSprite(SpriteID old, SpriteID new);
void SkipSprites(uint count);
#endif /* SPRITECACHE_H */
|