IDirect3DDevice8::BeginScene

This method begins a scene.

RESULT BeginScene();

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

Applications must call this method before performing any rendering and must call IDirect3DDevice8::EndScene when rendering is complete and before calling BeginScene again.

If the BeginScene method fails, the device was unable to begin the scene, and there is no need to call the IDirect3DDevice8::EndScene method. In fact, calls to EndScene will fail if the previous call to BeginScene failed.

Requirements

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

See Also

IDirect3DDevice8::EndScene | IDirect3DDevice8

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.