Microsoft DirectX 8.1 (C++)

IDirect3DDevice8::BeginScene

Begins a scene.

HRESULT 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

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.

See Also

IDirect3DDevice8::EndScene