Export (0) Print
Expand All

ID3DXPMesh::GetAdjacency

Bb174103.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174103.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::GetAdjacency

Returns the face adjacency array of the mesh.

HRESULT GetAdjacency(
  DWORD * pAdjacency
);

Parameters

pAdjacency
[out] Pointer to the returned face adjacency array of the mesh. The face adjacency is stored as an array of arrays. The innermost array is three indices of adjacent triangles, and the outer array is one set of face adjacency per triangle in the mesh. If the edge has no adjacent faces, the value is 0xffffffff. The size of the adjacency array is the maximum number of faces multiplied by 3.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be: D3DERR_INVALIDCALL.

Requirements

Header: Declared in D3DX9Mesh.h.

Library: Use D3dx9.lib.

See Also

ID3DXPMesh::GetMaxFaces

Show:
© 2014 Microsoft