diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-03 17:33:47 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-03 17:33:47 -0700 |
commit | c6cf9a6a9c03f17362171aeed1a22244d99b7530 (patch) | |
tree | 66c6d358a461e119fac31dc9eac8b2b607595a13 /src/resources/image.h | |
parent | 7d45452187b1c2911b688bbed5fb8981a67b1934 (diff) | |
download | mana-c6cf9a6a9c03f17362171aeed1a22244d99b7530.tar.gz mana-c6cf9a6a9c03f17362171aeed1a22244d99b7530.tar.bz2 mana-c6cf9a6a9c03f17362171aeed1a22244d99b7530.tar.xz mana-c6cf9a6a9c03f17362171aeed1a22244d99b7530.zip |
Disable alpha values affecting two widgets which would otherwise take
alpha values under SDL.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index a4048803..5b376053 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -92,6 +92,12 @@ class Image : public Resource virtual void unload(); /** + * Returns the image. + */ + virtual const Image* getImage() const + { return this; } + + /** * Returns the width of the image. */ virtual int getWidth() const @@ -114,7 +120,7 @@ class Image : public Resource /** * Sets the alpha value of this image. */ - void setAlpha(float alpha); + virtual void setAlpha(float alpha); /** * Returns the alpha value of this image. @@ -181,6 +187,12 @@ class SubImage : public Image ~SubImage(); /** + * Returns the image. + */ + virtual const Image* getImage() const + { return mParent; } + + /** * Creates a new image with the desired clipping rectangle. * * @return <code>NULL</code> if creation failed and a valid |