You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
667 B
C
36 lines
667 B
C
19 years ago
|
/* $Id$ */
|
||
|
|
||
20 years ago
|
#ifndef SPRITECACHE_H
|
||
|
#define SPRITECACHE_H
|
||
|
|
||
20 years ago
|
typedef struct Sprite {
|
||
|
byte info;
|
||
|
byte height;
|
||
20 years ago
|
uint16 width;
|
||
|
int16 x_offs;
|
||
|
int16 y_offs;
|
||
20 years ago
|
byte data[VARARRAY_SIZE];
|
||
|
} Sprite;
|
||
|
|
||
20 years ago
|
const void *GetRawSprite(SpriteID sprite);
|
||
19 years ago
|
bool SpriteExists(SpriteID sprite);
|
||
20 years ago
|
|
||
|
static inline const Sprite *GetSprite(SpriteID sprite)
|
||
|
{
|
||
|
return GetRawSprite(sprite);
|
||
|
}
|
||
|
|
||
|
static inline const byte *GetNonSprite(SpriteID sprite)
|
||
|
{
|
||
|
return GetRawSprite(sprite);
|
||
|
}
|
||
20 years ago
|
|
||
19 years ago
|
void GfxInitSpriteMem(void);
|
||
20 years ago
|
void IncreaseSpriteLRU(void);
|
||
|
|
||
19 years ago
|
bool LoadNextSprite(int load_index, byte file_index);
|
||
19 years ago
|
void DupSprite(SpriteID old, SpriteID new);
|
||
19 years ago
|
void SkipSprites(uint count);
|
||
|
|
||
19 years ago
|
#endif /* SPRITECACHE_H */
|