The
viewport specifies the dimensions and of the 2D window where the rendering
occurs:
glViewport(x,
y, width, height);
The
arguments are in pixels.
The
viewport is automatically set to the window size when the rendering context is
created.
Typically
one sets the viewport whenever the window size changes.