| Home
| Previous
| Next
| Up

MGL_setClipRect

Sets the current clipping rectangle.

Declaration

void MGLAPI MGL_setClipRect(
rect_t clip)

Prototype In

mgraph.h

Parameters

clip | New clipping rectangle to be used

Description

Sets the current clipping rectangle coordinates. The current clipping rectangle is used to clip all output, and is always defined as being relative to the currently active viewport. The clipping rectangle 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.

Note: Setting a new clip rectangle with this function clears any existing complex clip region in the device context.

See Also

MGL_setClipRectDC, MGL_getClipRect, MGL_setViewport, MGL_getViewport, MGL_setClipRegion

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