Supported Browsers Home   
MGL_fillPolygon Previous   
MGL_fillPolygonCnvxFX Next   
External Functions Up   

MGL_fillPolygonCnvx

Scan converts a filled convex polygon.

Declaration

void MGLAPI MGL_fillPolygonCnvx(
    int count,
    point_t *vArray,
    int xOffset,
    int yOffset)

Prototype In

mgraph.h

Parameters

count

Number of vertices to draw

vArray

Array of vertices

xOffset

Offset of X coordinates

yOffset

Offset of Y coordinates

 

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_fillPolygonCnvxFX function. Hence MGL_fillPolygonCnvxFX is more efficient, so you should use that version instead.

Note:    All vertices are offset by (xOffset,yOffset).

See Also

MGL_fillPolygonCnvxFX

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