|
My Project
|
CTextureLoader implementation of IDataLoader it will first search locally. More...
#include <ContentLoaderTexture.h>
Public Member Functions | |
| CTextureLoader (asset_ptr< TextureEntity > &pAsset, const char *sFileName=NULL) | |
| HRESULT | CleanUp () |
| clean up everything | |
| const char * | GetFileName () |
| get file name | |
| const char * | GetKeyName () |
| get key name | |
| HRESULT | Decompress (void **ppData, int *pcBytes) |
| Decompress is called by one of the processing threads to decompress the data. More... | |
| HRESULT | Destroy () |
| Destroy is called by the graphics thread when it has consumed the data. More... | |
| HRESULT | Load () |
| Load is called from the IO thread to load data. More... | |
Public Member Functions inherited from ParaEngine::IDataLoader | |
| virtual void | SetEstimatedSizeInBytes (int nSize) |
| this function is solely used in statistics reporting. More... | |
| virtual int | GetEstimatedSizeInBytes () |
| this function is solely used in statistics reporting. More... | |
| virtual bool | IsDeviceObject () |
| default to true. More... | |
Public Attributes | |
| asset_ptr< TextureEntity > | m_asset |
| the asset file that this texture loader will update to | |
| std::string | m_sFileName |
| void ** | m_ppTexture |
| if this is NULL, the m_asset->m_pTexture is sued. | |
| D3DFORMAT | m_dwTextureFormat |
| the format of the texture, default to D3DFMT_UNKNOWN | |
| UINT | m_nMipLevels |
| Mip levels, default to D3DX_DEFAULT. | |
| Color | m_dwColorKey |
| char * | m_pData |
| int | m_cBytes |
| CParaFile | m_file |
| AssetFileEntry * | m_pAssetFileEntry |
| the loader failed because the asset file the following file needs to be downloaded from the asset web server. More... | |
Friends | |
| struct | TextureEntity |
CTextureLoader implementation of IDataLoader it will first search locally.
If not found or version expired (as indicated in the assets_manifest file), we will download from the asset update server.
| ParaEngine::CTextureLoader::CTextureLoader | ( | asset_ptr< TextureEntity > & | pAsset, |
| const char * | sFileName = NULL |
||
| ) |
| sFileName | if this is "", m_asset->GetLocalFileName() is used. |
|
virtual |
Decompress is called by one of the processing threads to decompress the data.
Implements ParaEngine::IDataLoader.
|
virtual |
Destroy is called by the graphics thread when it has consumed the data.
Implements ParaEngine::IDataLoader.
|
virtual |
Load is called from the IO thread to load data.
Load the texture from the packed file.
Implements ParaEngine::IDataLoader.
| AssetFileEntry* ParaEngine::CTextureLoader::m_pAssetFileEntry |
the loader failed because the asset file the following file needs to be downloaded from the asset web server.
1.8.12