IDirect3DDevice3::EndScene

The IDirect3DDevice3::EndScene method ends a scene that was begun by calling the IDirect3DDevice3::BeginScene method.

HRESULT EndScene();
 

Parameters

None.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value is an error.

Remarks

When this method succeeds, the scene will have been rendered and the device surface will hold the contents of the rendering.

You must call this method before you can call the IDirect3DDevice3::BeginScene method to start rendering another scene, even if the previous attempt to render was unsuccessful.

This method is unchanged from its implementation in the IDirect3DDevice 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::BeginScene