<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/ShaderProfile.html"title="enum in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Next Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">Microsoft.Xna.Framework.Graphics.GraphicsResource</a></li>
<dd><ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">SpriteBatch</span>
extends <ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></pre>
<divclass="block">Enables a group of Sprites to be drawn using the same settings.</div>
<h3>Fields inherited from class Microsoft.Xna.Framework.Graphics.<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></h3>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#SpriteBatch(Microsoft.Xna.Framework.Graphics.GraphicsDevice)">SpriteBatch</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphics)</code> </td>
<divclass="block">Begins a sprite batch operation using deferred sort and default state objects (BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise).</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState)">Begin</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState)</code>
<divclass="block">Begins a sprite batch operation using the specified sort and blend state object and default state objects (DepthStencilState.None, SamplerState.LinearClamp, RasterizerState.CullCounterClockwise).</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState, Microsoft.Xna.Framework.Graphics.SamplerState, Microsoft.Xna.Framework.Graphics.DepthStencilState, Microsoft.Xna.Framework.Graphics.RasterizerState)">Begin</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html"title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a> samplerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html"title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a> depthStencilState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html"title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a> rasterizerState)</code>
<divclass="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil and rasterizer state objects.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState, Microsoft.Xna.Framework.Graphics.SamplerState, Microsoft.Xna.Framework.Graphics.DepthStencilState, Microsoft.Xna.Framework.Graphics.RasterizerState, Microsoft.Xna.Framework.Graphics.Effect)">Begin</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html"title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a> samplerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html"title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a> depthStencilState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html"title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a> rasterizerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/Effect.html"title="class in Microsoft.Xna.Framework.Graphics">Effect</a> effect)</code>
<divclass="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil and rasterizer state objects, plus a custom effect.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState, Microsoft.Xna.Framework.Graphics.SamplerState, Microsoft.Xna.Framework.Graphics.DepthStencilState, Microsoft.Xna.Framework.Graphics.RasterizerState, Microsoft.Xna.Framework.Graphics.Effect, Microsoft.Xna.Framework.Matrix)">Begin</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html"title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a> samplerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html"title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a> depthStencilState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html"title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a> rasterizerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/Effect.html"title="class in Microsoft.Xna.Framework.Graphics">Effect</a> effect,
<ahref="../../../../Microsoft/Xna/Framework/Matrix.html"title="class in Microsoft.Xna.Framework">Matrix</a> transformMatrix)</code>
<divclass="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil, rasterizer state objects, plus a custom effect and a 2D transformation matrix.</div>
<divclass="block">Immediately releases the unmanaged resources used by this Object.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position and color.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.</div>
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
float scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, color, rotation, origin, effects and layer.</div>
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#DrawString(Microsoft.Xna.Framework.Graphics.SpriteFont, java.lang.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)">DrawString</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html"title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a> spriteFont,
java.lang.String text,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a string to a batch of sprites for rendering using the specified font, text, position, and color.</div>
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
float scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</code>
<divclass="block">Adds a string to a batch of sprites for rendering using the specified font, text, position, color, rotation, origin, scale, effects and layer.</div>
<divclass="block">Allows this Object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a></code></td>
<h3>Methods inherited from class Microsoft.Xna.Framework.Graphics.<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></h3>
<pre>public SpriteBatch(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphics)</pre>
<divclass="block"><strong>Description copied from class: <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#finalize()">GraphicsResource</a></code></strong></div>
<divclass="block">Allows this Object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#finalize()">finalize</a></code> in class <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<aname="getGraphicsDevice()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getGraphicsDevice</h4>
<pre>public <ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> getGraphicsDevice()</pre>
<divclass="block"><strong>Description copied from class: <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#getGraphicsDevice()">GraphicsResource</a></code></strong></div>
<divclass="block">Gets the GraphicsDevice associated with this GraphicsResource.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#getGraphicsDevice()">getGraphicsDevice</a></code> in class <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<aname="IsDisposed()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>IsDisposed</h4>
<pre>public boolean IsDisposed()</pre>
<divclass="block"><strong>Description copied from class: <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#IsDisposed()">GraphicsResource</a></code></strong></div>
<divclass="block">Gets a value that indicates whether the object is disposed.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#IsDisposed()">IsDisposed</a></code> in class <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<aname="Begin()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Begin</h4>
<pre>public void Begin()</pre>
<divclass="block">Begins a sprite batch operation using deferred sort and default state objects (BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise).</div>
<pre>public void Begin(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState)</pre>
<divclass="block">Begins a sprite batch operation using the specified sort and blend state object and default state objects (DepthStencilState.None, SamplerState.LinearClamp, RasterizerState.CullCounterClockwise). If you pass a null blend state, the default is BlendState.AlphaBlend.</div>
<pre>public void Begin(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html"title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a> samplerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html"title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a> depthStencilState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html"title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a> rasterizerState)</pre>
<divclass="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil and rasterizer state objects. Passing null for any of the state objects selects the default default state objects (BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise).</div>
<pre>public void Begin(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html"title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a> samplerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html"title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a> depthStencilState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html"title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a> rasterizerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/Effect.html"title="class in Microsoft.Xna.Framework.Graphics">Effect</a> effect)</pre>
<divclass="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil and rasterizer state objects, plus a custom effect. Passing null for any of the state objects selects the default default state objects (BlendState.AlphaBlend, DepthStencilState.None, RasterizerState.CullCounterClockwise, SamplerState.LinearClamp). Passing a null effect selects the default SpriteBatch Class shader.</div>
<pre>public void Begin(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a> sortMode,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html"title="class in Microsoft.Xna.Framework.Graphics">BlendState</a> blendState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html"title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a> samplerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html"title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a> depthStencilState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html"title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a> rasterizerState,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/Effect.html"title="class in Microsoft.Xna.Framework.Graphics">Effect</a> effect,
<ahref="../../../../Microsoft/Xna/Framework/Matrix.html"title="class in Microsoft.Xna.Framework">Matrix</a> transformMatrix)</pre>
<divclass="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil, rasterizer state objects, plus a custom effect and a 2D transformation matrix. Passing null for any of the state objects selects the default default state objects (BlendState.AlphaBlend, DepthStencilState.None, RasterizerState.CullCounterClockwise, SamplerState.LinearClamp). Passing a null effect selects the default SpriteBatch Class shader.</div>
<divclass="block"><strong>Description copied from class: <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose(boolean)">GraphicsResource</a></code></strong></div>
<divclass="block">Immediately releases the unmanaged resources used by this Object.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose(boolean)">Dispose</a></code> in class <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</pre>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>texture</code> - A texture.</dd><dd><code>destinationRectangle</code> - A rectangle that specifies (in screen coordinates) the destination for drawing the sprite.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd></dl>
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</pre>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position and color.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>texture</code> - A texture.</dd><dd><code>position</code> - The location (in screen coordinates) to draw the sprite.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd></dl>
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</pre>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>texture</code> - A texture.</dd><dd><code>destinationRectangle</code> - A rectangle that specifies (in screen coordinates) the destination for drawing the sprite. If this rectangle is not the same size as the source rectangle, the sprite
will be scaled to fit.</dd><dd><code>sourceRectangle</code> - A rectangle that specifies (in texels) the source texels from a texture. Use null to draw the entire texture.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd></dl>
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</pre>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>texture</code> - A texture.</dd><dd><code>position</code> - The location (in screen coordinates) to draw the sprite.</dd><dd><code>sourceRectangle</code> - A rectangle that specifies (in texels) the source texels from a texture. Use null to draw the entire texture.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd></dl>
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
<pre>public void Draw(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
float scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</pre>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, color, rotation, origin, effects and layer.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>texture</code> - A texture.</dd><dd><code>position</code> - The location (in screen coordinates) to draw the sprite.</dd><dd><code>sourceRectangle</code> - A rectangle that specifies (in texels) the source texels from a texture. Use null to draw the entire texture.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd><dd><code>rotation</code> - Specifies the angle (in radians) to rotate the sprite about its center.</dd><dd><code>origin</code> - The sprite origin; the default is (0,0) which represents the upper-left corner.</dd><dd><code>scale</code> - Scale factor.</dd><dd><code>effects</code> - Effects to apply.</dd><dd><code>layerDepth</code> - The depth of a layer. By default, 0 represents the front layer and 1 represents a back layer. Use SpriteSortMode if you want sprites to be sorted during drawing.</dd></dl>
<pre>public void DrawString(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html"title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a> spriteFont,
java.lang.String text,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</pre>
<divclass="block">Adds a string to a batch of sprites for rendering using the specified font, text, position, and color.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>spriteFont</code> - A font for displaying text.</dd><dd><code>text</code> - A text string.</dd><dd><code>position</code> - The location (in screen coordinates) to draw the sprite.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd></dl>
<pre>public void DrawString(<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html"title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a> spriteFont,
java.lang.String text,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
float scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</pre>
<divclass="block">Adds a string to a batch of sprites for rendering using the specified font, text, position, color, rotation, origin, scale, effects and layer.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>spriteFont</code> - A font for displaying text.</dd><dd><code>text</code> - A text string.</dd><dd><code>position</code> - The location (in screen coordinates) to draw the sprite.</dd><dd><code>color</code> - The color to tint a sprite. Use Color.White for full color with no tinting.</dd><dd><code>rotation</code> - Specifies the angle (in radians) to rotate the sprite about its center.</dd><dd><code>origin</code> - The sprite origin; the default is (0,0) which represents the upper-left corner.</dd><dd><code>scale</code> - Scale factor.</dd><dd><code>effects</code> - Effects to apply.</dd><dd><code>layerDepth</code> - The depth of a layer. By default, 0 represents the front layer and 1 represents a back layer. Use SpriteSortMode if you want sprites to be sorted during drawing.</dd></dl>
</li>
</ul>
<aname="End()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>End</h4>
<pre>public void End()</pre>
<divclass="block">Flushes the sprite batch and restores the device state to how it was before Begin was called.</div>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/ShaderProfile.html"title="enum in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Next Class</span></a></li>