My Project
|
CCCSSkinLoader implementation of IDataLoader it will first search locally. More...
#include <ContentLoaderCCSSkin.h>
Public Member Functions | |
CCCSSkinLoader (CharModelInstance *pCharModelInstance, CharTexture &charTexture, const char *sFileName) | |
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... | |
![]() | |
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... | |
Protected Member Functions | |
HRESULT | ComposeWithGDIPlus () |
compose with Windows' GDIPlus engine. More... | |
CCCSSkinLoader 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::CCCSSkinLoader::CCCSSkinLoader | ( | CharModelInstance * | pCharModelInstance, |
CharTexture & | charTexture, | ||
const char * | sFileName | ||
) |
sFileName | if this is "", m_asset->GetLocalFileName() is used. |
|
protected |
compose with Windows' GDIPlus engine.
It is slow but can run in IO thread. not a cross platform solution.
|
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.