|
My Project
|
CMeshLoader implementation of IDataLoader it will first search locally. More...
#include <ContentLoaderMesh.h>
Public Member Functions | |
| CMeshLoader (asset_ptr< MeshEntity > &pAsset, const char *sFileName=NULL) | |
| HRESULT | CleanUp () |
| clean up everything | |
| const char * | GetFileName () |
| get file 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 const char * | GetKeyName () |
| get the key name | |
| 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... | |
Friends | |
| struct | MeshEntity |
CMeshLoader 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::CMeshLoader::CMeshLoader | ( | asset_ptr< MeshEntity > & | 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.
Implements ParaEngine::IDataLoader.
1.8.12