Problem with display and transformation 3D -> 2D
I would like to display a rectangle in a window of size cx, cy with OpenGL. I wish that my rectangle be to entirely post and that it is largest possible. How to know the coordinates of the tops of my rectangle so that this one is posted correctly???
For the moment, I do that:
glViewport(0, 0, cx, cy);
gluPerspective(45, (float)cx/(float) cy, 0, 1000);
Do somebody know how to solve my problem??