Files
@ r2505:e634a07afb03
Branch filter:
Location: cpp/openttd-patchpack/source/spritecache.h - annotation
r2505:e634a07afb03
631 B
text/x-c
(svn r3031) forgot 1 file and two lines in rev 3029 (mac midi stuff)
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 */
|