diff options
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index 485ca227..52f286f8 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -40,6 +40,8 @@ #include "resource.h" +class Dye; + /** * Defines a class for loading and storing images. */ @@ -63,12 +65,24 @@ class Image : public Resource * @param buffer The memory buffer containing the image data. * @param bufferSize The size of the memory buffer in bytes. * - * @return <code>NULL</code> if the an error occurred, a valid pointer + * @return <code>NULL</code> if an error occurred, a valid pointer * otherwise. */ static Resource *load(void *buffer, unsigned bufferSize); /** + * Loads an image from a buffer in memory and recolors it. + * + * @param buffer The memory buffer containing the image data. + * @param bufferSize The size of the memory buffer in bytes. + * @param dye The dye used to recolor the image. + * + * @return <code>NULL</code> if an error occurred, a valid pointer + * otherwise. + */ + static Resource *load(void *buffer, unsigned bufferSize, Dye const &dye); + + /** * Loads an image from an SDL surface. */ static Image *load(SDL_Surface *); |