Files @ r5250:788ce846ec56
Branch filter:

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

miham
(svn r7375) WebTranslator2 update to 2006-12-05 18:07:02
american - 22 fixed, 2 changed by WhiteRabbit (24)
brazilian_portuguese - 23 fixed by tucalipe (23)
bulgarian - 22 fixed, 2 changed by groupsky (24)
catalan - 23 fixed, 31 changed by arnaullv (54)
croatian - 203 fixed, 2 deleted, 27 changed by knovak (232)
danish - 9 fixed, 26 changed by ThomasA (35)
french - 23 fixed, 10 changed by glx (33)
hungarian - 23 fixed, 1 changed by miham (24)
italian - 23 fixed by sidew (23)
slovak - 8 fixed by lengyel (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 */