summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 23:57:06 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 23:57:06 +0000
commitcfaf8b836b21842b5d22ad774f93c2c364d33c0b (patch)
tree00dca4d03b2f9cff3ec0cef4ed8b6b05c4218c2b /src/resources/image.h
parente475dc028ca49324f824a7e4d6d16f54781b9bee (diff)
downloadmana-cfaf8b836b21842b5d22ad774f93c2c364d33c0b.tar.gz
mana-cfaf8b836b21842b5d22ad774f93c2c364d33c0b.tar.bz2
mana-cfaf8b836b21842b5d22ad774f93c2c364d33c0b.tar.xz
mana-cfaf8b836b21842b5d22ad774f93c2c364d33c0b.zip
Fully removed the useOpenGL global.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 85f790ba..b99ad189 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -96,6 +96,14 @@ class Image : public Resource
float
getAlpha();
+#ifdef USE_OPENGL
+ /**
+ * Sets the target image format. Use <code>false</code> for SDL and
+ * <code>true</code> for OpenGL.
+ */
+ static void setLoadAsOpenGL(bool useOpenGL);
+#endif
+
protected:
/**
@@ -112,6 +120,8 @@ class Image : public Resource
#ifdef USE_OPENGL
GLuint glimage;
int texWidth, texHeight;
+
+ static bool useOpenGL;
#endif
SDL_Surface *image;
float alpha;