Microsoft DirectX 8.1 (C++)

ID3DXSPMesh::ClonePMesh

Clones a progressive mesh using a declarator.

HRESULT ClonePMesh(
  DWORD Options,
  CONST DWORD* pDeclaration,
  LPDIRECT3DDEVICE8 pDevice,
  DWORD* pVertexRemap,
  LPD3DXPMESH* ppCloneMesh
);

Parameters

Options
[in] A combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh. The following flags are defined.
pDeclaration
[in] Pointer to an array of DWORD values, representing the declarator to describe the vertex format of the vertices in the output mesh. This parameter must map directly to an FVF.
pDevice
[in] Pointer to an IDirect3DDevice8 interface, representing the device object associated with the mesh.
pVertexRemap
[in] Pointer to an array containing the index for each vertex.
ppCloneMesh
[out, retval] Address of a pointer to an ID3DXPMesh interface, representing the cloned progressive mesh.

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

D3DERR_INVALIDCALL
D3DXERR_CANNOTATTRSORT
E_OUTOFMEMORY

Requirements

  Header: Declared in D3dx8mesh.h.
  Import Library: Use D3dx8.lib.

See Also

ID3DXSPMesh::GetDeclaration, D3DXDeclaratorFromFVF