diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-15 20:54:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-15 20:54:59 +0300 |
commit | 7b26645c1b28b212c011f98a5420c0989a7f0adc (patch) | |
tree | 0a3231b3cb54f415473c9834b88657b76b2668d6 /src/resources/sdlimagehelper.h | |
parent | 054ed0b25bffc50588ff8c11a0aef4ee74c8136d (diff) | |
download | mv-7b26645c1b28b212c011f98a5420c0989a7f0adc.tar.gz mv-7b26645c1b28b212c011f98a5420c0989a7f0adc.tar.bz2 mv-7b26645c1b28b212c011f98a5420c0989a7f0adc.tar.xz mv-7b26645c1b28b212c011f98a5420c0989a7f0adc.zip |
improve imagehelper class.
Diffstat (limited to 'src/resources/sdlimagehelper.h')
-rw-r--r-- | src/resources/sdlimagehelper.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h index 0c643d0ca..8a538ca3c 100644 --- a/src/resources/sdlimagehelper.h +++ b/src/resources/sdlimagehelper.h @@ -57,16 +57,18 @@ class SDLImageHelper final : public ImageHelper * @return <code>NULL</code> if an error occurred, a valid pointer * otherwise. */ - Image *load(SDL_RWops *const rw, Dye const &dye) A_WARN_UNUSED; + Image *load(SDL_RWops *const rw, + Dye const &dye) const override A_WARN_UNUSED; /** * Loads an image from an SDL surface. */ - Image *load(SDL_Surface *const tmpImage) A_WARN_UNUSED; + Image *load(SDL_Surface *const tmpImage) const override A_WARN_UNUSED; Image *createTextSurface(SDL_Surface *const tmpImage, - int width, int height, - const float alpha) A_WARN_UNUSED; + const int width, const int height, + const float alpha) + const override A_WARN_UNUSED; static void SDLSetEnableAlphaCache(const bool n) { mEnableAlphaCache = n; } @@ -78,12 +80,12 @@ class SDLImageHelper final : public ImageHelper * Tells if the image was loaded using OpenGL or SDL * @return true if OpenGL, false if SDL. */ - int useOpenGL() A_WARN_UNUSED; + int useOpenGL() const override A_WARN_UNUSED; static SDL_Surface* SDLDuplicateSurface(SDL_Surface *const tmpImage) A_WARN_UNUSED; - SDL_Surface *create32BitSurface(int width, int height); + SDL_Surface *create32BitSurface(int width, int height) const override; protected: /** SDL_Surface to SDL_Surface Image loader */ |