Microsoft DirectX 8.1 (Visual Basic)

D3DXSprite.End

Restores the device state to how it was when D3DXSprite.Begin was called.

object.End()

Parts

object
Object expression that resolves to a D3DXSprite 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

D3DXSprite.End cannot be used as a substitute for either Direct3DDevice8.EndScene or D3DXRenderToSurface.EndScene.

See Also

D3DXSprite.Begin