?/TD> |
Microsoft DirectX 9.0 |
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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. D3DERR_OUTOFVIDEOMEMORY Microsoft?Direct3D?does not have enough display memory to perform the operation. D3DXERR_INVALIDDATA The data is invalid. E_OUTOFMEMORY Direct3D could not allocate sufficient memory to complete the call.
See Also
ID3DXRenderToSurface::EndScene