The following functions provide the ability to change the current viewport that is used to display all subsequent drawing operations, and to change the current clipping rectangle or clipping region within the current viewport. The clip rectangle or clip region is always set in local viewport coordinates, and can never be larger than the current viewport (it will be clipped to the viewport boundary). Complex clip regions are fully supported and allow the SciTech MGL to clip output to a non-rectangle area of the screen. This is primarily used for GUI and window manager libraries.
Also provided are functions for converting coordinates between global screen coordinates and local viewport coordinates, and for obtaining the dimensions of the current viewport.
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com