src/spritecache.h
branchgamebalance
changeset 9913 e79cd19772dd
parent 9912 1ac8aac92385
equal deleted inserted replaced
9912:1ac8aac92385 9913:e79cd19772dd
    13 	byte data[VARARRAY_SIZE];
    13 	byte data[VARARRAY_SIZE];
    14 };
    14 };
    15 
    15 
    16 extern uint _sprite_cache_size;
    16 extern uint _sprite_cache_size;
    17 
    17 
    18 const void *GetRawSprite(SpriteID sprite);
    18 const void *GetRawSprite(SpriteID sprite, bool real_sprite);
    19 bool SpriteExists(SpriteID sprite);
    19 bool SpriteExists(SpriteID sprite);
    20 
    20 
    21 static inline const Sprite *GetSprite(SpriteID sprite)
    21 static inline const Sprite *GetSprite(SpriteID sprite)
    22 {
    22 {
    23 	return (Sprite*)GetRawSprite(sprite);
    23 	return (Sprite*)GetRawSprite(sprite, true);
    24 }
    24 }
    25 
    25 
    26 static inline const byte *GetNonSprite(SpriteID sprite)
    26 static inline const byte *GetNonSprite(SpriteID sprite)
    27 {
    27 {
    28 	return (byte*)GetRawSprite(sprite);
    28 	return (byte*)GetRawSprite(sprite, false);
    29 }
    29 }
    30 
    30 
    31 void GfxInitSpriteMem();
    31 void GfxInitSpriteMem();
    32 void IncreaseSpriteLRU();
    32 void IncreaseSpriteLRU();
    33 
    33 
    34 bool LoadNextSprite(int load_index, byte file_index);
    34 bool LoadNextSprite(int load_index, byte file_index, uint file_sprite_id);
    35 void DupSprite(SpriteID old_spr, SpriteID new_spr);
    35 void DupSprite(SpriteID old_spr, SpriteID new_spr);
    36 void SkipSprites(uint count);
    36 void SkipSprites(uint count);
    37 
    37 
    38 #endif /* SPRITECACHE_H */
    38 #endif /* SPRITECACHE_H */