Microsoft DirectX 8.1 (Visual Basic)

D3DXSPMesh.ClonePMeshFVF

Clones a progressive mesh using a flexible vertex format (FVF) code.

object.ClonePMeshFVF( _ 
    Options As Long, _ 
    FVF As Long, _ 
    Device As Direct3DDevice8, _ 
    VertexRemapOut As Any) As D3DXPMesh

Parts

object
Object expression that resolves to a D3DXSPMesh object.
Options
A combination of one or more flags defined by the CONST_D3DXMESH enumeration, specifying creation options for the mesh.
FVF
Combination of flexible vertex format flags that specifies the vertex format for the vertices in the output mesh.
Device
Direct3DDevice8 object representing the device object associated with the mesh.
VertexRemapOut
First element of an array containing the index for each vertex.

Return Values

D3DXPMesh object, representing the cloned progressive 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
D3DERR_OUTOFVIDEOMEMORY

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

Remarks

ClonePMeshFVF can be used to convert a progressive mesh from one FVF to another.

See Also

D3DX8.FVFFromDeclarator, D3DXSPMesh.GetFVF