summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
commite5f795ad9952b8bba6993ee3e324b22a0f104816 (patch)
tree1602ac0f74865135eae5acf935b0a285a8e918c2 /src/resources/image.cpp
parent7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff)
downloadmana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip
Made all class members named like mClassMember.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index f5082c60..ee2736d4 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -35,10 +35,10 @@ Image::Image(const std::string &idPath, SDL_Surface *image):
Resource(idPath), mImage(image),
mAlpha(1.0f)
{
- bounds.x = 0;
- bounds.y = 0;
- bounds.w = mImage->w;
- bounds.h = mImage->h;
+ mBounds.x = 0;
+ mBounds.y = 0;
+ mBounds.w = mImage->w;
+ mBounds.h = mImage->h;
}
#ifdef USE_OPENGL
@@ -51,10 +51,10 @@ Image::Image(const std::string &idPath, GLuint glimage, int width, int height,
mImage(0),
mAlpha(1.0)
{
- bounds.x = 0;
- bounds.y = 0;
- bounds.w = width;
- bounds.h = height;
+ mBounds.x = 0;
+ mBounds.y = 0;
+ mBounds.w = width;
+ mBounds.h = height;
}
#endif
@@ -258,7 +258,7 @@ Image* Image::load(void *buffer, unsigned int bufferSize,
void Image::unload()
{
- loaded = false;
+ mLoaded = false;
if (!mImage) return;
@@ -315,10 +315,10 @@ SubImage::SubImage(Image *parent, SDL_Surface *image,
mParent->incRef();
// Set up the rectangle.
- bounds.x = x;
- bounds.y = y;
- bounds.w = width;
- bounds.h = height;
+ mBounds.x = x;
+ mBounds.y = y;
+ mBounds.w = width;
+ mBounds.h = height;
}
#ifdef USE_OPENGL
@@ -330,10 +330,10 @@ SubImage::SubImage(Image *parent, GLuint image,
mParent->incRef();
// Set up the rectangle.
- bounds.x = x;
- bounds.y = y;
- bounds.w = width;
- bounds.h = height;
+ mBounds.x = x;
+ mBounds.y = y;
+ mBounds.w = width;
+ mBounds.h = height;
}
#endif