diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-14 00:23:30 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-14 00:23:30 +0200 |
commit | ff5dcb946d1efc9248a2f1b88015119d2f267b35 (patch) | |
tree | 15c1ff33e39c4776813c7374543ae49cf85f852c /src/resources/image.h | |
parent | 0eddf44c73dc3a0e9fe20106e91b648197898b3b (diff) | |
download | mana-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.h | 4 |
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 /** |