?/TD>
Microsoft DirectX 9.0

ID3DXRenderToSurface::BeginScene Method


Begins a scene.

Syntax

HRESULT BeginScene(      

    LPDIRECT3DSURFACE9 pSurface,     CONST D3DVIEWPORT9 *pViewport );

Parameters

pSurface
[in] Pointer to an IDirect3DSurface9 interface, representing the render surface.
pViewport
[in] Pointer to a D3DVIEWPORT9 structure, describing the viewport for the scene.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DERR_OUTOFVIDEOMEMORYMicrosoft?Direct3D?does not have enough display memory to perform the operation.
D3DXERR_INVALIDDATAThe data is invalid.
E_OUTOFMEMORYDirect3D could not allocate sufficient memory to complete the call.


See Also

ID3DXRenderToSurface::EndScene


© 2002 Microsoft Corporation. All rights reserved.