diff options
author | Bertram <bertram@cegetel.net> | 2009-07-26 22:34:34 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-07-26 22:34:34 +0200 |
commit | 7bc30f545784b26594803b559f1d76d5434027ea (patch) | |
tree | 134d20a14c0fec6c49c1ae72edbc2955c34204bd /src/resources/image.h | |
parent | c98665d62a089c978189662c3f526464365f08fa (diff) | |
download | mana-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.h | 6 |
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 |