From ff5dcb946d1efc9248a2f1b88015119d2f267b35 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 14 Apr 2009 00:23:30 +0200 Subject: Unduplicated the code that draws a quad Shouldn't affect performance. --- src/resources/image.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources') 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 * true for OpenGL. */ static void setLoadAsOpenGL(bool useOpenGL); + + int getTextureWidth() const { return mTexWidth; } + int getTextureHeight() const { return mTexHeight; } + static int getTextureType() { return mTextureType; } #endif /** -- cgit v1.2.3-70-g09d2