summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
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;