src/spritecache.h
changeset 5838 9c3129cb019b
parent 5726 8f399788f6c9
child 6298 c30fe89622df
child 6573 7624f942237f
equal deleted inserted replaced
5837:96b4b92b86ae 5838:9c3129cb019b
    15 const void *GetRawSprite(SpriteID sprite);
    15 const void *GetRawSprite(SpriteID sprite);
    16 bool SpriteExists(SpriteID sprite);
    16 bool SpriteExists(SpriteID sprite);
    17 
    17 
    18 static inline const Sprite *GetSprite(SpriteID sprite)
    18 static inline const Sprite *GetSprite(SpriteID sprite)
    19 {
    19 {
    20 	return GetRawSprite(sprite);
    20 	return (Sprite*)GetRawSprite(sprite);
    21 }
    21 }
    22 
    22 
    23 static inline const byte *GetNonSprite(SpriteID sprite)
    23 static inline const byte *GetNonSprite(SpriteID sprite)
    24 {
    24 {
    25 	return GetRawSprite(sprite);
    25 	return (byte*)GetRawSprite(sprite);
    26 }
    26 }
    27 
    27 
    28 void GfxInitSpriteMem(void);
    28 void GfxInitSpriteMem(void);
    29 void IncreaseSpriteLRU(void);
    29 void IncreaseSpriteLRU(void);
    30 
    30 
    31 bool LoadNextSprite(int load_index, byte file_index);
    31 bool LoadNextSprite(int load_index, byte file_index);
    32 void DupSprite(SpriteID old, SpriteID new);
    32 void DupSprite(SpriteID old_spr, SpriteID new_spr);
    33 void SkipSprites(uint count);
    33 void SkipSprites(uint count);
    34 
    34 
    35 #endif /* SPRITECACHE_H */
    35 #endif /* SPRITECACHE_H */