MGL_setClipRegion

Sets the current complex clipping region.

Declaration

void MGLAPI MGL_setClipRegion(
region_t *region)

Prototype In

mgraph.h

Description

This function sets the current complex clipping region for the current device context. Complex clip regions are defined as unions of rectangles, and allow all rendering functions in the MGL to be clipped to arbitrary regions on the screen. Setting a complex clip region override the current setting for a simple clip rectangle. The complex clip region is used to clip all output, and is always defined as being relative to the currently active viewport. The clipping region can be no larger than the currently active viewport, and will be truncated if an attempt is made to allow clipping outside of the active viewport.

See Also

MGL_setClipRegionDC, MGL_getClipRegion, MGL_setViewport, MGL_getViewport, MGL_setClipRect

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