<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Thing 1.0</title>
		<link>http://www.allegro.cc/forums/view/589392</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 05 Jan 2007 09:39:10 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>After talking with juv a bunch, I&#39;ve decided to release Thing version 1.0</p><p>I don&#39;t have a good name for it yet, so I&#39;m calling it thing.</p><p>Basically it wraps allegro (triple buffer, page flipping, double buffer etc), Opengl and Direct3D.  You get a nice little 2D gfx interface that can go where no game has gone before!</p><p>Well maybe they have gone there before but at least you can get there easily.</p><p>Heres an example program that gives you a green screen:
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td><span class="p">#include "conf.h"</span></td></tr><tr><td class="number">2</td><td><span class="p">#include "bitmap.h"</span></td></tr><tr><td class="number">3</td><td>&#160;</td></tr><tr><td class="number">4</td><td><span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span></td></tr><tr><td class="number">5</td><td><span class="k2">{</span></td></tr><tr><td class="number">6</td><td>  <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">7</td><td>&#160;</td></tr><tr><td class="number">8</td><td>  Conf conf<span class="k2">(</span>Conf::WINDOWED, Conf::HARDWARE<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">9</td><td>&#160;</td></tr><tr><td class="number">10</td><td>  conf.beginScene<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">11</td><td>  conf.clearScreen<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">12</td><td>&#160;</td></tr><tr><td class="number">13</td><td>  Bitmap::rect<span class="k2">(</span><span class="n">0</span>, <span class="n">0</span>, <span class="n">640</span>, <span class="n">480</span>, Tint<span class="k2">(</span><span class="n">0</span>, <span class="n">1</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">14</td><td>    </td></tr><tr><td class="number">15</td><td>  conf.flip<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">16</td><td>&#160;</td></tr><tr><td class="number">17</td><td>  <a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">18</td><td><span class="k2">}</span></td></tr><tr><td class="number">19</td><td><a href="http://www.allegro.cc/manual/END_OF_MAIN" target="_blank"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span></td></tr></tbody></table></div></div><p>
<a href="http://www.allegro.cc/files/attachment/590924">DOWNLOAD IT NOW</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Wed, 03 Jan 2007 05:37:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks Dustin, I&#39;ll see if I can&#39;t use it in my current game project, that&#39;s what my Display class was going to do anyway, it just does double buffering at the moment though.</p><p>[edit]<br /><img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" /> what&#39;s one hell of a lot of linker options ^_^<br />So what does this thing have over OpenLayer?<br />[/edit]</p><p>In Conf.cpp you have included aldumb.h... this file is not needed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Steve Terry)</author>
		<pubDate>Wed, 03 Jan 2007 06:01:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
So what does this thing have over OpenLayer?
</p></div></div><p>
Support for D3D and allegro.  OpenLayer just supports OpenGL.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Wed, 03 Jan 2007 06:47:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Why&#39;s a color called Tint? The tint-parameter in Bitmap&#39;s drawing routines doesn&#39;t tint the image, but instead is multiplied with the pixel colors.</p><p>Why does Bitmap have the primitive routines as static methods? And why can&#39;t the obviously overloaded methods have the same name? And all the drawing goes to the screen, so why to give such long names for the methods (magicBlitToScreen). Also, non-power-of-two Bitmaps are just crudely stretched.</p><p>However, the code is pretty clean and quite easy to read. </p><p>And I still think our projects should be merged <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Wed, 03 Jan 2007 17:13:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
And I still think our projects should be merged <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div></div><p>

You forget about the C zealots. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Faerber)</author>
		<pubDate>Wed, 03 Jan 2007 23:56:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I already have some<i>thing</i> better.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Simon Parzer)</author>
		<pubDate>Thu, 04 Jan 2007 02:24:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
You forget about the C zealots.
</p></div></div><p>
Well, the Thing is made with C++ as well.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Thu, 04 Jan 2007 03:17:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have an idea.<br />Chose an allegro example, like exsprite.c, and add some lines of code to show us how your thing works, running under all possible configurations.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paul whoknows)</author>
		<pubDate>Thu, 04 Jan 2007 08:55:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I haven&#39;t really messed around with it, but I do have some questions. Is there some way to explicitly use either D3D or OGL at your choice, or does it autodetect what it thinks will be best? Is Allegro necessary, or can it operate (graphics at least) solely on its own? Bitmap::rect... I see no parameter telling it which bitmap to draw to. Is it always assumed it will be drawing to the screen, with no way to change this? Oh, and with Tint...is there alpha available or only RGB?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elverion)</author>
		<pubDate>Thu, 04 Jan 2007 09:36:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Tint has the following attributes:
</p><ul><li><p>r</p></li><li><p>g</p></li><li><p>b</p></li><li><p>a</p></li><li><p>additiveBlending</p></li></ul><p>

You can access them in that order with the constructor.  Tint(r, g, b, a, additiveBlending).</p><p>The second parameter to Conf::Conf can be Conf::SOFTWARE, Conf::HARDWARE, or Conf::D3D.</p><p>Originally there wasn&#39;t going to be a D3D driver, which is why OpenGL is named HARDWARE.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Fri, 05 Jan 2007 00:40:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I agree with flad that the two projects should be merged.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (juvinious)</author>
		<pubDate>Fri, 05 Jan 2007 09:39:10 +0000</pubDate>
	</item>
</rss>
