GrPoly()

Name

GrPoly() -- Draw a polygon

Synopsis

void GrPoly ( GR_DRAW_ID id , GR_GC_ID gc , GR_COUNT count , GR_POINT * pointtable );

Description

This function draws a frame polygon on the specified drawable using the graphics context gc. The polygon is specified by an array of GR_POINT structures in which each point represents a vertex of the polygon.

Note

The polygon is NOT automatically closed. If you wish to draw a closed polygon the first and last point in the point table must specify the same coordinates.

Parameters

TypeNameDescription
GR_DRAW_IDidThe ID of the drawable to draw the polygon onto.
GR_GC_IDgcThe ID of the graphics context to use when drawing the polygon.
GR_COUNTcountThe number of points in the point table.
GR_POINT*pointtable A pointer to an array of GR_POINT structures which define the vertices of the polygon.

See Also

GrFillPoly(), GrDrawLines(), GrRect(), GrEllipse(), GrArc(), GrArcAngle().