Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 (in microsoft.xna.framework.dll)
Syntax
public void End ()
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | End was called, but Begin has not yet been called. Begin must be called successfully before End can be called. |
Remarks
Call End after all calls to Draw are complete.
See Also
Tasks
Concepts
Reference
SpriteBatch Class
SpriteBatch Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista