Viewport and clip rectangle manipulation

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.

MGL_getClipRect

MGL_getClipRectDC

MGL_getClipRegion

MGL_getClipRegionDC

MGL_getViewport

MGL_getViewportDC

MGL_getViewportOrg

MGL_getViewportOrgDC

MGL_globalToLocal

MGL_globalToLocalDC

MGL_localToGlobal

MGL_localToGlobalDC

MGL_maxx

MGL_maxxDC

MGL_maxy

MGL_maxyDC

MGL_setClipRect

MGL_setClipRectDC

MGL_setClipRegion

MGL_setClipRegionDC

MGL_setRelViewport

MGL_setRelViewportDC

MGL_setViewport

MGL_setViewportDC

MGL_setViewportOrg

MGL_setViewportOrgDC

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com