?/TD> |
Microsoft DirectX 9.0 |
Creates a mesh object using a flexible vertex format (FVF) code.
Syntax
HRESULT D3DXCreateMeshFVF(
DWORD NumFaces, DWORD NumVertices, DWORD Options, DWORD FVF, LPDIRECT3DDEVICE9 pDevice, LPD3DXMESH *ppMesh );
Parameters
- NumFaces
- [in] Number of faces for the mesh. The valid range for this number is greater than 0, and one less than the max DWORD value, typically 232-1, because the last index is reserved.
- NumVertices
- [in] Number of vertices for the mesh. This parameter must be greater than 0.
- Options
- [in] Combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh.
- FVF
- [in] Combination of D3DFVF that describes the vertex format for the returned mesh. This function does not support D3DFVF_XYZRHW.
- pDevice
- [in] Pointer to an IDirect3DDevice9 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 Value
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft?Direct3D?could not allocate sufficient memory to complete the call.
Function Information
Header d3dx9mesh.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
D3DXFVFFromDeclarator