Click to Rate and Give Feedback
MSDN
MSDN Library
XNA Game Studio
XNA Game Studio 3.1
SpriteBatch Class
SpriteBatch Methods
 End Method

  Switch on low bandwidth view
XNA Game Studio 3.1
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 (in microsoft.xna.framework.dll)

C#
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.

Call End after all calls to Draw are complete.

Unexpected behavior can result when rendering sprites and 3D objects on the same graphics device. For more information, see Render States and the Graphics Device.

Xbox 360, Windows XP SP2, Windows Vista, Zune
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker