summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 00:50:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 00:50:45 +0300
commitaf374aa2b2944749193af49cdca28532cf56fae2 (patch)
treeb3e4fd2609a00175dbd94e42ab3d72984b4a051b /src/resources/openglimagehelper.h
parent00cda69b883d6354f093be6ee39a7936cb798979 (diff)
downloadplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz
plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2
plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz
plus-af374aa2b2944749193af49cdca28532cf56fae2.zip
add renderer enum.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r--src/resources/openglimagehelper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h
index 254edde9d..5ecf4512e 100644
--- a/src/resources/openglimagehelper.h
+++ b/src/resources/openglimagehelper.h
@@ -99,7 +99,7 @@ class OpenGLImageHelper final : public ImageHelper
* Sets the target image format. Use <code>false</code> for SDL and
* <code>true</code> for OpenGL.
*/
- static void setLoadAsOpenGL(const int useOpenGL);
+ static void setLoadAsOpenGL(const RenderType useOpenGL);
static int getTextureType() A_WARN_UNUSED
{ return mTextureType; }
@@ -121,7 +121,7 @@ class OpenGLImageHelper final : public ImageHelper
* Tells if the image was loaded using OpenGL or SDL
* @return true if OpenGL, false if SDL.
*/
- int useOpenGL() const override A_WARN_UNUSED;
+ RenderType useOpenGL() const override A_WARN_UNUSED;
static int getTextureSize() A_WARN_UNUSED
{ return mTextureSize; }
@@ -142,7 +142,7 @@ class OpenGLImageHelper final : public ImageHelper
Image *glLoad(SDL_Surface *tmpImage,
int width = 0, int height = 0) const A_WARN_UNUSED;
- static int mUseOpenGL;
+ static RenderType mUseOpenGL;
static int mTextureSize;
static bool mBlur;
static bool mUseTextureSampler;