summaryrefslogtreecommitdiff
path: root/spritecache.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-10 05:43:30 +0000
committertron <tron@openttd.org>2005-02-10 05:43:30 +0000
commit2a151d93546db1d867a7cc0691a5c0e5973a4b98 (patch)
treef80e3d1416973b1e780618876d295c1ff823868a /spritecache.h
parent092e72d60db91b631099d1844eba1b909e279756 (diff)
downloadopenttd-2a151d93546db1d867a7cc0691a5c0e5973a4b98.tar.xz
(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
Diffstat (limited to 'spritecache.h')
-rw-r--r--spritecache.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/spritecache.h b/spritecache.h
new file mode 100644
index 000000000..d6a4373aa
--- /dev/null
+++ b/spritecache.h
@@ -0,0 +1,16 @@
+#ifndef SPRITECACHE_H
+#define SPRITECACHE_H
+
+typedef struct {
+ int xoffs, yoffs;
+ int xsize, ysize;
+} SpriteDimension;
+
+const SpriteDimension *GetSpriteDimension(SpriteID sprite);
+byte *GetSpritePtr(SpriteID sprite);
+
+void GfxInitSpriteMem(byte *ptr, uint32 size);
+void GfxLoadSprites(void);
+void IncreaseSpriteLRU(void);
+
+#endif