My Project
Public Member Functions | Protected Member Functions | List of all members
ParaEngine::CCCSSkinLoader Class Reference

CCCSSkinLoader implementation of IDataLoader it will first search locally. More...

#include <ContentLoaderCCSSkin.h>

Inheritance diagram for ParaEngine::CCCSSkinLoader:
ParaEngine::IDataLoader

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...
 
- 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...
 

Protected Member Functions

HRESULT ComposeWithGDIPlus ()
 compose with Windows' GDIPlus engine. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ CCCSSkinLoader()

ParaEngine::CCCSSkinLoader::CCCSSkinLoader ( CharModelInstance pCharModelInstance,
CharTexture charTexture,
const char *  sFileName 
)
Parameters
sFileNameif this is "", m_asset->GetLocalFileName() is used.

Member Function Documentation

§ ComposeWithGDIPlus()

HRESULT ParaEngine::CCCSSkinLoader::ComposeWithGDIPlus ( )
protected

compose with Windows' GDIPlus engine.

It is slow but can run in IO thread. not a cross platform solution.

§ Decompress()

HRESULT ParaEngine::CCCSSkinLoader::Decompress ( void **  ppData,
int *  pcBytes 
)
virtual

Decompress is called by one of the processing threads to decompress the data.

Implements ParaEngine::IDataLoader.

§ Destroy()

HRESULT ParaEngine::CCCSSkinLoader::Destroy ( )
virtual

Destroy is called by the graphics thread when it has consumed the data.

Implements ParaEngine::IDataLoader.

§ Load()

HRESULT ParaEngine::CCCSSkinLoader::Load ( )
virtual

Load is called from the IO thread to load data.

Implements ParaEngine::IDataLoader.


The documentation for this class was generated from the following files: