<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Display coordinate origin?</title>
		<link>http://www.allegro.cc/forums/view/618311</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 25 Dec 2020 14:02:57 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I couldn&#39;t find anything directly related to this in the docs, and looking it up showed a similar question where someone said that the pixel coordinates start at (1,1). Does the display do the same? Would a mouse click on the top left pixel of a display count as (1,1) or (0,0)?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (AleaInfinitus)</author>
		<pubDate>Fri, 25 Dec 2020 01:39:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>0,0 is the origin in allegro, starting at the upper left
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Fri, 25 Dec 2020 13:06:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/618311/1048557#target">AleaInfinitus</a> said:</div><div class="quote"><p>
someone said that the pixel coordinates start at (1,1)
</p></div></div><p>
Where did you see that? </p><p>It should be (0,0) or (0.5, 0.5) (see the primatives addon docs because &quot;pixels&quot; in 3D APIs have to be &quot;centered&quot; on the pixel or anti-aliasing will screw up. In that case, simply add 0.5 at the end. But since I don&#39;t use anti-aliased lines I&#39;ve never even had the problem show up.)</p><p>There are things like (-1,-1) to (1,1) floating point device space and stuff like that but since Allegro is already setting up the &quot;transforms&quot; you should only have to specify the usual screen/window coordinates.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Fri, 25 Dec 2020 14:02:57 +0000</pubDate>
	</item>
</rss>
