NOTE: The ID3DXPMesh and ID3DXSPMesh interfaces are now obsolete and will be removed in a future release.
Optimizes the base level of detail (LOD) part of an ID3DXPMesh object.
HRESULT OptimizeBaseLOD( DWORD Flags, DWORD * pFaceRemap );
- [in] Combination of one or more flags from the D3DXMESHOPT enumeration that specifies the type of optimization to perform.
- [in] An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the optimized mesh. If the value supplied for this argument is NULL, face remap data is not returned.
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.
After an application generates adjacency information for a mesh, the mesh data can be optimized (reordered) for better drawing performance. This method determines which patches are adjacent (within the provided tolerance).
Header: Declared in D3DX9Mesh.h.
Library: Use D3dx9.lib.