summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-13 12:52:37 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-13 12:52:37 +0300
commit1716afe170d8c51024be78b01b651f44c73c8afa (patch)
tree0b3497bf8de93f52b7804857a07420d8ea58a89d /src/resources/image.h
parent927c411f815131a03eea065231d043692465c573 (diff)
downloadmanaverse-1716afe170d8c51024be78b01b651f44c73c8afa.tar.gz
manaverse-1716afe170d8c51024be78b01b651f44c73c8afa.tar.bz2
manaverse-1716afe170d8c51024be78b01b651f44c73c8afa.tar.xz
manaverse-1716afe170d8c51024be78b01b651f44c73c8afa.zip
Fix compilation without opengl.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index ee341af75..c4b0cf540 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -208,6 +208,12 @@ class Image : public Resource
int getTextureHeight() const
{ return mTexHeight; }
+ static int getTextureType()
+ { return mTextureType; }
+
+ static int mTextureType;
+#endif
+
bool isHasAlphaChannel()
{ return mHasAlphaChannel; }
@@ -217,12 +223,6 @@ class Image : public Resource
void setAlphaVisible(bool b)
{ mIsAlphaVisible = b; }
- static int getTextureType()
- { return mTextureType; }
-
- static int mTextureType;
-#endif
-
SDL_Rect mBounds;
protected: