Microsoft DirectX 8.1 (C++)

ID3DXBaseMesh::CloneMeshFVF

Clones a mesh using a flexible vertex format (FVF) code.

HRESULT CloneMeshFVF(
  DWORD Options,
  DWORD FVF,
  LPDIRECT3DDEVICE8 pD3DDevice,
  LPD3DXMESH* ppCloneMesh
);

Parameters

Options
[in] A combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh.
FVF
[in] Combination of Flexible Vertex Format Flags that specifies the vertex format for the vertices in the output mesh.
pD3DDevice
[in] Pointer to a IDirect3DDevice8 interface representing the device object associated with the mesh.
ppCloneMesh
[out, retval] Address of a pointer to an ID3DXMesh interface, representing the cloned 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
E_OUTOFMEMORY

Applies To

This method applies to the following interfaces, which inherit from ID3DXBaseMesh.

Remarks

CloneMeshFVF can be used to convert a mesh from one FVF to another.

Requirements

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

See Also

ID3DXBaseMesh::GetFVF, D3DXFVFFromDeclarator