Files @ r4693:6560f80c47ae
Branch filter:

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

miham
(svn r6600) WebTranslator2 update to 2006-10-01 08:20:02
brazilian_portuguese - 5 changed by tucalipe (5)
catalan - 41 fixed by arnaullv (41)
french - 41 fixed, 16 changed by glx (57)
hungarian - 32 fixed by miham (32)
polish - 33 fixed by meush (33)
spanish - 40 fixed by eusebio (40)
turkish - 2 fixed by edokan (2)
/* $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 */