Microsoft DirectX 8.1 (Visual Basic)

D3DX8.CreateSkinMeshFromMesh

Creates a skin mesh from another mesh.

object.CreateSkinMeshFromMesh( _ 
    Mesh As D3DXMesh, _ 
    NumBones As Long) As D3DXSkinMesh

Parts

object
Object expression that resolves to a D3DX8 object.
Mesh
A D3DXMesh object, the mesh from which to create the skin mesh.
NumBones
Number of bones for the skin mesh.

Return Values

D3DXSkinMesh object, representing the created skin mesh object.

Error Codes

If the method fails, an error is raised and Err.Number can be set to E_OUTOFMEMORY.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.