<li><ahref="../../../Microsoft/Xna/Framework/GameComponent.html"title="class in Microsoft.Xna.Framework">Microsoft.Xna.Framework.GameComponent</a></li>
<dd><ahref="../../../Microsoft/Xna/Framework/IDrawable.html"title="interface in Microsoft.Xna.Framework">IDrawable</a>, <ahref="../../../Microsoft/Xna/Framework/IGameComponent.html"title="interface in Microsoft.Xna.Framework">IGameComponent</a>, <ahref="../../../Microsoft/Xna/Framework/IUpdateable.html"title="interface in Microsoft.Xna.Framework">IUpdateable</a>, System.IDisposable</dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">DrawableGameComponent</span>
extends <ahref="../../../Microsoft/Xna/Framework/GameComponent.html"title="class in Microsoft.Xna.Framework">GameComponent</a>
implements <ahref="../../../Microsoft/Xna/Framework/IDrawable.html"title="interface in Microsoft.Xna.Framework">IDrawable</a></pre>
<divclass="block">A game component that is notified when it needs to draw itself.</div>
<h3>Fields inherited from class Microsoft.Xna.Framework.<ahref="../../../Microsoft/Xna/Framework/GameComponent.html"title="class in Microsoft.Xna.Framework">GameComponent</a></h3>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../Microsoft/Xna/Framework/DrawableGameComponent.html#DrawableGameComponent(Microsoft.Xna.Framework.Game)">DrawableGameComponent</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Game.html"title="class in Microsoft.Xna.Framework">Game</a> game)</code>
<divclass="block">Creates a new instance of DrawableGameComponent.</div>
<divclass="block">Releases the unmanaged resources used by the DrawableGameComponent and optionally releases the managed resources.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/DrawableGameComponent.html#Draw(Microsoft.Xna.Framework.GameTime)">Draw</a></strong>(<ahref="../../../Microsoft/Xna/Framework/GameTime.html"title="class in Microsoft.Xna.Framework">GameTime</a> gameTime)</code>
<divclass="block">Called when the DrawableGameComponent needs to be drawn.</div>
<h3>Methods inherited from class Microsoft.Xna.Framework.<ahref="../../../Microsoft/Xna/Framework/GameComponent.html"title="class in Microsoft.Xna.Framework">GameComponent</a></h3>
<pre>public DrawableGameComponent(<ahref="../../../Microsoft/Xna/Framework/Game.html"title="class in Microsoft.Xna.Framework">Game</a> game)</pre>
<divclass="block">Creates a new instance of DrawableGameComponent.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>game</code> - The Game that the game component should be attached to.</dd></dl>
<divclass="block">Order in which the component should be drawn, relative to other components that are in the same GameComponentCollection.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IDrawable.html#getDrawOrder()">getDrawOrder</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IDrawable.html"title="interface in Microsoft.Xna.Framework">IDrawable</a></code></dd>
<divclass="block">The GraphicsDevice the DrawableGameComponent is associated with.</div>
</li>
</ul>
<aname="getVisible()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getVisible</h4>
<pre>public boolean getVisible()</pre>
<divclass="block">Indicates whether Draw should be called.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IDrawable.html#getVisible()">getVisible</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IDrawable.html"title="interface in Microsoft.Xna.Framework">IDrawable</a></code></dd>
<divclass="block">Releases the unmanaged resources used by the DrawableGameComponent and optionally releases the managed resources.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/GameComponent.html#Dispose(boolean)">Dispose</a></code> in class <code><ahref="../../../Microsoft/Xna/Framework/GameComponent.html"title="class in Microsoft.Xna.Framework">GameComponent</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>disposing</code> - true to release both managed and unmanaged resources; false to release only unmanaged resources.</dd></dl>
</li>
</ul>
<aname="Initialize()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Initialize</h4>
<pre>public void Initialize()</pre>
<divclass="block">Initializes the component. Override this method to load any non-graphics resources and query for any required services.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IGameComponent.html#Initialize()">Initialize</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IGameComponent.html"title="interface in Microsoft.Xna.Framework">IGameComponent</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/GameComponent.html#Initialize()">Initialize</a></code> in class <code><ahref="../../../Microsoft/Xna/Framework/GameComponent.html"title="class in Microsoft.Xna.Framework">GameComponent</a></code></dd>
</dl>
</li>
</ul>
<aname="LoadContent()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>LoadContent</h4>
<pre>protected void LoadContent()</pre>
<divclass="block">Called when graphics resources need to be loaded. Override this method to load any component-specific graphics resources.</div>
<divclass="block">Called when the DrawOrder property changes. Raises the DrawOrderChanged event.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - The DrawableGameComponent.</dd><dd><code>e</code> - Arguments to the DrawOrderChanged event.</dd></dl>
<divclass="block">Called when the Visible property changes. Raises the VisibleChanged event.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - The DrawableGameComponent.</dd><dd><code>e</code> - Arguments to the DrawOrderChanged event.</dd></dl>
<divclass="block">Called when graphics resources need to be unloaded. Override this method to unload any component-specific graphics resources.</div>
</li>
</ul>
<aname="Draw(Microsoft.Xna.Framework.GameTime)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>Draw</h4>
<pre>public void Draw(<ahref="../../../Microsoft/Xna/Framework/GameTime.html"title="class in Microsoft.Xna.Framework">GameTime</a> gameTime)</pre>
<divclass="block">Called when the DrawableGameComponent needs to be drawn. Override this method with component-specific drawing code.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IDrawable.html#Draw(Microsoft.Xna.Framework.GameTime)">Draw</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IDrawable.html"title="interface in Microsoft.Xna.Framework">IDrawable</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>gameTime</code> - Time passed since the last call to Draw.</dd></dl>