|  | 
| static std::shared_ptr< TextureData > | getTexture (Texture &texture, const String &filename, bool smooth) | 
|  | Loads a texture.  More... 
 | 
|  | 
| static void | copyTexture (std::shared_ptr< TextureData > textureDataToCopy) | 
|  | Shares the image with another texture.  More... 
 | 
|  | 
| static void | removeTexture (std::shared_ptr< TextureData > textureDataToRemove) | 
|  | Removes the texture.  More... 
 | 
|  | 
| static std::size_t | getCachedImagesCount () | 
|  | 
|  | 
| static std::map< String, std::list< TextureDataHolder > > | m_imageMap | 
|  | 
◆ copyTexture()
  
  | 
        
          | static void tgui::TextureManager::copyTexture | ( | std::shared_ptr< TextureData > | textureDataToCopy | ) |  |  | static | 
 
Shares the image with another texture. 
- Parameters
- 
  
    | textureDataToCopy | The original texture data that will now be reused |  
 
 
 
◆ getTexture()
  
  | 
        
          | static std::shared_ptr< TextureData > tgui::TextureManager::getTexture | ( | Texture & | texture, |  
          |  |  | const String & | filename, |  
          |  |  | bool | smooth |  
          |  | ) |  |  |  | static | 
 
Loads a texture. 
- Parameters
- 
  
    | texture | The texture object to store the loaded image |  | filename | Filename of the image to load |  | smooth | Enable smoothing on the texture |  
 
The second time you call this function with the same filename, the previously loaded image will be reused.
- Returns
- Texture data when loaded successfully, nullptr otherwise 
 
 
◆ removeTexture()
  
  | 
        
          | static void tgui::TextureManager::removeTexture | ( | std::shared_ptr< TextureData > | textureDataToRemove | ) |  |  | static | 
 
Removes the texture. 
- Parameters
- 
  
    | textureDataToRemove | The texture data that should be removed |  
 
When no other texture is using the same image then the image will be removed from memory. 
 
 
The documentation for this class was generated from the following file: