GrFillPoly()

Name

GrFillPoly() -- Draw a filled polygon

Synopsis

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

Description

This function draws a filled 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 automatically closed, the last point in the point table does not need to be explicitly specified to be the same as the first point.

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

GrFillRect(), GrPoly(), GrFillPoly(), GrFillEllipse().