diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-01 21:05:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-02 18:38:14 +0300 |
commit | aac238cec9cab9efe7319d8397b95e7a77bdb5cd (patch) | |
tree | 3298f3b604d4d45cc6d04f871f6a1abb29cdd554 /src/sprite.h | |
parent | 4e7096f15eba73e6ea28066df6ab389aab3f052c (diff) | |
download | manaverse-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.tar.gz manaverse-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.tar.bz2 manaverse-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.tar.xz manaverse-aac238cec9cab9efe7319d8397b95e7a77bdb5cd.zip |
Fix perfomance issue with caching complex sprites.
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 6 |
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 */ }; |