D3DXCreateSkinInfo function
Creates an empty skin mesh object using a declarator.
Syntax
HRESULT D3DXCreateSkinInfo(
_In_ DWORD NumVertices,
_In_ const D3DVERTEXELEMENT9 *pDeclaration,
_In_ DWORD NumBones,
_Out_ LPD3DXSKININFO *ppSkinInfo
);
Parameters
-
NumVertices [in]
-
Type: DWORD
Number of vertices for the skin mesh.
-
pDeclaration [in]
-
Type: const D3DVERTEXELEMENT9*
Array of D3DVERTEXELEMENT9 elements, describing the vertex format for the returned mesh.
-
NumBones [in]
-
Type: DWORD
Number of bones for the skin mesh.
-
ppSkinInfo [out]
-
Type: LPD3DXSKININFO*
Address of a pointer to an ID3DXSkinInfo interface, representing the created skin mesh object.
Return value
Type: HRESULT
If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be: E_OUTOFMEMORY.
Remarks
Use SetBoneInfluence to populate the empty skin mesh object returned by this method.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also