Begins a scene.
HRESULT BeginScene( LPDIRECT3DSURFACE9 pSurface, CONST D3DVIEWPORT9 * pViewport );
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_OUTOFMEMORYHeader: Declared in D3dx9core.h.