diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-21 18:41:45 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-21 18:41:45 +0000 |
commit | c2a830c71ef0e271e48ef57a80ee5b00a977a4de (patch) | |
tree | 9c8f13688ddbf159a34640ad4cf4fdda3eb20ecf /src/resources/image.h | |
parent | c392a1aa234b304b634c4ace6375ad96397a30b9 (diff) | |
download | mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.tar.gz mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.tar.bz2 mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.tar.xz mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.zip |
Image loader now automatically determines whether to use masked drawing or
an alpha layer.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index ebc2c971..14aa4550 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -31,10 +31,6 @@ #endif #include <string> -// This flag causes image alpha channel to be preserved, otherwise masking is -// used. -#define IMG_ALPHA 1 - // Forward declarations class SubImage; @@ -56,14 +52,11 @@ class Image : public Resource * * @param buffer The memory buffer containing the image data. * @param bufferSize The size of the memory buffer in bytes. - * @param flags These flags allow controlling the way the image is - * loaded. Currently only IMG_ALPHA is supported, which - * causes alpha layer to be preserved. * * @return <code>NULL</code> if the an error occurred, a valid pointer * otherwise. */ - static Image *load(void* buffer, unsigned int bufferSize, int flags); + static Image *load(void* buffer, unsigned int bufferSize); /** * Frees the resources created by SDL. |