<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>rotate_sprite - &quot;Isufficient context&quot; ?</title>
		<link>http://www.allegro.cc/forums/view/590741</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 28 Mar 2007 19:14:38 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hey-o!</p><p>While working on a project with DevC++ and allegro, my first use of the rotate_sprite function has met with problems.</p><p>rotate_sprite(PreScreen, BlipBit, int, int, (double * (128 / Pi) ) );</p><p>(I&#39;ve substituted the types for the names of the variables I&#39;m using)</p><p>That &#39;double&#39; is an angle in radians.</p><p>There&#39;s no problem with the bitmaps or co-ordinates (I&#39;ve used them in previous draw_sprite s) but the addition of rotation has prompted the error of &quot;insufficient contextual information to determine type&quot; on the Line where rotate_sprite is called. I&#39;ve already tried converting the angle to float, int, and a few other types, all with the same problem.</p><p>Just what needs to be done to get that angle recognized?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Yuri2356)</author>
		<pubDate>Tue, 27 Mar 2007 18:12:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to pass a &quot;fixed&quot; to the function. <s>You don&#39;t pass radians, either.</s> Look up these:
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/ftofix" target="_blank"><span class="a">ftofix</span></a>
<a href="http://www.allegro.cc/manual/rotate_sprite" target="_blank"><span class="a">rotate_sprite</span></a>
</pre></div></div><p>

[edit]<br />Well, you already don&#39;t pass radians.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 27 Mar 2007 18:14:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>*</p><p>Maybe paste some more code, copied exactly (make sure to use [code] blocks), preferably no more then 15 lines in length along with an exact copy of the error message?</p><p><sub>

* deleted due to inaccuracy
</sub>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Wed, 28 Mar 2007 00:50:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Dustin Dettmer said:</div><div class="quote"><p>
Shouldn&#39;t &#39;double&#39; actually be a variable of some sort? Shouldn&#39;t the two &#39;int&#39;s also be variables instead?
</p></div></div><p>
</p><div class="quote_container"><div class="title">Yuri2356 said:</div><div class="quote"><p>
I&#39;ve substituted the types for the names of the variables I&#39;m using
</p></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Wed, 28 Mar 2007 00:52:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>My only real reply to this thread so far, since I haven&#39;t used the rotation function in question, is why would you replace variable names with data types in sample code?? It&#39;s difficult to help you if we aren&#39;t looking at the actual code.</p><p>I originally thought you were trying to pass a (double *) in for the angle which had me way confused...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (bamccaig)</author>
		<pubDate>Wed, 28 Mar 2007 01:08:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, converting my angle with ftofix is making everything run smoothly.</p><p>This shoulnd&#39;t be a problem any more. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Yuri2356)</author>
		<pubDate>Wed, 28 Mar 2007 19:14:38 +0000</pubDate>
	</item>
</rss>
