Microsoft DirectX 8.1 (C++)

D3DXFVFFromDeclarator

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

HRESULT D3DXFVFFromDeclarator(
  CONST DWORD* pDeclarator,
  DWORD* pFVF
);

Parameters

pDeclarator
[in] Pointer to a DWORD value, representing the declarator from which to generate the FVF code.
pFVF
[out] Pointer to a DWORD value, representing the returned combination of Flexible Vertex Format Flags that describes the vertex format returned from the declarator.

Return Values

If the function succeeds, the return value is D3D_OK.

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

Note  This function will fail for any declarator that doesn't map directly to an FVF.

Requirements

  Header: Declared in D3dx8mesh.h.
  Import Library: Use D3dx8.lib.

See Also

D3DXDeclaratorFromFVF