My Project
|
CTextureLoader implementation of IDataLoader it will first search locally. More...
#include <UrlLoaders.h>
Public Member Functions | |
CUrlLoader () | |
CUrlLoader (const string &url) | |
void | CleanUp () |
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... | |
const char * | GetFileName () |
get file name | |
void | SetUrl (const char *url) |
set url to process. More... | |
virtual HRESULT | Decompress (void **ppData, int *pcBytes) |
Decompress is called by one of the processing threads to decompress the data. More... | |
virtual HRESULT | Destroy () |
Destroy is called by the graphics thread when it has consumed the data. More... | |
virtual HRESULT | Load () |
Load is called from the IO thread to load data. More... | |
virtual bool | IsDeviceObject () |
default to true. More... | |
![]() | |
virtual const char * | GetKeyName () |
get the key name | |
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::CUrlLoader::CUrlLoader | ( | ) |
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 |
this function is solely used in statistics reporting.
Reimplemented from ParaEngine::IDataLoader.
|
inlinevirtual |
default to true.
If not true, Destroy() will be called in the worker thread instead of render thread.
Reimplemented from ParaEngine::IDataLoader.
|
virtual |
Load is called from the IO thread to load data.
Load the texture from the packed file.
Implements ParaEngine::IDataLoader.
|
virtual |
this function is solely used in statistics reporting.
can only be called once immediately after a data loader is constructed.
Reimplemented from ParaEngine::IDataLoader.
void ParaEngine::CUrlLoader::SetUrl | ( | const char * | url | ) |
set url to process.