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.
The following tables list the members exposed by the SpriteBatch type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
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 | |
---|---|---|
![]() |
GraphicsDevice | Gets the graphics device associated with this SpriteBatch. |
![]() |
IsDisposed | Gets a value that indicates whether the object is disposed. |
![]() |
Name | Gets or sets the name of this sprite batch. |
![]() |
Tag | Gets or sets an object that uniquely identifies this sprite batch. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Begin | Overloaded. Prepares the graphics device for drawing sprites. |
![]() |
Dispose | Overloaded. Immediately releases the unmanaged resources used by this object. |
![]() |
Draw | Overloaded. Adds a sprite to the batch of sprites to be rendered. |
![]() |
DrawString | Overloaded. Adds a sprite string to the batch of sprites to be rendered. |
![]() |
End | Flushes the sprite batch and restores the device state to how it was before Begin was called. |
![]() |
Equals | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
Public Events
Name | Description | |
---|---|---|
![]() |
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
Reference
SpriteBatch Class
Microsoft.Xna.Framework.Graphics Namespace