<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>How you clear the screen with Allegro?</title>
		<link>http://www.allegro.cc/forums/view/589623</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 18 Jan 2007 23:17:25 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hiya all,</p><p>I have made pong game in allegro but I have one problem....clear the screen</p><p>I know in Basic used &quot;cls&quot; but for allegro? they dont even have cls or clear the screen for image!</p><p>does anyone know please?</p><p>one more questions....is there a tutorial for Typedef in allegro because I would like to more about Allegro.</p><p>cheers
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Hotshot2007)</author>
		<pubDate>Thu, 18 Jan 2007 22:42:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Please look in the manual. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Thu, 18 Jan 2007 22:44:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You shouldn&#39;t be clearing the screen, instead if your using double buffering, clear the bitmap your drawing to before you draw to the screen.</p><div class="source-code snippet"><div class="inner"><pre>
<span class="c">// Create Buffer Bitmap</span>
<a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a><span class="k3">*</span> buffer <span class="k3">=</span> <a href="http://www.allegro.cc/manual/create_bitmap" target="_blank"><span class="a">create_bitmap</span></a><span class="k2">(</span>screen_w, screen_h<span class="k2">)</span><span class="k2">;</span>

<span class="c">// Logic</span>

<span class="c">// Draw</span>
<a href="http://www.allegro.cc/manual/clear_bitmap" target="_blank"><span class="a">clear_bitmap</span></a><span class="k2">(</span>buffer<span class="k2">)</span><span class="k2">;</span>

<span class="c">// Draw Everying to the buffer here</span>

<span class="c">// And finally draw the buffer to the screen</span>
<a href="http://www.allegro.cc/manual/blit" target="_blank"><span class="a">blit</span></a><span class="k2">(</span>buffer, <a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, screen_w, screen_h<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tomoso)</author>
		<pubDate>Thu, 18 Jan 2007 22:48:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
is there a tutorial for Typedef in allegro because I would like to more about Allegro.
</p></div></div><p>
typedef is a C keyword, it has nothing to do with allegro.</p><p>As per the rest of your question, do as RP suggests and read the online manual.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Thu, 18 Jan 2007 22:48:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>May I ask...where is the manual ?</p><p>thank you</p><p>cheers
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Hotshot2007)</author>
		<pubDate>Thu, 18 Jan 2007 22:48:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>google allegro manual
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Audric)</author>
		<pubDate>Thu, 18 Jan 2007 22:56:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>thank you everyone and I will try post the pong allegro as it is my first attempt coding.</p><p>cheers
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Hotshot2007)</author>
		<pubDate>Thu, 18 Jan 2007 22:58:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>uargh. For all that is good and holy RTFM. If not in your allegro distribution, on the main-page of this site. Under &quot;manual&quot;.</p><p>I swear to god, it&#39;s like WoW has closed down and all the noobs there came here wanting to make a new one.<br />(<s>no</s> not so much offense to OP)</p><p>Maybe we should put the FAQ the top of every page, in bold font, with a warning? (failure to read FAQ will result in public ridicule and possibly removal of thread)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jonatan Hedborg)</author>
		<pubDate>Thu, 18 Jan 2007 22:59:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>excuse me....I am deaf person who are first timer on here and I agree that you should have all the newbie who should read FAQ FIRST before posting the topic.</p><p>cheers
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Hotshot2007)</author>
		<pubDate>Thu, 18 Jan 2007 23:04:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Perhaps then you need to really learn C before delving into the complexities of third party libraries?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Thu, 18 Jan 2007 23:09:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Hotshot2007 said:</div><div class="quote"><p>
I have made pong game
</p></div></div><p>
- want to make -, then. It&#39;s ok, pong is the classic &quot;first game&quot; to attempt, everybody would give this hint.</p><p>You&#39;ll see the allegro examples (in the source distribution) are a great help : you can change a parameter in them, recompile, and run to see the result.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Audric)</author>
		<pubDate>Thu, 18 Jan 2007 23:17:25 +0000</pubDate>
	</item>
</rss>
