From aac238cec9cab9efe7319d8397b95e7a77bdb5cd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Aug 2011 21:05:48 +0300 Subject: Fix perfomance issue with caching complex sprites. --- src/sprite.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sprite.h') 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 */ }; -- cgit v1.2.3-60-g2f50