summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.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/imagehelper.h
parent00cda69b883d6354f093be6ee39a7936cb798979 (diff)
downloadmv-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz
mv-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2
mv-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz
mv-af374aa2b2944749193af49cdca28532cf56fae2.zip
add renderer enum.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r--src/resources/imagehelper.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 93c8784d5..b37d1e279 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -25,6 +25,8 @@
#include "localconsts.h"
+#include "render/renderers.h"
+
#include "resources/resource.h"
#include <SDL.h>
@@ -71,7 +73,7 @@ class ImageHelper
const int width, const int height,
float alpha) const A_WARN_UNUSED = 0;
- virtual int useOpenGL() const A_WARN_UNUSED = 0;
+ virtual RenderType useOpenGL() const A_WARN_UNUSED = 0;
#else
virtual Image *load(SDL_RWops *rw, Dye const &dye) const A_WARN_UNUSED
{ return nullptr; }
@@ -83,8 +85,8 @@ class ImageHelper
const float alpha) const A_WARN_UNUSED
{ return nullptr; }
- virtual int useOpenGL() const A_WARN_UNUSED
- { return 0; }
+ virtual RenderType useOpenGL() const A_WARN_UNUSED
+ { return RENDER_SOFTWARE; }
#endif
static SDL_Surface *convertTo32Bit(SDL_Surface *const tmpImage)