Microsoft DirectX 8.1 (Visual Basic)

D3DX8.CreateMeshFVF

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

object.CreateMeshFVF( _ 
    NumFaces As Long, _ 
    NumVertices As Long, _ 
    Options As Long, _ 
    FVF As Long, _ 
    Device As Direct3DDevice8) As D3DXMesh

Parts

object
Object expression that resolves to a D3DX8 object.
NumFaces
Number of faces for the mesh. This parameter must be greater than 0.
NumVertices
Number of vertices for the mesh. This parameter must be greater than 0.
Options
A combination of one or more flags defined by the CONST_D3DXMESH enumeration, specifying options for the mesh.
FVF
Combination of flexible vertex format flags that describes the vertex format for the returned mesh.
Device
Direct3DDevice8 object, the device to be associated with the mesh.

Return Values

D3DXMesh object representing the created mesh.

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.

See Also

D3DX8.FVFFromDeclarator