2 #include "IDataLoader.h" 19 asset_ptr<ParaXEntity> m_asset;
21 std::string m_sFileName;
27 CParaXLoader(asset_ptr<ParaXEntity>& pAsset,
const char* sFileName = NULL);
37 HRESULT
Decompress(
void** ppData,
int* pcBytes);
60 HRESULT LockDeviceObject();
61 HRESULT UnLockDeviceObject();
63 HRESULT Process(
void* pData,
int cBytes);
64 HRESULT CopyToResource();
65 void SetResourceError();
68 bool CreateMeshLODLevel(
float fromDepth,
const std::string& sFilename);
74 asset_ptr<ParaXEntity> m_asset;
83 std::vector<MeshLOD> m_MeshLODs;
87 int m_nTechniqueHandle;
HRESULT Load()
Load is called from the IO thread to load data.
Definition: ContentLoaderParaX.cpp:75
HRESULT Destroy()
Destroy is called by the graphics thread when it has consumed the data.
Definition: ContentLoaderParaX.cpp:69
CParaXLoader implementation of IDataLoader it will first search locally.
Definition: ContentLoaderParaX.h:13
light-weighted file record header in memory.
Definition: AssetManifest.h:10
different physics engine has different winding order.
Definition: EventBinding.h:32
CParaXLoader(asset_ptr< ParaXEntity > &pAsset, const char *sFileName=NULL)
Definition: ContentLoaderParaX.cpp:34
a very thin wrapper to DirectX device with a portable version of openGL implementation.
Definition: RenderDeviceDirectX.h:10
const char * GetFileName()
get file name
Definition: ContentLoaderParaX.cpp:46
Definition: ParaXEntity.h:9
IDataProcessor is an interface that the AsyncLoader class uses to process and copy data into locked r...
Definition: IDataLoader.h:76
IDataLoader is an interface that the AsyncLoader class uses to load data from disk.
Definition: IDataLoader.h:14
CParaXProcessor implementation of IDataProcessor.
Definition: ContentLoaderParaX.h:47
HRESULT CleanUp()
clean up everything
Definition: ContentLoaderParaX.cpp:63
HRESULT Decompress(void **ppData, int *pcBytes)
Decompress is called by one of the processing threads to decompress the data.
Definition: ContentLoaderParaX.cpp:59