D3DXCreateSkinInfoFromBlendedMesh

Creates a skin mesh from another mesh.

HRESULT D3DXCreateSkinInfoFromBlendedMesh(
  LPD3DXBASEMESH pMesh,
  DWORD NumBones,
  CONST D3DXBONECOMBINATION * pBoneCombinationTable,
  LPD3DXSKININFO * ppSkinInfo
);

Parameters

pMesh
[in] Pointer to an ID3DXBaseMesh object, the mesh from which to create the skin mesh.
NumBones
[in] The length of the array attached to the BoneId. See D3DXBONECOMBINATION.
pBoneCombinationTable
[in] Pointer to an array of bone combinations. See D3DXBONECOMBINATION.
ppSkinInfo
[out, retval] Address of a pointer to an ID3DXSkinInfo 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 the following: E_OUTOFMEMORY.

Requirements

Header: Declared in D3dx9mesh.h.