src/spritecache.h
branchcustombridgeheads
changeset 5650 aefc131bf5ce
parent 5643 3778051e8095
child 6298 c30fe89622df
child 6573 7624f942237f
equal deleted inserted replaced
5649:55c8267c933f 5650:aefc131bf5ce
    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 */