Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SpriteBatch.End Method

Flushes the sprite batch and restores the device state to how it was before Begin was called.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public void End ()

Exception typeCondition
InvalidOperationException End was called, but Begin has not yet been called. You must call Begin successfully before you can call End.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

Show:
© 2014 Microsoft