Mail Archives: djgpp/1998/04/30/19:00:43
Peter Steele writes:
>I an a little bit new to allegro and was wondering if someome could tell
>me how I can move the coordinate system, eg move the origin to the
>centre of the screen.
Just add an offset onto your coordinates before you draw the shapes...
>I am asking this because when I tried a simple rotating cube problem
>but trying to keep the cube on the screen was a problem when i used the
>3-d to 2-d function (can't remember the exact name).
If you mean the persp_project() routine, you should use
set_projection_viewport() to specify which part of the 2d screen should
be used for projecting the 3d world coordinates.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -