DirectX SDK |
The Direct3DDevice7.BeginScene method begins a scene. Applications must call this method before performing any rendering, and must call Direct3DDevice7.EndScene when rendering is complete, and before calling Direct3DDevice7.BeginScene again.
object.BeginScene()
If the method fails, an error is raised and Err.Number will be set.
If the BeginScene method fails, the device was unable to begin the scene, and there is no need to call the Direct3DDevice7.EndScene method. In fact, calls to the Direct3DDevice7.EndScene method will fail if the previous call to BeginScene failed.