D3DXCreateMeshFVF
Creates a mesh object using a flexible vertex format (FVF) code.
HRESULT D3DXCreateMeshFVF(
DWORD NumFaces,
DWORD NumVertices,
DWORD Options,
DWORD FVF,
LPDIRECT3DDEVICE8 pDevice,
LPD3DXMESH* ppMesh
);
Parameters
- NumFaces
- [in] Number of faces for the mesh. This parameter must be greater than 0.
- NumVertices
- [in] Number of vertices for the mesh. This parameter must be greater than 0.
- Options
- [in] A combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh. The following flags are defined.
- FVF
- [in] Combination of Flexible Vertex Format Flags that describes the vertex format for the returned mesh.
- pDevice
- [in] Pointer to an IDirect3DDevice8 interface, the device object to be associated with the mesh.
- ppMesh
- [out] Address of a pointer to an ID3DXMesh interface, representing the created mesh object.
Return Values
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
Requirements
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.
See Also
D3DXFVFFromDeclarator