IDirect3DDevice3::End

The IDirect3DDevice3::End method signals the completion of a primitive sequence. This method fails if no corresponding call to the IDirect3DDevice3::Begin method (or IDirect3DDevice3::BeginIndexed) was made.

HRESULT End(
  DWORD dwFlags  
);
 

Parameters

dwFlags
Reserved for future use; set to zero.

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 fails if the vertex count is incorrect for the primitive type. It fails without drawing if it is called before a sufficient number of vertices is specified. If the number of IDirect3DDevice3::Vertex or IDirect3DDevice3::Index calls made is not evenly divisible by 3 (in the case of triangles), or 2 (in the case of a line list), the remainder will be ignored.

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::BeginIndexed