PDA

View Full Version : Center of the screen



leanfrei
09-29-2012, 12:02 PM
Good morning, every one.

How do I put the coordinate (0,0) in the center of my window.
When I draw something it apears on the bottom of the screen.

Thanks.

V-man
09-29-2012, 01:32 PM
Here you go
http://www.opengl.org/wiki/FAQ#Fullscreen_quad

leanfrei
09-29-2012, 01:51 PM
Thanks friend, but when I did this one of my drawings disappeared

tonyo_au
09-29-2012, 05:52 PM
Be careful. The screen coordinates with this method are x -1 to 1, y -1 to 1. You probably need to scale you coordinates to this range. (In fact that is what the projection and view matrices are for).