summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-13 22:18:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-30 02:57:13 +0300
commit135c19b4337e1ab45cff40a306eadc52a061ddef (patch)
tree0a163ca1edd542aec5570b7e451034aafb4089dd /src/resources/imagehelper.h
parent3a2bab265768c219b0c077eef10b69dfe8158131 (diff)
downloadplus-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.gz
plus-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.bz2
plus-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.xz
plus-135c19b4337e1ab45cff40a306eadc52a061ddef.zip
add atlas textures support.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r--src/resources/imagehelper.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 27132b7d9..fdda3b00f 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -54,10 +54,10 @@ class ImageHelper
* @return <code>NULL</code> if an error occurred, a valid pointer
* otherwise.
*/
- Resource *load(SDL_RWops *const rw);
+ Image *load(SDL_RWops *const rw);
#ifdef __GNUC__
- virtual Resource *load(SDL_RWops *rw, Dye const &dye) = 0;
+ virtual Image *load(SDL_RWops *rw, Dye const &dye) = 0;
virtual Image *load(SDL_Surface *) = 0;
@@ -66,7 +66,7 @@ class ImageHelper
virtual int useOpenGL() = 0;
#else
- virtual Resource *load(SDL_RWops *rw, Dye const &dye)
+ virtual Image *load(SDL_RWops *rw, Dye const &dye)
{ return nullptr; }
virtual Image *load(SDL_Surface *)
@@ -92,4 +92,5 @@ class ImageHelper
};
extern ImageHelper *imageHelper;
+extern ImageHelper *sdlImageHelper;
#endif