Share via


IDirect3DDevice8::EndScene

This method ends a scene that was begun by calling the IDirect3DDevice8::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 can be D3DERR_INVALIDCALL.

Remarks

When this method succeeds, the scene has been rendered and the device surface holds the rendered scene.

When scene rendering begins successfully, you must call this method before you can call the IDirect3DDevice8::BeginScene method to start rendering another scene. If a prior call to BeginScene method fails, the scene did not begin and this method should not be called.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8.h.
Link Library: D3d8.lib.

See Also

IDirect3DDevice8::BeginScene | IDirect3DDevice8

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.