summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-08-14 01:05:49 +0200
committerBertram <bertram@cegetel.net>2009-08-14 01:05:49 +0200
commit0c9ee8a74e62fe65acb551370db07ca568e3a0b3 (patch)
tree8245533eb473c2012e042cfb6fcba7f0e53f2948 /src/resources/image.h
parented8025fe0dfcb1ca54c62ffc2905c1cb48772cde (diff)
downloadMana-0c9ee8a74e62fe65acb551370db07ca568e3a0b3.tar.gz
Mana-0c9ee8a74e62fe65acb551370db07ca568e3a0b3.tar.bz2
Mana-0c9ee8a74e62fe65acb551370db07ca568e3a0b3.tar.xz
Mana-0c9ee8a74e62fe65acb551370db07ca568e3a0b3.zip
Added a Alpha Channel copier for 32 bit SDL based images.
This will later be used to keep the original alpha value...
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 535a3536..34ec2887 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -187,7 +187,7 @@ class Image : public Resource
SDL_Rect mBounds;
bool mLoaded;
float mAlpha;
- bool mAlphaChannel;
+ bool mHasAlphaChannel;
// -----------------------
// SDL protected members
@@ -196,8 +196,17 @@ class Image : public Resource
/** SDL Constructor */
Image(SDL_Surface *image);
+ /** SDL_Surface to SDL_Surface Image loader */
static Image *_SDLload(SDL_Surface *tmpImage);
+ /**
+ * Make a converted copy of the alpha channel
+ * used for 32 bits SDLbased images
+ * in order to support changing the opacity.
+ */
+ Uint8 *_SDLgetAlphaChannel();
+ Uint8* mAlphaChannel;
+
SDL_Surface *mSDLSurface;