ID3DX10Mesh::CloneMesh method

Creates a new mesh and fills it with the data of a previously loaded mesh.

Syntax

HRESULT CloneMesh(
  [in]        UINT                     Flags,
  [in]        LPCSTR                   pPosSemantic,
  [in]  const D3D10_INPUT_ELEMENT_DESC *pDesc,
  [in]        UINT                     DeclCount,
  [out]       ID3DX10Mesh              **ppCloneMesh
);

Parameters

Flags [in]

Type: UINT

Creation flags to be applied to the new mesh. See D3DX10_MESH.

pPosSemantic [in]

Type: LPCSTR

The semantic name for the position data.

pDesc [in]

Type: const D3D10_INPUT_ELEMENT_DESC*

Array of D3D10_INPUT_ELEMENT_DESC structures, describing the vertex format for the returned mesh. See D3D10_INPUT_ELEMENT_DESC.

DeclCount [in]

Type: UINT

The number of elements in the pDesc array.

ppCloneMesh [out]

Type: ID3DX10Mesh**

The new mesh.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Mesh

D3DX Interfaces