Microsoft DirectX 8.1 (C++)

D3DXCreateSkinMeshFromMesh

Creates a skin mesh from another mesh.

HRESULT D3DXCreateSkinMeshFromMesh(
  LPD3DXMESH pMesh,
  DWORD numBones,
  LPD3DXSKINMESH* ppSkinMesh
);

Parameters

pMesh
[in] Pointer to an ID3DXMesh object, the mesh from which to create the skin mesh.
numBones
[in] Number of bones for the skin mesh.
ppSkinMesh
[out, retval] Address of a pointer to an ID3DXSkinMesh interface, representing the created skin mesh object.

Return Values

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be E_OUTOFMEMORY.

Requirements

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