Microsoft DirectX 8.1 (C++)

D3DXCreateSkinMeshFVF

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

HRESULT D3DXCreateSkinMeshFVF(
  DWORD numFaces,
  DWORD numVertices,
  DWORD numBones,
  DWORD Options,
  DWORD FVF,
  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.
FVF
[in] Combination of Flexible Vertex Format Flags 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 one of the following values.

D3DERR_INVALIDCALL
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