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.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