summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-17 16:50:57 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-17 16:50:57 +0300
commite183a929a3653446a6545ca764e47c47f7b00e50 (patch)
tree0c6002f48674dbeb6d6ce7a8db85cc39994f2770 /src/resources/image.h
parentd0e6d477d245610288ab622ecf47426a9dcbc400 (diff)
downloadmanaplus-e183a929a3653446a6545ca764e47c47f7b00e50.tar.gz
manaplus-e183a929a3653446a6545ca764e47c47f7b00e50.tar.bz2
manaplus-e183a929a3653446a6545ca764e47c47f7b00e50.tar.xz
manaplus-e183a929a3653446a6545ca764e47c47f7b00e50.zip
Improve map reduce speed.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index c4b0cf540..718301f81 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -223,21 +223,27 @@ class Image : public Resource
void setAlphaVisible(bool b)
{ mIsAlphaVisible = b; }
+ bool isAlphaCalculated()
+ { return mIsAlphaCalculated; }
+
+ void setAlphaCalculated(bool b)
+ { mIsAlphaCalculated = b; }
+
SDL_Rect mBounds;
protected:
- // -----------------------
- // Generic protected members
- // -----------------------
+ // -----------------------
+ // Generic protected members
+ // -----------------------
bool mLoaded;
float mAlpha;
bool mHasAlphaChannel;
- // -----------------------
- // SDL protected members
- // -----------------------
+ // -----------------------
+ // SDL protected members
+ // -----------------------
/** SDL Constructor */
Image(SDL_Surface *image, bool hasAlphaChannel = false,
@@ -257,6 +263,7 @@ class Image : public Resource
bool mUseAlphaCache;
bool mIsAlphaVisible;
+ bool mIsAlphaCalculated;
static bool mEnableAlphaCache;
static bool mEnableAlpha;