13.016 Introduction to Geometric Modeling and Computation


OpenGL Mapping to the Viewport

OpenGL lets you specify the coordinates of the geometric primitives in any convenient coordinate system, possibly using floating point numbers. For these primitives to be displayed on the screen, however, the coordinates must be transformed into a specific integer coordinate system. These two coordinate systems are referred to as world coordinates and screen coordinates.

To perform this transformation, we must define the portion of the world coordinate system that will be mapped to the screen coordinate system.

World Coordinate Window

Screen Coordinate Viewport


On to window system interaction...
Back to drawing style...
Back to the overview...