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 fcn::Image * load(const std::string &filename, bool convertToDisplayFormat=true)
virtual ImagePtr get(const std::string &name)
Gets a shared pointer to the Image.
virtual void remove(ImagePtr &resource)
Removes an Image from the manager.
static const uint32_t ATLAS_SIZE
static ImageManager * instance()
bool isImageCompressingEnabled() const
virtual ~GuiImageLoader()
uint32_t getHeight() const
virtual void useSharedImage(const ImagePtr &shared, const Rect ®ion)=0
After this call all image data will be taken from the given image and its subregion.
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.
uint32_t getWidth() const