Microsoft DirectX 8.1 (C++)

D3DXCreateSkinMesh

Creates an empty skin mesh object using a declarator.

HRESULT D3DXCreateSkinMesh(
  DWORD numFaces,
  DWORD numVertices,
  DWORD numBones,
  DWORD Options,
  CONST DWORD* pDeclaration,
  LPDIRECT3DDEVICE8 pDevice,
  LPD3DXSKINMESH* ppSkinMesh
);

Parameters

numFaces
[in] Number of faces for the skin mesh.
numVertices
[in] Number of vertices for the skin mesh.
numBones
[in] Number of bones for the skin mesh.
Options
[in] A combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh.
pDeclaration
[in] Pointer to a DWORD value, representing the declarator that describes the vertex format for the returned skin mesh.
pDevice
[in] Pointer to an IDirect3DDevice8 interface, the device object to be associated with 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.

Remarks

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

Requirements

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

See Also

ID3DXSkinMesh::SetBoneInfluence