| Home
| Previous
| Next
| Up

MGL_rgnPolygonCnvxFX

Generates a solid convex polygonal region.

Declaration

region_t * MGLAPI MGL_rgnPolygonCnvxFX(
int count,
fxpoint_t *vArray,
int vinc,
fix32_t xOffset,
fix32_t yOffset)

Prototype In

mgraph.h

Parameters

count | Number of vertices to draw
vArray | Array of vertices
vinc | Increment to get to next vertex
xOffset | Offset of X coordinates
yOffset | Offset of Y coordinates

Description

This function generates a complex region that represents a convex polygon. A “convex” polygon is defined as a polygon such that every horizontal line drawn through the polygon would cross exactly two active edges (neither horizontal lines nor zero-length edges count as active edges; both are acceptable anywhere in the polygon). Right and left edges may cross (polygons may be nonsimple). Attempting to scan convert a polygon that does non fit this description will produce unpredictable results.

Note: All vertices are offset by (xOffset,yOffset) and are in 16.16 fixed point format.

See Also

MGL_rgnPolygonCnvx, MGL_rgnPolygon

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