Files @ r4645:1dac9590458b
Branch filter:

Location: cpp/openttd-patchpack/source/spritecache.h

miham
(svn r6521) WebTranslator2 update to 2006-09-27 13:29:33
catalan - 4 fixed by arnaullv (4)
czech - 4 fixed by Hadez (4)
dutch - 4 fixed by habell (4)
french - 4 fixed by glx (4)
hungarian - 4 fixed by miham (4)
italian - 4 fixed by sidew (4)
spanish - 4 fixed by eusebio (4)
swedish - 38 fixed, 78 changed by cjw (116)
/* $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);
bool SpriteExists(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 */