?/TD>
Microsoft DirectX 9.0

D3DXFVFFromDeclarator Function


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

Syntax

HRESULT D3DXFVFFromDeclarator(      

    CONST LPD3DVERTEXELEMENT9 *pDeclaration,     DWORD *pFVF );

Parameters

pDeclaration
[in] Array of D3DVERTEXELEMENT9 elements, describing the FVF code.
pFVF
[out] Pointer to a DWORD value, representing the returned combination of D3DFVF that describes the vertex format returned from the declarator.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be D3DERR_INVALIDCALL.



Remarks

This function will fail for any declarator that does not map directly to an FVF.

Function Information

Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXDeclaratorFromFVF


© 2002 Microsoft Corporation. All rights reserved.