From 4dbda55f670866db29a64ca7a79500efbe6f8d00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Oct 2012 23:17:58 +0300 Subject: Replace some getters to direct fileds using. --- src/resources/image.cpp | 6 +++--- src/resources/image.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/resources') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 6fa0b5bf5..b342edcbf 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -82,6 +82,8 @@ Image::Image(const GLuint glimage, const int width, const int height, const int texWidth, const int texHeight) : Resource(), mGLImage(glimage), + mTexWidth(texWidth), + mTexHeight(texHeight), mLoaded(false), mAlpha(1.0f), mHasAlphaChannel(true), @@ -89,9 +91,7 @@ Image::Image(const GLuint glimage, const int width, const int height, mAlphaChannel(nullptr), mUseAlphaCache(false), mIsAlphaVisible(true), - mIsAlphaCalculated(false), - mTexWidth(texWidth), - mTexHeight(texHeight) + mIsAlphaCalculated(false) { mBounds.x = 0; mBounds.y = 0; diff --git a/src/resources/image.h b/src/resources/image.h index 160adcba3..3374c8697 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -155,6 +155,8 @@ class Image : public Resource { return mGLImage; } GLuint mGLImage; + int mTexWidth; + int mTexHeight; #endif bool isHasAlphaChannel() const @@ -214,8 +216,6 @@ class Image : public Resource */ Image(const GLuint glimage, const int width, const int height, const int texWidth, const int texHeight); - - int mTexWidth, mTexHeight; #endif }; -- cgit v1.2.3-70-g09d2