Files @ r4875:8f72f8979bec
Branch filter:

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

miham
(svn r6806) WebTranslator2 update to 2006-10-17 20:36:04
catalan - 1 fixed, 9 changed by arnaullv (10)
danish - 13 changed by ThomasA (13)
finnish - 5 fixed, 8 changed by hapo (13)
french - 1 fixed, 6 changed by belugas (6), glx (1)
swedish - 5 fixed by daishan (5)
/* $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 */