SpriteBatch Constructor
Initializes a new instance of the class, which enables a group of sprites to be drawn using the same settings.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
public SpriteBatch (
GraphicsDevice graphicsDevice
)
Parameters
- graphicsDevice
- Type: GraphicsDevice
The graphics device where sprites will be drawn.
| Exception type | Condition |
|---|---|
| ArgumentNullException | graphicsDevice is null. |
Community Additions
ADD
Show: