summaryrefslogtreecommitdiff
path: root/src/sprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-01 21:05:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-02 18:38:14 +0300
commitaac238cec9cab9efe7319d8397b95e7a77bdb5cd (patch)
tree3298f3b604d4d45cc6d04f871f6a1abb29cdd554 /src/sprite.h
parent4e7096f15eba73e6ea28066df6ab389aab3f052c (diff)
downloadplus-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.tar.gz
plus-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.tar.bz2
plus-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.tar.xz
plus-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.zip
Fix perfomance issue with caching complex sprites.
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h
index 9c6401dcb..20f38bef0 100644
--- a/src/sprite.h
+++ b/src/sprite.h
@@ -104,6 +104,12 @@ class Sprite
*/
virtual unsigned int getFrameCount() const = 0;
+ virtual void *getHash()
+ { return 0; }
+
+ virtual void *getHash2()
+ { return this; }
+
protected:
float mAlpha; /**< The alpha opacity used to draw */
};