Files @ r5301:163d43c96b7d
Branch filter:

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

miham
(svn r7457) WebTranslator2 update to 2006-12-09 19:35:23
esperanto - 191 fixed, 2 changed by LaPingvino (193)
french - 1 fixed by glx (1)
german - 27 fixed by Neonox (27)
italian - 1 fixed by sidew (1)
polish - 8 fixed by meush (8)
turkish - 8 fixed by jnmbk (8)
/* $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 */