Introduction - If you have any usage issues, please Google them yourself
The OpenGL function glViewport allows to define the region of the window where the final image will be mapped.
This example shows an object from different points of view. Use left click to turn the perspective view, and right click to turn the teapot.