Microsoft DirectX 8.1 (Visual Basic) |
Restores the device state to how it was when D3DXSprite.Begin was called.
object.End()
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.
D3DXSprite.End cannot be used as a substitute for either Direct3DDevice8.EndScene or D3DXRenderToSurface.EndScene.