<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Translucent Primitives in 32-Bit Mode</title>
		<link>http://www.allegro.cc/forums/view/573948</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 23 Mar 2006 12:05:39 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>How do I draw a translucent triangle?<br />I read the manual but I still don&#39;t get it... (This is so embarrassing...)<br />Can anyone give me some example code?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mr. Big)</author>
		<pubDate>Mon, 20 Mar 2006 19:11:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Why don&#39;t you check allegro examples? I&#39;m sure <a href="http://www.allegro.cc/manual/miscellaneous/available-allegro-examples/exblend">http://www.allegro.cc/manual/miscellaneous/available-allegro-examples/exblend</a> should help you with what you need and maybe others as well.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (umperio)</author>
		<pubDate>Mon, 20 Mar 2006 19:46:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I checked out that webpage but none of the examples show up... <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><br />Anyway, according to the description, the example shows how to display translucent sprites.<br />I already know how to do that because there&#39;s that draw_trans_sprite function.<br />But how do I draw translucent primitives, like triangles?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mr. Big)</author>
		<pubDate>Mon, 20 Mar 2006 19:52:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/drawing_mode" target="_blank"><span class="a">drawing_mode</span></a><span class="k2">(</span>DRAW_MODE_TRANS, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Mon, 20 Mar 2006 20:11:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks!<br />But how do I make the color of the triangle translucent?<br />Should I use makeacol32?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mr. Big)</author>
		<pubDate>Mon, 20 Mar 2006 20:16:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think you have to use set_trans_blender for that.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Mon, 20 Mar 2006 21:43:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The website only contains references to the demos. You need to download the actual stuff to see them <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>If you&#39;ve downloaded the binary from this site then that doesn&#39;t include the manuals, samples, demos, etc. just the library.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Wed, 22 Mar 2006 04:37:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
But how do I make the color of the triangle translucent?
</p></div></div><p>
That depends.<br />In any case, you need to set a trans blender (or a similar blending mode).<br />If you use the primitive triangle or polygon functions, then indeed it&#39;s set_drawing_mode() you&#39;re looking for. If you use the polygon rendering functions, then you need to pass a translucient polygon type (POLYTYPE_XXXX_TRANS).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Wed, 22 Mar 2006 16:37:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>set_trans_blender for translucent primitives, and set_alpha_blender for using alpha masks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Thu, 23 Mar 2006 12:05:39 +0000</pubDate>
	</item>
</rss>
