summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-03 00:32:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-03 00:32:00 +0300
commitfa21c1b65dbe91a1e6ac880db977416162f268df (patch)
tree7fa06ef18a171d62ff892c99e710d4df7aff91b5 /src/resources/openglimagehelper.h
parent0534847df83047f1ce2605187d45a762ffeae11e (diff)
downloadplus-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.gz
plus-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.bz2
plus-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.xz
plus-fa21c1b65dbe91a1e6ac880db977416162f268df.zip
Add const to more classes.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r--src/resources/openglimagehelper.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h
index 9b8813f78..36d51c29b 100644
--- a/src/resources/openglimagehelper.h
+++ b/src/resources/openglimagehelper.h
@@ -67,12 +67,12 @@ class OpenGLImageHelper : public ImageHelper
* @return <code>NULL</code> if an error occurred, a valid pointer
* otherwise.
*/
- Resource *load(SDL_RWops *rw, Dye const &dye);
+ Resource *load(SDL_RWops *const rw, Dye const &dye);
/**
* Loads an image from an SDL surface.
*/
- Image *load(SDL_Surface *);
+ Image *load(SDL_Surface *const tmpImage);
Image *createTextSurface(SDL_Surface *const tmpImage,
const float alpha);
@@ -91,10 +91,10 @@ class OpenGLImageHelper : public ImageHelper
static int getInternalTextureType()
{ return mInternalTextureType; }
- static void setInternalTextureType(int n)
+ static void setInternalTextureType(const int n)
{ mInternalTextureType = n; }
- static void setBlur(bool n)
+ static void setBlur(const bool n)
{ mBlur = n; }
static int mTextureType;
@@ -111,7 +111,7 @@ class OpenGLImageHelper : public ImageHelper
/**
* Returns the first power of two equal or bigger than the input.
*/
- int powerOfTwo(int input);
+ int powerOfTwo(int input) const;
Image *glLoad(SDL_Surface *tmpImage);