diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-14 23:57:06 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-14 23:57:06 +0000 |
commit | cfaf8b836b21842b5d22ad774f93c2c364d33c0b (patch) | |
tree | 00dca4d03b2f9cff3ec0cef4ed8b6b05c4218c2b /src/resources/image.h | |
parent | e475dc028ca49324f824a7e4d6d16f54781b9bee (diff) | |
download | mana-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.h | 10 |
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; |