summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.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/openglimagehelper.h
parent3a2bab265768c219b0c077eef10b69dfe8158131 (diff)
downloadManaVerse-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.gz
ManaVerse-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.bz2
ManaVerse-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.xz
ManaVerse-135c19b4337e1ab45cff40a306eadc52a061ddef.zip
add atlas textures support.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r--src/resources/openglimagehelper.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h
index c93216e12..292e18138 100644
--- a/src/resources/openglimagehelper.h
+++ b/src/resources/openglimagehelper.h
@@ -26,6 +26,8 @@
#include "localconsts.h"
#include "main.h"
+#include "utils/stringvector.h"
+
#include "resources/imagehelper.h"
#include <SDL.h>
@@ -67,7 +69,7 @@ class OpenGLImageHelper final : public ImageHelper
* @return <code>NULL</code> if an error occurred, a valid pointer
* otherwise.
*/
- Resource *load(SDL_RWops *const rw, Dye const &dye);
+ Image *load(SDL_RWops *const rw, Dye const &dye);
/**
* Loads an image from an SDL surface.
@@ -107,6 +109,9 @@ class OpenGLImageHelper final : public ImageHelper
*/
int useOpenGL();
+ static int getTextureSize()
+ { return mTextureSize; }
+
protected:
/**
* Returns the first power of two equal or bigger than the input.