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

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

#include <UrlLoaders.h>

Inheritance diagram for ParaEngine::CUrlLoader:
ParaEngine::IDataLoader

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...
 
- Public Member Functions inherited from ParaEngine::IDataLoader
virtual const char * GetKeyName ()
 get the key name
 

Detailed Description

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.

Constructor & Destructor Documentation

§ CUrlLoader()

ParaEngine::CUrlLoader::CUrlLoader ( )
Parameters
sFileNameif this is "", m_asset->GetLocalFileName() is used.

Member Function Documentation

§ Decompress()

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

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

Implements ParaEngine::IDataLoader.

§ GetEstimatedSizeInBytes()

int ParaEngine::CUrlLoader::GetEstimatedSizeInBytes ( )
virtual

this function is solely used in statistics reporting.

Reimplemented from ParaEngine::IDataLoader.

§ IsDeviceObject()

virtual bool ParaEngine::CUrlLoader::IsDeviceObject ( )
inlinevirtual

default to true.

If not true, Destroy() will be called in the worker thread instead of render thread.

Reimplemented from ParaEngine::IDataLoader.

§ Load()

HRESULT ParaEngine::CUrlLoader::Load ( )
virtual

Load is called from the IO thread to load data.

Load the texture from the packed file.

Implements ParaEngine::IDataLoader.

§ SetEstimatedSizeInBytes()

void ParaEngine::CUrlLoader::SetEstimatedSizeInBytes ( int  nSize)
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.

§ SetUrl()

void ParaEngine::CUrlLoader::SetUrl ( const char *  url)

set url to process.


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