summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-18 11:13:53 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-18 11:13:53 +0000
commit1cc8f5dc5413651d12df2ada51538d46734b0f0f (patch)
tree00ec79c11da398a1d53f8cee7e8faaddd2ff11fa /src/resources/image.h
parent700730abd0f2c87f4170d4565587ff986bd21018 (diff)
downloadmana-client-1cc8f5dc5413651d12df2ada51538d46734b0f0f.tar.gz
mana-client-1cc8f5dc5413651d12df2ada51538d46734b0f0f.tar.bz2
mana-client-1cc8f5dc5413651d12df2ada51538d46734b0f0f.tar.xz
mana-client-1cc8f5dc5413651d12df2ada51538d46734b0f0f.zip
So I added this alpha attribute to images...
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;
};
/**