?/TD>
Microsoft DirectX 9.0

IDirect3DDevice9::EndScene Method


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

Syntax

HRESULT EndScene(VOID);

Return Value

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALLThe method failed because EndScene was called before BeginScene.



Remarks

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

IDirect3DDevice9::BeginScene


© 2002 Microsoft Corporation. All rights reserved.