summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
commit0534847df83047f1ce2605187d45a762ffeae11e (patch)
tree92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/imagehelper.h
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadManaVerse-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
ManaVerse-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
ManaVerse-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
ManaVerse-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r--src/resources/imagehelper.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 7e2bee20d..27132b7d9 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -54,7 +54,7 @@ class ImageHelper
* @return <code>NULL</code> if an error occurred, a valid pointer
* otherwise.
*/
- Resource *load(SDL_RWops *rw);
+ Resource *load(SDL_RWops *const rw);
#ifdef __GNUC__
virtual Resource *load(SDL_RWops *rw, Dye const &dye) = 0;
@@ -72,19 +72,19 @@ class ImageHelper
virtual Image *load(SDL_Surface *)
{ return nullptr; }
- virtual Image *createTextSurface(SDL_Surface *tmpImage,
- float alpha)
+ virtual Image *createTextSurface(SDL_Surface *const tmpImage,
+ const float alpha)
{ return nullptr; }
virtual int useOpenGL()
{ return 0; }
#endif
- SDL_Surface *convertTo32Bit(SDL_Surface* tmpImage);
+ static SDL_Surface *convertTo32Bit(SDL_Surface *const tmpImage);
- void dumpSurfaceFormat(SDL_Surface *image);
+ void dumpSurfaceFormat(const SDL_Surface *const image) const;
- static void setEnableAlpha(bool n)
+ static void setEnableAlpha(const bool n)
{ mEnableAlpha = n; }
protected: