updated coordinate system documentation

git-svn-id: svn://anubis/anaglym/trunk@276 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2010-03-03 16:09:46 +00:00
parent 50bf5c1a0a
commit a072c49b0e
3 changed files with 12 additions and 1 deletions

1
.todo
View File

@ -1,2 +1,3 @@
add audio capabilities add audio capabilities
add gradient functionality add gradient functionality
fix blending of overlay drawing routines

View File

@ -81,7 +81,12 @@ The Z axis extends positively into the "air" above the XY plane, and the
default gravity vector pulls along the negative Z axis. default gravity vector pulls along the negative Z axis.
</p> </p>
<p> <p>
FIXME: 2D coordinates When 2D coordinates are used (with mouse cursor positions and
overlay drawing routines), the origin is in the lower-left corner of
the screen.
The X axis increases positively toward the right edge of the screen.
The Y axis increases positively toward the top of the screen.
The upper-right pixel on the screen has coordinates (width-1, height-1).
</p> </p>

View File

@ -80,4 +80,9 @@ function update_overlay_event(width, height)
end end
ag.fillArc(1, 1, 0, 50, 50, 30, 30, 330) ag.fillArc(1, 1, 0, 50, 50, 30, 30, 330)
ag.fillCircle(1, 0, 1, width - 50, height - 50, 40) ag.fillCircle(1, 0, 1, width - 50, height - 50, 40)
ag.drawRect(1, 0.5, 0, width, height, width/2, height/2)
ag.drawPoint(1, 0, 1, 0, 0, 0)
ag.drawPoint(1, 0, 1, 0, width-1, height-1)
ag.drawPoint(1, 0, 1, 1, -1, -1)
ag.drawPoint(1, 0, 1, 1, width, height)
end end