From c05a24d876f261c0865124157b99333ab28d70d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Sep 2012 03:16:49 +0300 Subject: Disable atlases debug information. --- src/resources/atlasmanager.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/resources') 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::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); -- cgit v1.2.3-70-g09d2