IDirect3DDevice3::BeginScene

The IDirect3DDevice3::BeginScene method begins a scene. Applications must call this method before performing any rendering, and must call IDirect3DDevice3::EndScene when rendering is complete, and before calling IDirect3DDevice::BeginScene again.

HRESULT BeginScene();
 

Parameters

None.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value is an error.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.

See Also

IDirect3DDevice3::EndScene