From 135c19b4337e1ab45cff40a306eadc52a061ddef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Aug 2012 22:18:03 +0300 Subject: add atlas textures support. --- src/resources/openglimagehelper.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/resources/openglimagehelper.h') 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 @@ -67,7 +69,7 @@ class OpenGLImageHelper final : public ImageHelper * @return NULL 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. -- cgit v1.2.3-60-g2f50