Files @ r4608:cbac9c94e467
Branch filter:

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

miham
(svn r6461) WebTranslator2 update to 2006-09-16 14:47:23
catalan - 21 fixed, 46 changed by arnaullv (67)
french - 20 fixed by glx (20)
german - 13 fixed, 2 changed by Neonox (15)
hungarian - 20 fixed by miham (20)
polish - 20 fixed by meush (20)
portuguese - 2 fixed by izhirahider (2)
slovak - 6 fixed, 8 changed by lengyel (14)
turkish - 20 fixed by jnmbk (20)
/* $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 */