Coconut_Crab
11-20-2004, 04:14 PM
In the official reference the description for glViewport() is
glViewport specifies the affine transformation of x and y from normalized device coordinates to window coordinates. Let (xnd, ynd) be normalized device coordinates. Then the window coordinates (xw, yw) are computed as follows:
xw = (xnd + 1) · (width / 2) + x
yw = (ynd + 1) · (height / 2) + y
My question is: what does this "normalized device coordinates" mean?
Thank you in advance for your help.
Coco
glViewport specifies the affine transformation of x and y from normalized device coordinates to window coordinates. Let (xnd, ynd) be normalized device coordinates. Then the window coordinates (xw, yw) are computed as follows:
xw = (xnd + 1) · (width / 2) + x
yw = (ynd + 1) · (height / 2) + y
My question is: what does this "normalized device coordinates" mean?
Thank you in advance for your help.
Coco