|
|
|
|
MGL_unionRegionRect
Computes the Boolean union of a region and a rectangle.
Declaration
ibool MGLAPI MGL_unionRegionRect(
region_t *r1,
const rect_t *r2)
Prototype In
mgraph.h
Parameters
r1 |
Region with which r2 is unioned, and also becomes the result region. |
r2 |
Rectangle to be unioned with r1 |
Return Value
True if the union is valid, false if an empty region was created.
Description
Computes the Boolean union of a region r1 and rectangle r2, computing the resulting region in r1, which may result in an empty region. If you need to retain the value of r1, you need to first copy r1 to a temporary region.
This routine is faster than using MGL_unionRegion if the region to be unioned is a simple rectangle rather than a complex region.
See Also
MGL_diffRegion, MGL_sectRegion, MGL_unionRegion, MGL_unionRegionOfs
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com