ID3DXRenderToSurface::BeginScene method

Begins a scene.

Syntax

HRESULT BeginScene(
  [in]       LPDIRECT3DSURFACE9 pSurface,
  [in] const D3DVIEWPORT9       *pViewport
);

Parameters

pSurface [in]

Type: LPDIRECT3DSURFACE9

Pointer to an IDirect3DSurface9 interface, representing the render surface.

pViewport [in]

Type: const D3DVIEWPORT9*

Pointer to a D3DVIEWPORT9 structure, describing the viewport for the scene.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL.D3DERR_OUTOFVIDEOMEMORY D3DXERR_INVALIDDATA E_OUTOFMEMORY

Requirements

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXRenderToSurface

ID3DXRenderToSurface::EndScene