Files
@ r2567:a475d65e5a9c
Branch filter:
Location: cpp/openttd-patchpack/source/spritecache.h - annotation
r2567:a475d65e5a9c
631 B
text/x-c
(svn r3104) -Codechange: [refit] removed now obsolite code that the old autoreplace needed
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 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);
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 */
|