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 Gets the graphics device associated with this SpriteBatch.
Public Property IsDisposed Gets a value that indicates whether the object is disposed.
Public Property Name Gets or sets the name of this sprite batch.
Public Property Tag Gets or sets an object that uniquely identifies this sprite batch.

Public Methods

Name Description
Public Method Begin Overloaded. Prepares the graphics device for drawing sprites.
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method Draw Overloaded. Adds a sprite to the batch of sprites to be rendered.
Public Method DrawString Overloaded. Adds a sprite string to the 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 ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

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

Public Events

Name Description
Public Event Disposing Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.

See Also

Concepts

2D Graphics Overview

Reference

SpriteBatch Class
Microsoft.Xna.Framework.Graphics Namespace