D3DXDeclaratorFromFVF function

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

Syntax


HRESULT D3DXDeclaratorFromFVF(
  _In_    DWORD             FVF,
  _Inout_ D3DVERTEXELEMENT9 Declaration
);

Parameters

FVF [in]

Type: DWORD

Combination of D3DFVF that describes the FVF from which to generate the returned declarator array.

Declaration [in, out]

Type: D3DVERTEXELEMENT9

An array of D3DVERTEXELEMENT9 elements describing the vertex format of the mesh vertices. The upper limit of this declarator array is MAX_FVF_DECL_SIZE.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DXERR_INVALIDMESH.

Requirements

Header

D3DX9Mesh.h

Library

D3dx9.lib

See also

Mesh Functions
D3DXFVFFromDeclarator

 

 

Show: