<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>extrude tool</title>
		<link>http://www.allegro.cc/forums/view/616156</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 31 Mar 2016 08:43:30 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello!</p><p>I have created a <a href="https://github.com/arvidsson/extrude">small tool for extruding tiles in a tileset</a> (i.e. extending the outermost pixel layer in each tile and then putting these extended tiles back together into a tileset) in order to render stuff pixel perfect in for example Unity. I couldn&#39;t find a similar tool that either didn&#39;t work correctly with alpha nor costed a lot of money, so I made it on me own in Allegro and it was a fun little project. Hopefully someone might have use for it <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc ( Arvidsson)</author>
		<pubDate>Sun, 27 Mar 2016 15:50:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It might be useful some day, thanks!</p><p>BTW, your code is just the example I needed of how to wrap ALLEGRO_BITMAP on a shared pointer, thanks as well for that!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rodolfo Lam)</author>
		<pubDate>Mon, 28 Mar 2016 05:27:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Then it wasn&#39;t in vain <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Here&#39;s a tip how to wrap in unique_ptr if you ever have a need:</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">template</span><span class="k3">&lt;</span><span class="k1">typename</span> T&gt; <span class="k1">using</span> deleted_unique_ptr <span class="k3">=</span> std::unique_ptr<span class="k3">&lt;</span>T, std::function<span class="k3">&lt;</span><span class="k1">void</span><span class="k2">(</span>T<span class="k3">*</span><span class="k2">)</span><span class="k3">&gt;</span><span class="k3">&gt;</span><span class="k2">;</span>

deleted_unique_ptr<span class="k3">&lt;</span>ALLEGRO_BITMAP&gt; bitmap<span class="k2">(</span><a href="http://www.allegro.cc/manual/al_create_bitmap"><span class="a">al_create_bitmap</span></a><span class="k2">(</span>w, h<span class="k2">)</span>, <span class="k2">[</span><span class="k2">]</span><span class="k2">(</span><a href="http://www.allegro.cc/manual/ALLEGRO_BITMAP"><span class="a">ALLEGRO_BITMAP</span></a><span class="k3">*</span> b<span class="k2">)</span> <span class="k2">{</span> <a href="http://www.allegro.cc/manual/al_destroy_bitmap"><span class="a">al_destroy_bitmap</span></a><span class="k2">(</span>b<span class="k2">)</span><span class="k2">;</span> <span class="k2">}</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc ( Arvidsson)</author>
		<pubDate>Wed, 30 Mar 2016 15:03:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s actually a brilliant solution. Maybe I was not understanding how Smart pointers really worked on C++ but this kinda just made it clear.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rodolfo Lam)</author>
		<pubDate>Thu, 31 Mar 2016 08:43:30 +0000</pubDate>
	</item>
</rss>
