diff options
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 11 |
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; |