ID3DXPMesh::OptimizeBaseLOD

Bb174109.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174109.XDK_CHM_BANNER_right(en-us,VS.85).jpg

NOTE: The ID3DXPMesh and ID3DXSPMesh interfaces are now obsolete and will be removed in a future release.

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.

Library: Use D3dx9.lib.

See Also

ID3DXBaseMesh::GenerateAdjacency, ID3DXPMesh::Optimize

Show: