NOTE: The ID3DXPMesh and ID3DXSPMesh interfaces are now obsolete and will be removed in a future release.
Modifies the minimum and maximum level of detail (LOD) of an ID3DXPMesh object.
HRESULT TrimByFaces( DWORD NewFacesMin, DWORD NewFacesMax, DWORD * rgiFaceRemap, DWORD * rgiVertRemap );
- [in] New minimum number of faces. This parameter must be between current minimum and maximum number of faces.
- [in] New maximum number of faces. This parameter must be between current minimum and maximum number of faces.
- [out] Returns one DWORD per face that contains face remap information.
- [out] Returns one DWORD per vertex that contians vertex remap information.
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
Header: Declared in D3DX9Mesh.h.
Library: Use D3dx9.lib.