Microsoft DirectX 8.1 (C++)

D3DXDeclaratorFromFVF

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

HRESULT D3DXDeclaratorFromFVF(
  DWORD FVF,
  DWORD Declaration[MAX_FVF_DECL_SIZE]
);

Parameters

FVF
[in] Combination of Flexible Vertex Format Flags that describes the FVF from which to generate the returned declarator array.
Declaration
[out] A returned array describing the vertex format of the vertices in the queried mesh. The upper limit of this declarator array is MAX_FVF_DECL_SIZE, limiting the declarator to a maximum of 20 DWORDs.

Return Values

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one D3DXERR_INVALIDMESH.

Requirements

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

See Also'

D3DXFVFFromDeclarator