IDirect3DRMProgressiveMesh::CreateMesh

Builds a mesh from the current level of detail.


HRESULT CreateMesh(
LPDIRECT3DRMMESH* lplpD3DRMMesh
)

Parameters

lplpD3DRMMesh

Address of a Direct3DRMMesh pointer that will be filled in with a pointer to the newly generated Direct3DRMMesh object.

Return Values

Returns DD_OK if successful, or one of the following errors:

D3DRMERR_CONNECTIONLOST

D3DRMERR_INVALIDDATA

D3DRMERR_INVALIDOBJECT

D3DRMERR_INVALIDPARAMS

D3DRMERR_NOTENOUGHDATA

Remarks

If the application has requested a level of detail that is not yet available, or the base mesh is not yet available, this method returns the error D3DRMERR_NOTENOUGHDATA.