Microsoft DirectX 8.1 (Visual Basic) |
Ends a scene that was begun by calling the Direct3DDevice8.BeginScene method.
object.EndScene()
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.
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.