My Project
Public Member Functions | Friends | List of all members
ParaEngine::CMeshLoader Class Reference

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

#include <ContentLoaderMesh.h>

Inheritance diagram for ParaEngine::CMeshLoader:
ParaEngine::IDataLoader

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
 

Detailed Description

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.

Constructor & Destructor Documentation

§ CMeshLoader()

ParaEngine::CMeshLoader::CMeshLoader ( asset_ptr< MeshEntity > &  pAsset,
const char *  sFileName = NULL 
)
Parameters
sFileNameif this is "", m_asset->GetLocalFileName() is used.

Member Function Documentation

§ Decompress()

HRESULT ParaEngine::CMeshLoader::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::CMeshLoader::Destroy ( )
virtual

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

Implements ParaEngine::IDataLoader.

§ Load()

HRESULT ParaEngine::CMeshLoader::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: