3 #include "MeshEntity.h" 5 #include "IDataLoader.h" 22 asset_ptr<MeshEntity> m_asset;
24 std::string m_sFileName;
30 CMeshLoader(asset_ptr<MeshEntity>& pAsset,
const char* sFileName = NULL);
41 HRESULT
Decompress(
void** ppData,
int* pcBytes);
57 asset_ptr<MeshEntity> m_asset;
66 std::vector<MeshLOD> m_MeshLODs;
72 int m_nTechniqueHandle;
83 bool CreateMeshLODLevel(
float fromDepth,
const string& sFilename);
96 HRESULT LockDeviceObject();
97 HRESULT UnLockDeviceObject();
99 HRESULT Process(
void* pData,
int cBytes);
100 HRESULT CopyToResource();
101 void SetResourceError();
HRESULT Load()
Load is called from the IO thread to load data.
Definition: ContentLoaderMesh.cpp:60
CMeshProcessor implementation of IDataProcessor.
Definition: ContentLoaderMesh.h:51
HRESULT CleanUp()
clean up everything
Definition: ContentLoaderMesh.cpp:49
light-weighted file record header in memory.
Definition: AssetManifest.h:10
different physics engine has different winding order.
Definition: EventBinding.h:32
CMeshLoader implementation of IDataLoader it will first search locally.
Definition: ContentLoaderMesh.h:16
a very thin wrapper to DirectX device with a portable version of openGL implementation.
Definition: RenderDeviceDirectX.h:10
CMeshLoader(asset_ptr< MeshEntity > &pAsset, const char *sFileName=NULL)
Definition: ContentLoaderMesh.cpp:19
AABB-related code.
Definition: ShapeAABB.h:11
IDataProcessor is an interface that the AsyncLoader class uses to process and copy data into locked r...
Definition: IDataLoader.h:76
HRESULT Destroy()
Destroy is called by the graphics thread when it has consumed the data.
Definition: ContentLoaderMesh.cpp:54
const char * GetFileName()
get file name
Definition: ContentLoaderMesh.cpp:31
IDataLoader is an interface that the AsyncLoader class uses to load data from disk.
Definition: IDataLoader.h:14
MeshEntity distinguish one template from other.
Definition: MeshEntity.h:38
HRESULT Decompress(void **ppData, int *pcBytes)
Decompress is called by one of the processing threads to decompress the data.
Definition: ContentLoaderMesh.cpp:44
a list of CParameter{name, value} pairs of anything.
Definition: ParameterBlock.h:108