diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-26 03:16:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-30 02:57:14 +0300 |
commit | c05a24d876f261c0865124157b99333ab28d70d2 (patch) | |
tree | 390612a4b58ccfd48d0f2ae77d90913984ee7ce6 /src | |
parent | 29ad6702ab90fc75fe9d0422609609fd15123fc3 (diff) | |
download | plus-c05a24d876f261c0865124157b99333ab28d70d2.tar.gz plus-c05a24d876f261c0865124157b99333ab28d70d2.tar.bz2 plus-c05a24d876f261c0865124157b99333ab28d70d2.tar.xz plus-c05a24d876f261c0865124157b99333ab28d70d2.zip |
Disable atlases debug information.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/atlasmanager.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resources/atlasmanager.cpp b/src/resources/atlasmanager.cpp index 401dba0cb..308c8d9ba 100644 --- a/src/resources/atlasmanager.cpp +++ b/src/resources/atlasmanager.cpp @@ -58,7 +58,7 @@ AtlasResource *AtlasManager::loadTextureAtlas(const std::string &name, // sorting images on atlases. simpleSort(name, atlases, images, maxSize); - int k = 0; +// int k = 0; for (std::vector<TextureAtlas*>::iterator it = atlases.begin(), it_end = atlases.end(); it != it_end; ++ it) { @@ -73,11 +73,11 @@ AtlasResource *AtlasManager::loadTextureAtlas(const std::string &name, continue; // debug save - ImageWriter::writePNG(surface, Client::getTempDirectory() - + "/atlas" + name + toString(k) + ".png"); - k ++; +// ImageWriter::writePNG(surface, Client::getTempDirectory() +// + "/atlas" + name + toString(k) + ".png"); +// k ++; - // covert SDL images to OpenGL + // convert SDL images to OpenGL convertAtlas(atlas); // free SDL atlas surface @@ -162,8 +162,8 @@ void AtlasManager::simpleSort(const std::string &name, if (img->mBounds.h > tempHeight) tempHeight = img->mBounds.h; - logger->log("image draw position: %d,%d (%d,%d)", - x, y, img->mBounds.w, img->mBounds.h); +// logger->log("image draw position: %d,%d (%d,%d)", +// x, y, img->mBounds.w, img->mBounds.h); item->x = x; item->y = y; atlas->items.push_back(item); |