|
|
|
|
MGL_fillPolygon
Fills an arbitrary polygon.
Declaration
void MGLAPI MGL_fillPolygon(
int count,
point_t *vArray,
int xOffset,
int yOffset)
Prototype In
mgraph.h
Parameters
count |
Number of vertices in polygon |
vArray |
Array of vertices in polygon |
xOffset |
x coordinate offset value |
yOffset |
y coordinate offset value |
Description
This function is provided for backwards compatibility, and expects the array of points to be passed in as integers. Internally the MGL works in fixed point, so this function simply converts the coordinates to fixed point and passes them to the MGL_fillPolygonFX function. Hence MGL_fillPolygonFX is more efficient, so you should use that version instead.
Note: All vertices are offset by (xOffset,yOffset).
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com