summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 09a0fc7e..a92e6cc3 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -117,6 +117,16 @@ class Image : public Resource
virtual void drawPattern(
SDL_Surface *screen, int x, int y, int w, int h);
+ /**
+ * Sets the alpha value of this image.
+ */
+ void setAlpha(float alpha);
+
+ /**
+ * Returns the alpha value of this image.
+ */
+ float getAlpha();
+
protected:
#ifdef USE_OPENGL
GLuint image;
@@ -125,6 +135,7 @@ class Image : public Resource
#else
SDL_Surface *image;
#endif
+ float alpha;
};
/**