<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>XNA Framework</title><link>http://forums.xna.com/forums/56.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196317.aspx</link><pubDate>Sat, 04 Jul 2009 15:00:52 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196317</guid><dc:creator>DarkSquirrel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196317.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196317</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;lumberbunny:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;DarkSquirrel:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I don&amp;#39;t think the blend mode is intentionally available during Immediate mode&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
I get the same impression, although why else would&amp;nbsp;it be available at all? Maybe it&amp;#39;s just an artifact&amp;nbsp;of the conversion to MDX?&lt;br /&gt;
&lt;br /&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;DarkSquirrel:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;It would be cool to have a SpriteBlendMode.Custom option which left the blend states unchanged regardless of the rendering mode.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
My thoughts exactly. That is, if it changes, hopefully it moves in that direction rather than cutting off the capability altogether.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
The blend states are used heavily during 3D and custom 2D rendering, so that functionality won&amp;#39;t be going away.&amp;nbsp; It&amp;#39;s just not available during SpriteBatch (except during Immediate rendering mode - again I think could be unintentional), this makes SpriteBatch very user-friendly, but a little less flexible.&amp;nbsp; Overall SpriteBatch is a great rendering tool though. :)</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196273.aspx</link><pubDate>Sat, 04 Jul 2009 09:41:48 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196273</guid><dc:creator>lumberbunny</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196273.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196273</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;DarkSquirrel:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I don&amp;#39;t think the blend mode is intentionally available during Immediate mode&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
I get the same impression, although why else would it be available at all? Maybe it&amp;#39;s just an artifact of the conversion to MDX?&lt;br /&gt;
&lt;br /&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;DarkSquirrel:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;It would be cool to have a SpriteBlendMode.Custom option which left the blend states unchanged regardless of the rendering mode.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
My thoughts exactly. That is, if it changes, hopefully it moves in that direction rather than cutting off the capability altogether.&lt;br /&gt;
&lt;br /&gt;
Thanks again everyone for your help.</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196250.aspx</link><pubDate>Sat, 04 Jul 2009 05:48:50 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196250</guid><dc:creator>DarkSquirrel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196250.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196250</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;lumberbunny:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;It seems odd that all of the blending functionality in the render state would only be usable in the&amp;nbsp;Immediate sort&amp;nbsp;mode. I&amp;#39;d love to hear other suggestions as to how&amp;nbsp;the blending options&amp;nbsp;could be relevant in other sort modes or why SpriteBatch modifies the values in both places.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
I don&amp;#39;t think the blend mode is intentionally available during Immediate mode, it&amp;#39;s just expensive to change the blend mode every Draw call.&amp;nbsp; It would be cool to have a SpriteBlendMode.Custom option which left the blend states unchanged regardless of the rendering mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;lumberbunny:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Also, one final question:&amp;nbsp;are there any downsides to&amp;nbsp;SpriteSortMode.Immediate other than that the drawing operations need to be pre-sorted?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
It&amp;#39;s said Immediate mode is faster, however I believe this is due to lack of sorting, which your app may still need to do (eliminating any gains).</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196247.aspx</link><pubDate>Sat, 04 Jul 2009 05:41:50 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196247</guid><dc:creator>Craig Martin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196247.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196247</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;DarkSquirrel:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;lumberbunny:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;If SpriteBatch.Begin() modifies the render state, should it be fixed by changing the blend options after the call to Begin? I&amp;#39;ve tried this, and nothing changes.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Unless the default rendering mode for SpriteBatch is SpriteSortMode.Immediate (which, unfortunately, the MSDN docs do not specify) all rendering is deferred until the call to SpriteBatch.End.&amp;nbsp; Because all rendering is encapsulated within that call, there&amp;#39;s no way to &lt;em&gt;indirectly &lt;/em&gt;change the blend mode.&lt;br /&gt;
&lt;br /&gt;
You can &lt;em&gt;directly &lt;/em&gt;change the rendering mode with one of the &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.spritebatch.begin%28XNAGameStudio.30%29.aspx" target="_blank"&gt;SpriteBatch.Begin overloads&lt;/a&gt; (see SpriteBlendMode).&amp;nbsp; You could also try changing the render mode to SpriteSortMode.Immediate and set custom blend states after calling SpriteBatch.Begin, or between calls to SpriteBatch.Draw for layer specific blending. ;)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Yes of course, I forgot about that :s</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196246.aspx</link><pubDate>Sat, 04 Jul 2009 05:21:48 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196246</guid><dc:creator>lumberbunny</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196246.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196246</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;DarkSquirrel:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Unless the default rendering mode for SpriteBatch is SpriteSortMode.Immediate (which, unfortunately, the MSDN docs do not specify) all rendering is deferred until the call to SpriteBatch.End.  Because all rendering is encapsulated within that call, there&amp;#39;s no way to &lt;em&gt;indirectly &lt;/em&gt;change the blend mode.&lt;br /&gt;
&lt;br /&gt;
You can &lt;em&gt;directly &lt;/em&gt;change the rendering mode with one of the &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.spritebatch.begin%28XNAGameStudio.30%29.aspx" target="_blank"&gt;SpriteBatch.Begin overloads&lt;/a&gt; (see SpriteBlendMode).  You could also try changing the render mode to SpriteSortMode.Immediate and set custom blend states after calling SpriteBatch.Begin, or between calls to SpriteBatch.Draw for layer specific blending. ;)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Fantastic. SpriteSortMode.Immediate did the trick. It seems that the render state is modified (by the SpriteBatch) in the call to SpriteBatch.Begin &lt;em&gt;and&lt;/em&gt; before rendering in the call to SpriteBatch.End.&lt;br /&gt;
&lt;br /&gt;
It seems odd that all of the blending functionality in the render state would only be usable in the Immediate sort mode. I&amp;#39;d love to hear other suggestions as to how the blending options could be relevant in other sort modes or why SpriteBatch modifies the values in both places.&lt;br /&gt;
&lt;br /&gt;
Also, one final question: are there any downsides to SpriteSortMode.Immediate other than that the drawing operations need to be pre-sorted?&lt;br /&gt;
&lt;br /&gt;
Thanks again to everyone.&lt;br /&gt;
 &lt;br /&gt;
(PS - Calling GraphicsDeviceManager.ApplyChanges is not required.)&lt;br /&gt;</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196243.aspx</link><pubDate>Sat, 04 Jul 2009 05:06:12 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196243</guid><dc:creator>lumberbunny</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196243.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196243</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Craig Martin:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;You might have to call below after changing them if it is inside a begin/end block.&lt;br /&gt;
&lt;br /&gt;
GraphicsDeviceManager.ApplyChanges();&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
No luck. :(</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196242.aspx</link><pubDate>Sat, 04 Jul 2009 05:01:25 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196242</guid><dc:creator>DarkSquirrel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196242.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196242</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;lumberbunny:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;If SpriteBatch.Begin() modifies the render state, should it be fixed by changing the blend options after the call to Begin? I&amp;#39;ve tried this, and nothing changes.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Unless the default rendering mode for SpriteBatch is SpriteSortMode.Immediate (which, unfortunately, the MSDN docs do not specify) all rendering is deferred until the call to SpriteBatch.End.&amp;nbsp; Because all rendering is encapsulated within that call, there&amp;#39;s no way to &lt;em&gt;indirectly &lt;/em&gt;change the blend mode.&lt;br /&gt;
&lt;br /&gt;
You can &lt;em&gt;directly &lt;/em&gt;change the rendering mode with one of the &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.spritebatch.begin%28XNAGameStudio.30%29.aspx"&gt;SpriteBatch.Begin overloads&lt;/a&gt; (see SpriteBlendMode).&amp;nbsp; You could also try changing the render mode to SpriteSortMode.Immediate and set custom blend states after calling SpriteBatch.Begin, or between calls to SpriteBatch.Draw for layer specific blending. ;)</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196233.aspx</link><pubDate>Sat, 04 Jul 2009 04:23:42 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196233</guid><dc:creator>Craig Martin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196233.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196233</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;lumberbunny:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;If SpriteBatch.Begin() modifies the render state, should it be fixed by changing the blend options after the call to Begin? I&amp;#39;ve tried this, and nothing changes.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
You might have to call below after changing them if it is inside a begin/end block.&lt;br /&gt;
&lt;br /&gt;
GraphicsDeviceManager.ApplyChanges();</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196225.aspx</link><pubDate>Sat, 04 Jul 2009 03:34:37 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196225</guid><dc:creator>lumberbunny</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196225.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196225</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Craig Martin:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Alpha blending requires a not-fully-opaque alpha component in your color right? But Color.Green and Color.Red have have 255 as their Alpha component.&lt;br /&gt;
&lt;br /&gt;
What happens if you use a smaller alpha value, like new Color(Color.Green, 128) and new Color(Color.Red, 64) ?&lt;br /&gt;
&lt;br /&gt;
Or maybe thats wrong because you said spriteBatch.Begin(SpriteBlendMode.Additive) works just fine.&lt;br /&gt;
&lt;br /&gt;
Maybe spriteBatch.Begin() overwrites your render settings, maybe you have to specify a SpriteBlendMode to get what you want.&lt;br /&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
With SourceBlend and DestinationBlend both set to Blend.One, 1 x red (1, 0, 0) + 1 x green (0, 0.5, 0) = orange? (1, 0.5, 0) which is additive blending.&lt;br /&gt;
&lt;br /&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Percy Tse:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;SpriteBatch.Begin will modify the render states.&lt;br /&gt;
For the details of modification, please refer to &lt;a href="http://blogs.msdn.com/shawnhar/archive/2006/11/13/spritebatch-and-renderstates.aspx"&gt;Shawn&amp;#39;s blog&lt;/a&gt;.&lt;br /&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
If SpriteBatch.Begin() modifies the render state, should it be fixed by changing the blend options after the call to Begin? I&amp;#39;ve tried this, and nothing changes.</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196216.aspx</link><pubDate>Sat, 04 Jul 2009 02:13:27 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196216</guid><dc:creator>Percy Tse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196216.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196216</wfw:commentRss><description>SpriteBatch.Begin will modify the render states.&lt;br /&gt;
For the details of modification, please refer to &lt;a href="http://blogs.msdn.com/shawnhar/archive/2006/11/13/spritebatch-and-renderstates.aspx"&gt;Shawn&amp;#39;s blog&lt;/a&gt;.&lt;br /&gt;</description></item><item><title>Re: Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196206.aspx</link><pubDate>Sat, 04 Jul 2009 01:20:19 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196206</guid><dc:creator>Craig Martin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196206.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196206</wfw:commentRss><description>Alpha blending requires a not-fully-opaque alpha component in your color right? But Color.Green and Color.Red have have 255 as their Alpha component.&lt;br /&gt;
&lt;br /&gt;
What happens if you use a smaller alpha value, like new Color(Color.Green, 128) and new Color(Color.Red, 64) ?&lt;br /&gt;
&lt;br /&gt;
Or maybe thats wrong because you said spriteBatch.Begin(SpriteBlendMode.Additive) works just fine.&lt;br /&gt;
&lt;br /&gt;
Maybe spriteBatch.Begin() overwrites your render settings, maybe you have to specify a SpriteBlendMode to get what you want.&lt;br /&gt;</description></item><item><title>Is there a trick to RenderState alphablending options?</title><link>http://forums.xna.com/forums/thread/196180.aspx</link><pubDate>Fri, 03 Jul 2009 22:58:46 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196180</guid><dc:creator>lumberbunny</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196180.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=196180</wfw:commentRss><description>I&amp;#39;ve reduced my frustration to the simple example shown below starting from a brand new Windows Game. &amp;quot;circle&amp;quot; is just a 512x512 white circle with a transparent background.&lt;br /&gt;
&lt;br /&gt;
By any estimation I can muster, this combination of SourceBlend and DestinationBlend should produce additive blending, but all that comes out is a red circle overlapping a green circle. Every available combination of Source/DestinationBlend produces an identical result. (For the record, additive blending is not what I&amp;#39;m actually trying to accomplish, but I figure that if I can get this to work, the other RenderState options will follow suit... spriteBatch.Begin(SpriteBlendMode.Additive) works just fine.)&lt;br /&gt;
&lt;br /&gt;
What am I doing wrong? Is there something else I need to set in order to enable this type of blending? Is there a hardware requirement for it?&lt;br /&gt;
&lt;br /&gt;
Thanks for any suggestions.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="border-bottom:#7f9db9 1px solid;border-left:#7f9db9 1px solid;background-color:white;font-family:courier new;font-size:11px;overflow:auto;border-top:#7f9db9 1px solid;border-right:#7f9db9 1px solid;"&gt;
&lt;table style="border-bottom:#eee 0px solid;border-right-width:0px;background-color:#fff;margin:2px 0px;width:99%;border-collapse:collapse;border-top-width:0px;border-left-width:0px;" cellspacing="0" cellpadding="0"&gt;
    
    
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size:11px;"&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;protected&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;override&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;void&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Draw(GameTime gameTime)  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;{  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    GraphicsDevice.Clear(Color.Black);  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    GraphicsDevice.RenderState.AlphaBlendEnable = &lt;span style="color:blue;"&gt;true&lt;/span&gt;&lt;span style="font-size:11px;"&gt;;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    GraphicsDevice.RenderState.SourceBlend = Blend.One;  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    GraphicsDevice.RenderState.DestinationBlend = Blend.One;  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    spriteBatch.Begin();  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    spriteBatch.Draw(circle, &lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Rectangle(0, 0, 512, 512), Color.Green);  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    spriteBatch.Draw(circle, &lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Rectangle(256, 0, 512, 512), Color.Red);  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    spriteBatch.End();  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    &lt;span style="color:blue;"&gt;base&lt;/span&gt;&lt;span style="font-size:11px;"&gt;.Draw(gameTime);  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;} &lt;/td&gt;
        &lt;/tr&gt;
    
&lt;/table&gt;
&lt;/div&gt;</description></item></channel></rss>