Microsoft DirectX 8.1 (Visual Basic)

D3DX8.CreateSkinMesh

Creates an empty skin mesh object using a declarator.

object.CreateSkinMesh( _ 
    NumFaces As Long, _ 
    NumVertices As Long, _ 
    NumBones As Long, _ 
    Options As Long, _ 
    Declaration As Any, _ 
    D3DDevice As Direct3DDevice8) As D3DXSkinMesh

Parts

object
Object expression that resolves to a D3DX8 object.
NumFaces
Number of faces for the skin mesh.
NumVertices
Number of vertices for the skin mesh.
NumBones
Number of bones for the skin mesh.
Options
A combination of one or more flags defined by the CONST_D3DXMESH enumeration, specifying options for the skin mesh.
Declaration
A Long value, representing the declarator that describes the vertex format for the returned skin mesh.
D3DDevice
A Direct3DDevice8 object, the device object to be associated with the skin mesh.

Return Values

D3DXSkinMesh object, representing the created skin mesh.

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.

Remarks

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