This topic has not yet been rated - Rate this topic

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 type Condition
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
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
If you are using this along with drawing 3d objects in 4.0


This blog explains the states to restore.

http://blogs.msdn.com/b/shawnhar/archive/2010/06/18/spritebatch-and-renderstates-in-xna-game-studio-4-0.aspx