Microsoft DirectX 8.1 (C++)

ID3DXSkinMesh::GetMaxVertexInfluences

Returns the maximum number of vertex influences.

HRESULT GetMaxVertexInfluences(
  DWORD* maxVertexInfluences
);

Parameters

maxVertexInfluences
[out, retval] Maximum number of influences affecting any single vertex in the skin mesh.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

Each vertex can be affected by n bones. If this method returns a value of 17, up to 17 bones affect a single vertex of the skin mesh. So, there are 17 separate weights on that vertex which add up to 1.

Requirements

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