51 if(imgManager->
exists(filename)) {
80 imgManager->
remove(tmpimg);
virtual ImagePtr create(IResourceLoader *loader=0)
Creates a blank Image but does not load it immediately.
AtlasBlock * getBlock(uint32_t width, uint32_t height)
Abstract interface for all the renderbackends.
virtual ImagePtr loadBlank(uint32_t width, uint32_t height)
Loads a blank resource.
virtual bool exists(const std::string &name)
Checks to see if an Image exists.
virtual ImagePtr get(const std::string &name)
Gets a shared pointer to the Image.
uint32_t getWidth() const
virtual void remove(ImagePtr &resource)
Removes an Image from the manager.
static const uint32_t ATLAS_SIZE
virtual gcn::Image * load(const std::string &filename, bool convertToDisplayFormat=true)
uint32_t getHeight() const
static ImageManager * instance()
virtual ~GuiImageLoader()
shared pointer implementation to provide automatic reference counting and deletion when last referenc...
bool isImageCompressingEnabled() const
std::vector< ImagePtr > m_atlases
void setImageCompressingEnabled(bool enabled)
Enables or disable compressing images by video driver.
virtual ImagePtr load(const std::string &name, IResourceLoader *loader=0)
Creates a blank resource and loads it from disk.