Microsoft DirectX 8.1 (Visual Basic)

D3DX8.FVFFromDeclarator

Returns a flexible vertex format (FVF) code from a declarator.

object.FVFFromDeclarator( _ 
    Declarator As D3DXDECLARATOR) As Long

Parts

object
Object expression that resolves to a D3DX8 object.
Declarator
A D3DXDECLARATOR type, describing the declarator from which to generate the FVF code.

Return Values

Long value, representing the returned combination of flexible vertex format flags that describes the vertex format returned from the declarator.

Error Codes

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

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

Note  This function fails for any declarator that does not map directly to an FVF.

See Also

D3DX8.DeclaratorFromFVF