I'm struggling to figure something out, let them say im to an image having a height of 100 and a width of 100.
In scenario A
I accept glOrtho(0,100,0,100,-100,100) and glViewPort(0,0,50,50) when glOrthois is defined as (left, right, lower, upper, zNear, zFar) and glViewPort (lower left corner x, lower left angle y, width, height).
In scenario B
I take a glOrtho(0,50,0,50,-100,100) and glViewPort(0,0,100,100) when glOrthois is defined as (left, right, bottom, top, zNear, zFar) and glViewPort is defined (bottom left corner x, bottom left corner y, width, height)
This basically means that in scenario A, the image will be displayed at a lower width and height than required (that is, st will be displayed every two pixels). In the original image, one will be displayed on the target "surface", but the whole image will be visible.
In Scenario B, however, the image will be cropped and only the upper left quarter will be visible. I'm right? - just to be clear, this is a question from the CG im tommorow test, and I want to make sure that I got OpenGL correctly ... (already read the API ... =\ )