SpriteBatch Members

The following tables list the members exposed by the SpriteBatch type.

Public Constructors

Name Description
Public Method SpriteBatch Initializes a new instance of the class, which enables a group of sprites to be drawn using the same settings.

Public Properties

Name Description
Public Property GraphicsDevice (Inherited from GraphicsResource.)
Public Property IsDisposed (Inherited from GraphicsResource.)
Public Property Name (Inherited from GraphicsResource.)
Public Property Tag (Inherited from GraphicsResource.)

Public Methods

Name Description
Public Method Begin Overloaded. Begins a sprite batch operation.
Public Method Dispose Overloaded. Releases unmanaged resources used by this object.
Public Method Draw Overloaded. Adds a sprite to a batch of sprites to be rendered.
Public Method DrawString Overloaded. Adds a string to a batch of sprites to be rendered.
Public Method End Flushes the sprite batch and restores the device state to how it was before Begin was called.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ToString (Inherited from GraphicsResource.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from GraphicsResource.)
Protected Method MemberwiseClone (Inherited from Object.)

Public Events

Name Description
Public Event Disposing (Inherited from GraphicsResource.)

See Also

Reference

SpriteBatch Class
Microsoft.Xna.Framework.Graphics Namespace