ID3DXPRTEngine::GetAdaptedMesh
Returns a mesh with modifications resulting from adaptive spatial sampling. The returned mesh contains only positions, normals, and texture coordinates (if defined).
HRESULT GetAdaptedMesh(
LPDIRECT3DDEVICE9 pDevice,
UINT * pFaceRemap,
UINT * pVertRemap,
FLOAT * pfVertWeights,
LPD3DXMESH * ppMesh
);
Parameters
- pDevice
- [in] Pointer to an IDirect3DDevice9 device that is used to create the output mesh.
- pFaceRemap
- [in, out] Pointer to the original mesh face that was split to generate the current face.
- pVertRemap
- [in, out] Pointer to a destination array containing the three original mesh vertices that are the parents of the current vertex.
- pfVertWeights
- [in, out] Pointer to a destination array containing blending factors for the pVertRemap vertices.
- ppMesh
- [out] Pointer to the output ID3DXMesh mesh object.
Return Values
If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.
D3DERR_INVALIDCALL
Remarks
pVertRemap and pfVertWeights can be used to interpolate any per-vertex value over the mesh.
Requirements
Header: Declared in D3dx9mesh.h.