Export (0) Print
Expand All

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 (in microsoft.xna.framework.dll)

public SpriteBatch (
         GraphicsDevice graphicsDevice
)

Parameters

graphicsDevice
The graphics device where sprites will be drawn.

Exception typeCondition
ArgumentNullException graphicsDevice is null.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2015 Microsoft