diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-01 00:50:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-01 00:50:45 +0300 |
commit | af374aa2b2944749193af49cdca28532cf56fae2 (patch) | |
tree | b3e4fd2609a00175dbd94e42ab3d72984b4a051b /src/resources/imagehelper.h | |
parent | 00cda69b883d6354f093be6ee39a7936cb798979 (diff) | |
download | plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2 plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz plus-af374aa2b2944749193af49cdca28532cf56fae2.zip |
add renderer enum.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r-- | src/resources/imagehelper.h | 8 |
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) |