GrFillPoly

Name

GrFillPoly -- Draw a filled polygon

Synopsis

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

Parameters

id

The ID of the window or other drawable area.

gc

The graphics context to use when drawing the point.

count

The number of points in the polygon.

pointtable

An array of GR_POINT coordinates.

Description

The GrFillPoly function draws a polygon defined by the pointtabel array. Unlike the GrPoly function, where you must set the first and last points to the same coordinates to get a closed shape, the GrFillPoly function fills in the closed shape including an assumed line from the last point to the first, if necessary.