Tom Lint 92e29ba3dd Fixed compiler errors
Regenerated JavaDoc
Updated whitespace usage
Added LWJGL libraries and binaries
2013-10-15 12:34:51 +02:00

774 lines
56 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="nl">
<head>
<!-- Generated by javadoc (version 1.7.0_40) on Tue Oct 15 12:25:33 CEST 2013 -->
<title>SpriteBatch</title>
<meta name="date" content="2013-10-15">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SpriteBatch";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SpriteBatch.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../Microsoft/Xna/Framework/Graphics/ShaderProfile.html" title="enum in Microsoft.Xna.Framework.Graphics"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?Microsoft/Xna/Framework/Graphics/SpriteBatch.html" target="_top">Frames</a></li>
<li><a href="SpriteBatch.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">Microsoft.Xna.Framework.Graphics</div>
<h2 title="Class SpriteBatch" class="title">Class SpriteBatch</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">Microsoft.Xna.Framework.Graphics.GraphicsResource</a></li>
<li>
<ul class="inheritance">
<li>Microsoft.Xna.Framework.Graphics.SpriteBatch</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../System/IDisposable.html" title="interface in System">IDisposable</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">SpriteBatch</span>
extends <a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></pre>
<div class="block">Enables a group of Sprites to be drawn using the same settings.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd>Halofreak1990</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Name">Name</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Tag">Tag</a></strong></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_Microsoft.Xna.Framework.Graphics.GraphicsResource">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;Microsoft.Xna.Framework.Graphics.<a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></h3>
<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#_parent">_parent</a>, <a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Disposing">Disposing</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#SpriteBatch(Microsoft.Xna.Framework.Graphics.GraphicsDevice)">SpriteBatch</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a>&nbsp;graphics)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Begin()">Begin</a></strong>()</code>
<div class="block">Begins a sprite batch operation using deferred sort and default state objects (BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState)">Begin</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState)</code>
<div class="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>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html" title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a>&nbsp;samplerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html" title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a>&nbsp;depthStencilState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html" title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a>&nbsp;rasterizerState)</code>
<div class="block">Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil and rasterizer state objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html" title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a>&nbsp;samplerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html" title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a>&nbsp;depthStencilState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html" title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a>&nbsp;rasterizerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/Effect.html" title="class in Microsoft.Xna.Framework.Graphics">Effect</a>&nbsp;effect)</code>
<div class="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>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html" title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a>&nbsp;samplerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html" title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a>&nbsp;depthStencilState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html" title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a>&nbsp;rasterizerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/Effect.html" title="class in Microsoft.Xna.Framework.Graphics">Effect</a>&nbsp;effect,
<a href="../../../../Microsoft/Xna/Framework/Matrix.html" title="class in Microsoft.Xna.Framework">Matrix</a>&nbsp;transformMatrix)</code>
<div class="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>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Dispose(boolean)">Dispose</a></strong>(boolean&nbsp;disposing)</code>
<div class="block">Immediately releases the unmanaged resources used by this Object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;destinationRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</code>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;destinationRectangle,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</code>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;destinationRectangle,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</code>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position and color.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</code>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, float, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">Draw</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
float&nbsp;scale,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</code>
<div class="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>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">Draw</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;scale,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../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>(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html" title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a>&nbsp;spriteFont,
java.lang.String&nbsp;text,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</code>
<div class="block">Adds a string to a batch of sprites for rendering using the specified font, text, position, and color.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#DrawString(Microsoft.Xna.Framework.Graphics.SpriteFont, java.lang.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, float, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">DrawString</a></strong>(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html" title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a>&nbsp;spriteFont,
java.lang.String&nbsp;text,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
float&nbsp;scale,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</code>
<div class="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>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#End()">End</a></strong>()</code>
<div class="block">Flushes the sprite batch and restores the device state to how it was before Begin was called.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#finalize()">finalize</a></strong>()</code>
<div class="block">Allows this Object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a></code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#getGraphicsDevice()">getGraphicsDevice</a></strong>()</code>
<div class="block">Gets the GraphicsDevice associated with this GraphicsResource.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#IsDisposed()">IsDisposed</a></strong>()</code>
<div class="block">Gets a value that indicates whether the object is disposed.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_Microsoft.Xna.Framework.Graphics.GraphicsResource">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;Microsoft.Xna.Framework.Graphics.<a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></h3>
<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose()">Dispose</a>, <a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#raise_disposing(java.lang.Object, System.EventArgs)">raise_disposing</a>, <a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#toString()">toString</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="Name">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Name</h4>
<pre>public&nbsp;java.lang.String Name</pre>
</li>
</ul>
<a name="Tag">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Tag</h4>
<pre>public&nbsp;java.lang.Object Tag</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="SpriteBatch(Microsoft.Xna.Framework.Graphics.GraphicsDevice)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SpriteBatch</h4>
<pre>public&nbsp;SpriteBatch(<a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a>&nbsp;graphics)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graphics</code> - </dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - graphics is null.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="finalize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>finalize</h4>
<pre>protected&nbsp;void&nbsp;finalize()</pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#finalize()">GraphicsResource</a></code></strong></div>
<div class="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><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#finalize()">finalize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<a name="getGraphicsDevice()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphicsDevice</h4>
<pre>public&nbsp;<a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a>&nbsp;getGraphicsDevice()</pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#getGraphicsDevice()">GraphicsResource</a></code></strong></div>
<div class="block">Gets the GraphicsDevice associated with this GraphicsResource.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#getGraphicsDevice()">getGraphicsDevice</a></code>&nbsp;in class&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<a name="IsDisposed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IsDisposed</h4>
<pre>public&nbsp;boolean&nbsp;IsDisposed()</pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#IsDisposed()">GraphicsResource</a></code></strong></div>
<div class="block">Gets a value that indicates whether the object is disposed.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#IsDisposed()">IsDisposed</a></code>&nbsp;in class&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<a name="Begin()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Begin</h4>
<pre>public&nbsp;void&nbsp;Begin()</pre>
<div class="block">Begins a sprite batch operation using deferred sort and default state objects (BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise).</div>
</li>
</ul>
<a name="Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Begin</h4>
<pre>public&nbsp;void&nbsp;Begin(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState)</pre>
<div class="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>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sortMode</code> - Sprite drawing order.</dd><dd><code>blendState</code> - Blending options.</dd></dl>
</li>
</ul>
<a name="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)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Begin</h4>
<pre>public&nbsp;void&nbsp;Begin(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html" title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a>&nbsp;samplerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html" title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a>&nbsp;depthStencilState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html" title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a>&nbsp;rasterizerState)</pre>
<div class="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>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sortMode</code> - Sprite drawing order.</dd><dd><code>blendState</code> - Blending options.</dd><dd><code>samplerState</code> - Texture sampling options.</dd><dd><code>depthStencilState</code> - Depth and stencil options.</dd><dd><code>rasterizerState</code> - Rasterization options.</dd></dl>
</li>
</ul>
<a name="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)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Begin</h4>
<pre>public&nbsp;void&nbsp;Begin(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html" title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a>&nbsp;samplerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html" title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a>&nbsp;depthStencilState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html" title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a>&nbsp;rasterizerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/Effect.html" title="class in Microsoft.Xna.Framework.Graphics">Effect</a>&nbsp;effect)</pre>
<div class="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>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sortMode</code> - Sprite drawing order.</dd><dd><code>blendState</code> - Blending options.</dd><dd><code>samplerState</code> - Texture sampling options.</dd><dd><code>depthStencilState</code> - Depth and stencil options.</dd><dd><code>rasterizerState</code> - Rasterization options.</dd><dd><code>effect</code> - Effect state options.</dd></dl>
</li>
</ul>
<a name="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)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Begin</h4>
<pre>public&nbsp;void&nbsp;Begin(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteSortMode.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteSortMode</a>&nbsp;sortMode,
<a href="../../../../Microsoft/Xna/Framework/Graphics/BlendState.html" title="class in Microsoft.Xna.Framework.Graphics">BlendState</a>&nbsp;blendState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SamplerState.html" title="class in Microsoft.Xna.Framework.Graphics">SamplerState</a>&nbsp;samplerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/DepthStencilState.html" title="class in Microsoft.Xna.Framework.Graphics">DepthStencilState</a>&nbsp;depthStencilState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/RasterizerState.html" title="class in Microsoft.Xna.Framework.Graphics">RasterizerState</a>&nbsp;rasterizerState,
<a href="../../../../Microsoft/Xna/Framework/Graphics/Effect.html" title="class in Microsoft.Xna.Framework.Graphics">Effect</a>&nbsp;effect,
<a href="../../../../Microsoft/Xna/Framework/Matrix.html" title="class in Microsoft.Xna.Framework">Matrix</a>&nbsp;transformMatrix)</pre>
<div class="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>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sortMode</code> - Sprite drawing order.</dd><dd><code>blendState</code> - Blending options.</dd><dd><code>samplerState</code> - Texture sampling options.</dd><dd><code>depthStencilState</code> - Depth and stencil options.</dd><dd><code>rasterizerState</code> - Rasterization options.</dd><dd><code>effect</code> - Effect state options.</dd><dd><code>transformMatrix</code> - Transformation matrix for scale, rotate, translate options.</dd></dl>
</li>
</ul>
<a name="Dispose(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Dispose</h4>
<pre>protected&nbsp;void&nbsp;Dispose(boolean&nbsp;disposing)</pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose(boolean)">GraphicsResource</a></code></strong></div>
<div class="block">Immediately releases the unmanaged resources used by this Object.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose(boolean)">Dispose</a></code>&nbsp;in class&nbsp;<code><a href="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html" title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
</dl>
</li>
</ul>
<a name="Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;destinationRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</pre>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.</div>
<dl><dt><span class="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>
</li>
</ul>
<a name="Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</pre>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position and color.</div>
<dl><dt><span class="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>
</li>
</ul>
<a name="Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;destinationRectangle,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</pre>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.</div>
<dl><dt><span class="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>
</li>
</ul>
<a name="Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</pre>
<div class="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.</div>
<dl><dt><span class="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>
</li>
</ul>
<a name="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)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;destinationRectangle,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>texture</code> - </dd><dd><code>destinationRectangle</code> - </dd><dd><code>sourceRectangle</code> - </dd><dd><code>color</code> - </dd><dd><code>rotation</code> - </dd><dd><code>origin</code> - </dd><dd><code>effects</code> - </dd><dd><code>layerDepth</code> - </dd></dl>
</li>
</ul>
<a name="Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;scale,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>texture</code> - </dd><dd><code>position</code> - </dd><dd><code>sourceRectangle</code> - </dd><dd><code>color</code> - </dd><dd><code>rotation</code> - </dd><dd><code>origin</code> - </dd><dd><code>scale</code> - </dd><dd><code>effects</code> - </dd><dd><code>layerDepth</code> - </dd></dl>
</li>
</ul>
<a name="Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, float, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Draw</h4>
<pre>public&nbsp;void&nbsp;Draw(<a href="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html" title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a>&nbsp;texture,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</a>&nbsp;sourceRectangle,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
float&nbsp;scale,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</pre>
<div class="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><span class="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>
</li>
</ul>
<a name="DrawString(Microsoft.Xna.Framework.Graphics.SpriteFont, java.lang.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DrawString</h4>
<pre>public&nbsp;void&nbsp;DrawString(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html" title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a>&nbsp;spriteFont,
java.lang.String&nbsp;text,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color)</pre>
<div class="block">Adds a string to a batch of sprites for rendering using the specified font, text, position, and color.</div>
<dl><dt><span class="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>
</li>
</ul>
<a name="DrawString(Microsoft.Xna.Framework.Graphics.SpriteFont, java.lang.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, float, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DrawString</h4>
<pre>public&nbsp;void&nbsp;DrawString(<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteFont.html" title="class in Microsoft.Xna.Framework.Graphics">SpriteFont</a>&nbsp;spriteFont,
java.lang.String&nbsp;text,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;position,
<a href="../../../../Microsoft/Xna/Framework/Color.html" title="class in Microsoft.Xna.Framework">Color</a>&nbsp;color,
float&nbsp;rotation,
<a href="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</a>&nbsp;origin,
float&nbsp;scale,
<a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a>&nbsp;effects,
float&nbsp;layerDepth)</pre>
<div class="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><span class="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>
<a name="End()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>End</h4>
<pre>public&nbsp;void&nbsp;End()</pre>
<div class="block">Flushes the sprite batch and restores the device state to how it was before Begin was called.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SpriteBatch.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../Microsoft/Xna/Framework/Graphics/ShaderProfile.html" title="enum in Microsoft.Xna.Framework.Graphics"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html" title="enum in Microsoft.Xna.Framework.Graphics"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?Microsoft/Xna/Framework/Graphics/SpriteBatch.html" target="_top">Frames</a></li>
<li><a href="SpriteBatch.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>