D3DXCreateSkinInfoFVF

Creates an empty skin mesh object using a flexible vertex format (FVF) code.

HRESULT D3DXCreateSkinInfoFVF(
  DWORD NumVertices,
  DWORD FVF,
  DWORD NumBones,
  LPD3DXSKININFO * ppSkinInfo
);

Parameters

NumVertices
[in] Number of vertices for the skin mesh.
FVF
[in] Combination of D3DFVF that describes the vertex format for the returned skin mesh.
NumBones
[in] Number of bones for the skin mesh.
ppSkinInfo
[out, retval] Address of a pointer to an ID3DXSkinInfo interface, representing the created skin information object.

Return Values

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

Use ID3DXSkinInfo::SetBoneInfluence to populate the empty skin mesh object returned by this method.

Requirements

Header: Declared in D3dx9mesh.h.

See Also

ID3DXSkinInfo::SetBoneInfluence