IDirect3DDevice3::Vertex

The IDirect3DDevice3::Vertex method adds a new Direct3D vertex to the primitive sequence started with a previous call to the IDirect3DDevice3::Begin method.

HRESULT Vertex(
  LPVOID lpVertex  
);
 

Parameters

lpVertex
Pointer to the next Direct3D vertex to be added to the currently started primitive sequence. This can be any of the Direct3D vertex types (D3DLVERTEX, D3DTLVERTEX, or D3DVERTEX) or a vertex specified in flexible vertex format. The vertex format must match the description specified in the preceding call to IDirect3DDevice3::Begin.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value may be one of the following values:

D3DERR_INVALIDRAMPTEXTURE Ramp mode is being used and the texture handle in the current material does not match the current texture handle that is set as a render state.
DDERR_INVALIDPARAMS One of the arguments is invalid.

Remarks

This method was introduced with the IDirect3DDevice2 interface.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.

See Also

IDirect3DDevice3::Begin, IDirect3DDevice3::End