ID3DXPMesh::OptimizeBaseLOD

Optimizes the base level of detail (LOD) part of an ID3DXPMesh object.

HRESULT OptimizeBaseLOD(
  DWORD Flags,
  DWORD * pFaceRemap
);

Parameters

Flags
[in] Combination of one or more flags from the D3DXMESHOPT enumeration that specifies the type of optimization to perform.
pFaceRemap
[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.

Return Values

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.

Remarks

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).

Requirements

Header: Declared in D3dx9mesh.h.

See Also

ID3DXBaseMesh::GenerateAdjacency, ID3DXPMesh::Optimize