IDirect3DRMProgressiveMesh::GetDetail
Returns the current detail level of the progressive mesh normalized between 0.0 and 1.0.
HRESULT GetDetail(
LPD3DVALUE lpdvVal
)
Parameters
lpdvVal
Address of a D3DVALUE that will be filled with the current detail level of the progressive mesh.
Return Values
Returns DD_OK if successful, or one of the following errors:
D3DRMERR_CONNECTIONLOST
D3DRMERR_INVALIDDATA
D3DRMERR_INVALIDOBJECT
D3DRMERR_INVALIDPARAMS
D3DRMERR_PENDING
Remarks
If the base mesh has not yet downloaded then this method will return D3DRMERR_PENDING. If a requested level of detail has been set, the return value will increase on each subsequent call until the requested level has been met. If no level has been requested, then the detail will increase until all vertex splits have been downloaded.
The normalized value 0.0 represents the minimum number of vertices (the number of vertices in the base mesh), and the normalized value 1.0 represents the maximum number of vertices.