summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-07-26 22:34:34 +0200
committerBertram <bertram@cegetel.net>2009-07-26 22:34:34 +0200
commit7bc30f545784b26594803b559f1d76d5434027ea (patch)
tree134d20a14c0fec6c49c1ae72edbc2955c34204bd /src/resources/image.h
parentc98665d62a089c978189662c3f526464365f08fa (diff)
downloadmana-7bc30f545784b26594803b559f1d76d5434027ea.tar.gz
mana-7bc30f545784b26594803b559f1d76d5434027ea.tar.bz2
mana-7bc30f545784b26594803b559f1d76d5434027ea.tar.xz
mana-7bc30f545784b26594803b559f1d76d5434027ea.zip
Fixed a '+' string operation, and attempt to resolve the Mantis 427.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 25339e68..c67686e6 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -138,6 +138,12 @@ class Image : public Resource
*/
float getAlpha() const;
+ /**
+ * Returns a 2x2 image filled with the desired color.
+ * Useful for pattern operations.
+ */
+ static Image* getColoredPattern(Uint8 red, Uint8 green, Uint8 blue);
+
#ifdef USE_OPENGL
/**
* Sets the target image format. Use <code>false</code> for SDL and