xbmc
Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | List of all members
CGUITextureManager Class Reference
Collaboration diagram for CGUITextureManager:
Collaboration graph
[legend]

Public Member Functions

bool HasTexture (const std::string &textureName, std::string *path=NULL, int *bundle=NULL, int *size=NULL)
 
const CTextureArrayLoad (const std::string &strTextureName, bool checkBundleOnly=false)
 
void ReleaseTexture (const std::string &strTextureName, bool immediately=false)
 
void Cleanup ()
 
void Dump () const
 
uint32_t GetMemoryUsage () const
 
void Flush ()
 
std::string GetTexturePath (const std::string &textureName, bool directory=false)
 
std::vector< std::string > GetBundledTexturesFromPath (const std::string &texturePath)
 
void AddTexturePath (const std::string &texturePath)
 Add a new path to the paths to check when loading media.
 
void SetTexturePath (const std::string &texturePath)
 Set a single path as the path to check when loading media (clear then add)
 
void RemoveTexturePath (const std::string &texturePath)
 Remove a path from the paths to check when loading media.
 
void FreeUnusedTextures (unsigned int timeDelay=0)
 Free textures (called from app thread only)
 
void ReleaseHwTexture (unsigned int texture)
 

Static Public Member Functions

static bool CanLoad (const std::string &texturePath)
 Returns true if the texture manager can load this texture.
 

Protected Types

typedef std::vector< CTextureMap * >::iterator ivecTextures
 

Protected Attributes

std::vector< CTextureMap * > m_vecTextures
 
std::list< std::pair< CTextureMap *, std::chrono::time_point< std::chrono::steady_clock > > > m_unusedTextures
 
std::vector< unsigned int > m_unusedHwTextures
 
CTextureBundle m_TexBundle [2]
 
std::vector< std::string > m_texturePaths
 
CCriticalSection m_section
 

The documentation for this class was generated from the following files: