Platform SDK: DirectX

Direct3DDevice7.EndScene

The Direct3DDevice7.EndScene method ends a scene that was begun by calling the Direct3DDevice7.BeginScene method.

object.EndScene()

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

When this method succeeds, the scene has been rendered, and the device surface holds the rendered scene.

When scene rendering begins successfully, you must call this method before you can call the Direct3DDevice7.BeginScene method to start rendering another scene. (If a prior call to BeginScene method fails, the scene did not begin, and this method should not be called.)

See Also

Direct3DDevice7.BeginScene