Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.EndScene

Ends a scene that was begun by calling the Direct3DDevice8.BeginScene method.

object.EndScene()

Parts

object
Object expression that resolves to a Direct3DDevice8 object.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

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 Direct3DDevice8.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

Direct3DDevice8.BeginScene