summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-14 00:23:30 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-14 00:23:30 +0200
commitff5dcb946d1efc9248a2f1b88015119d2f267b35 (patch)
tree15c1ff33e39c4776813c7374543ae49cf85f852c /src/resources/image.h
parent0eddf44c73dc3a0e9fe20106e91b648197898b3b (diff)
downloadmana-ff5dcb946d1efc9248a2f1b88015119d2f267b35.tar.gz
mana-ff5dcb946d1efc9248a2f1b88015119d2f267b35.tar.bz2
mana-ff5dcb946d1efc9248a2f1b88015119d2f267b35.tar.xz
mana-ff5dcb946d1efc9248a2f1b88015119d2f267b35.zip
Unduplicated the code that draws a quad
Shouldn't affect performance.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 3cfb9216..4422fcc8 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -128,6 +128,10 @@ class Image : public Resource
* <code>true</code> for OpenGL.
*/
static void setLoadAsOpenGL(bool useOpenGL);
+
+ int getTextureWidth() const { return mTexWidth; }
+ int getTextureHeight() const { return mTexHeight; }
+ static int getTextureType() { return mTextureType; }
#endif
/**