<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Drawing text from variable in Allegro5</title>
		<link>http://www.allegro.cc/forums/view/609901</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 01 Apr 2012 18:04:54 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello allegro.cc !!</p><p>I would like to draw text from a variable with a simple function in allegro 5 but i can&#39;t find anything in the manual.</p><p>Could you tell me if there is a substitute or an easy way to emulate the following function from allegro 4.4.2 ?</p><p>Function:<br />void textprintf_ex(BITMAP *bmp, const FONT *f, int x, int y, int color, int bg, const char *fmt, ...);<br />Exemple:<br />int player_score;<br />...<br />textprintf_ex(screen, font, 10, 10, makecol(255, 100, 200),-1, &quot;Score: %d&quot;, player_score);</p><p>Also i wonder why this function dit not make it into v5, was it because of it inefficiency ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Monarch)</author>
		<pubDate>Sun, 01 Apr 2012 17:29:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The equivalent A5 function is <span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_textf"><span class="a">al_draw_textf</span></a></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sun, 01 Apr 2012 17:45:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thank you so much, perfect !</p><p>...I feel very dumb right now for missing this <img src="http://www.allegro.cc/forums/smileys/lipsrsealed.gif" alt=":-X" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Monarch)</author>
		<pubDate>Sun, 01 Apr 2012 18:04:54 +0000</pubDate>
	</item>
</rss>
