DirectX SDK

Direct3DDevice7.BeginScene

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()

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

Remarks

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.

See Also

Direct3DDevice7.EndScene