I made the window size 800x600. I called
gluOrtho2D(-400,400,-300,300);
glViewport(400,300,400,300);
and I drew a line from (-100,-100)to (100,100). I think I should see the line from (0,0)to (100,100), but I get the whole line. Why is this?
source
share