![]()  | 
  
    ManaPlus
    
   | 
 
#include <atlasmanager.h>
Public Member Functions | |
| AtlasManager () | |
Static Public Member Functions | |
| static AtlasResource * | loadTextureAtlas (const std::string &name, const StringVect &files) | 
| static AtlasResource * | loadEmptyAtlas (const std::string &name, const StringVect &files) | 
| static void | injectToResources (const AtlasResource *const resource) | 
| static void | moveToDeleted (AtlasResource *const resource) | 
Static Private Member Functions | |
| static void | loadImages (const StringVect &files, std::vector< Image * > &images) | 
| static void | loadEmptyImages (const StringVect &files, std::vector< Image * > &images) | 
| static void | emptySort (const std::string &name, std::vector< TextureAtlas * > &atlases, const std::vector< Image * > &images) | 
| static void | simpleSort (const std::string &name, std::vector< TextureAtlas * > &atlases, const std::vector< Image * > &images, int size) | 
| static void | createSDLAtlas (TextureAtlas *const atlas) | 
| static void | convertAtlas (TextureAtlas *const atlas) | 
| static void | convertEmptyAtlas (TextureAtlas *const atlas) | 
Definition at line 36 of file atlasmanager.h.
| AtlasManager::AtlasManager | ( | ) | 
Definition at line 57 of file atlasmanager.cpp.
      
  | 
  staticprivate | 
Definition at line 450 of file atlasmanager.cpp.
References TextureAtlas::atlasImage, FOR_EACH, AtlasItem::height, AtlasItem::image, imageHelper, TextureAtlas::items, ImageHelper::loadSurface(), Logger::log(), logger, AtlasItem::name, TextureAtlas::name, AtlasItem::width, AtlasItem::x, and AtlasItem::y.
Referenced by loadTextureAtlas().
      
  | 
  staticprivate | 
Definition at line 403 of file atlasmanager.cpp.
References TextureAtlas::atlasImage, FOR_EACH, AtlasItem::height, AtlasItem::image, imageHelper, TextureAtlas::items, ImageHelper::loadSurface(), Logger::log(), logger, AtlasItem::name, TextureAtlas::name, AtlasItem::width, AtlasItem::x, and AtlasItem::y.
Referenced by loadEmptyAtlas().
      
  | 
  staticprivate | 
< Surface is in system memory
Definition at line 314 of file atlasmanager.cpp.
References TextureAtlas::atlasImage, BLOCK_END, BLOCK_START, ImageHelper::copySurfaceToImage(), FOR_EACH, TextureAtlas::height, AtlasItem::image, imageHelper, TextureAtlas::items, ImageHelper::loadSurface(), Logger::log(), logger, MSDL_CreateRGBSurface, MSDL_FreeSurface, AtlasItem::name, powerOfTwo(), reportAlways, TextureAtlas::width, AtlasItem::x, and AtlasItem::y.
Referenced by loadTextureAtlas().
      
  | 
  staticprivate | 
Definition at line 276 of file atlasmanager.cpp.
References BLOCK_END, BLOCK_START, TextureAtlas::items, AtlasItem::name, TextureAtlas::name, AtlasItem::x, and AtlasItem::y.
Referenced by loadEmptyAtlas().
      
  | 
  static | 
Definition at line 497 of file atlasmanager.cpp.
References ResourceManager::addResource(), AtlasResource::atlases, TextureAtlas::atlasImage, FOR_EACH, AtlasItem::image, TextureAtlas::items, AtlasItem::name, and TextureAtlas::name.
Referenced by AtlasResource::incRef().
      
  | 
  static | 
Definition at line 97 of file atlasmanager.cpp.
References AtlasResource::atlases, TextureAtlas::atlasImage, BLOCK_END, convertEmptyAtlas(), emptySort(), FOR_EACH, ParticleType::Image, and loadEmptyImages().
Referenced by EmptyAtlasLoader::load().
      
  | 
  staticprivate | 
Definition at line 178 of file atlasmanager.cpp.
References BLOCK_END, BLOCK_START, FOR_EACH, ResourceManager::getTempResource(), ParticleType::Image, Resource::incRef(), and ResourceManager::moveToDeleted().
Referenced by loadEmptyAtlas().
      
  | 
  staticprivate | 
Definition at line 128 of file atlasmanager.cpp.
References BLOCK_END, BLOCK_START, FOR_EACH, ResourceManager::getTempResource(), Resource::incRef(), ImageHelper::load(), Logger::log(), logger, ResourceManager::moveToDeleted(), VirtFs::rwopsOpenRead(), and surfaceImageHelper.
Referenced by loadTextureAtlas().
      
  | 
  static | 
Definition at line 61 of file atlasmanager.cpp.
References AtlasResource::atlases, TextureAtlas::atlasImage, BLOCK_END, BLOCK_START, convertAtlas(), createSDLAtlas(), FOR_EACH, OpenGLImageHelper::getTextureSize(), loadImages(), settings, simpleSort(), and Settings::textureSize.
Referenced by AtlasLoader::load().
      
  | 
  static | 
Definition at line 523 of file atlasmanager.cpp.
References AtlasResource::atlases, TextureAtlas::atlasImage, FOR_EACH, AtlasItem::image, TextureAtlas::items, and ResourceManager::moveToDeleted().
Referenced by AtlasResource::decRef().
      
  | 
  staticprivate | 
Definition at line 205 of file atlasmanager.cpp.
References BLOCK_END, BLOCK_START, TextureAtlas::height, TextureAtlas::items, AtlasItem::name, TextureAtlas::name, EmoteDB::size(), TextureAtlas::width, x, AtlasItem::x, y, and AtlasItem::y.
Referenced by loadTextureAtlas().