Microsoft DirectX 8.1 (Visual Basic)

D3DX8.CreateSkinMeshFVF

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

object.CreateSkinMeshFVF( _ 
    NumFaces As Long, _ 
    NumVertices As Long, _ 
    NumBones As Long, _ 
    Options As Long, _ 
    FVF As Long, _ 
    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 members of the CONST_D3DXMESH enumerated type, specifying options for the skin mesh.
FVF
Combination of flexible vertex format flags 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 object.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
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.