Microsoft DirectX 9.0

IDirect3DDevice9::EndScene Method

Ends a scene that was begun by calling the IDirect3DDevice9::BeginScene method.



Return Value

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALLThe method failed because EndScene was called before BeginScene.


When this method succeeds, the scene has been queued up for rendering by the driver. This is not a synchronous method, so the scene is not guaranteed to have completed rendering when this method returns.

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

See Also


© 2002 Microsoft Corporation. All rights reserved.