CTextureManagerImpl::CTextureManagerImpl |
( |
PIVFS |
vfs, |
|
|
bool |
highQuality, |
|
|
bool |
disableGL |
|
) |
| |
|
inline |
CTextureManagerImpl::~CTextureManagerImpl |
( |
| ) |
|
|
inline |
void CTextureManagerImpl::ConvertTexture |
( |
const CTexturePtr & |
texture | ) |
|
|
inline |
Initiates an asynchronous conversion process, from the texture's source file to the corresponding loose cache file.
bool CTextureManagerImpl::GenerateCachedTexture |
( |
const VfsPath & |
sourcePath, |
|
|
VfsPath & |
archiveCachePath |
|
) |
| |
|
inline |
size_t CTextureManagerImpl::GetBytesUploaded |
( |
| ) |
const |
|
inline |
Compute the conversion settings that apply to a given texture, by combining the textures.xml files from its directory and all parent directories (up to the VFS root).
Return the (cached) settings file with the given filename, or NULL if it doesn't exist.
void CTextureManagerImpl::LoadTexture |
( |
const CTexturePtr & |
texture, |
|
|
const VfsPath & |
path |
|
) |
| |
|
inline |
Load the given file into the texture object and upload it to OpenGL.
Assumes the file already exists.
bool CTextureManagerImpl::MakeProgress |
( |
| ) |
|
|
inline |
void CTextureManagerImpl::PrepareCacheKey |
( |
const CTexturePtr & |
texture, |
|
|
MD5 & |
hash, |
|
|
u32 & |
version |
|
) |
| |
|
inline |
Set up some parameters for the loose cache filename code.
Status CTextureManagerImpl::ReloadChangedFile |
( |
const VfsPath & |
path | ) |
|
|
inline |
static Status CTextureManagerImpl::ReloadChangedFileCB |
( |
void * |
param, |
|
|
const VfsPath & |
path |
|
) |
| |
|
inlinestatic |
bool CTextureManagerImpl::TryLoadingCached |
( |
const CTexturePtr & |
texture | ) |
|
|
inline |
Attempts to load a cached version of a texture.
If the texture is loaded (or there was an error), returns true. Otherwise, returns false to indicate the caller should generate the cached version.
Handle CTextureManagerImpl::m_DefaultHandle |
|
private |
bool CTextureManagerImpl::m_DisableGL |
|
private |
Handle CTextureManagerImpl::m_ErrorHandle |
|
private |
PIVFS CTextureManagerImpl::m_VFS |
|
private |
The documentation for this class was generated from the following file: