DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

FillPolygons(D3nfb)


FillPolygons -- NFB routine to fill polygons

Synopsis

#include "nfbGCStr.h"

void xxxFillPolygons ( GCPtr pGC, DrawablePtr pDraw, DDXPointPtr *pppt, int *pnpts, int npgns, int shape, int fill) ;

Description

Arguments


pGC
points to an nfbGCOps(D4nfb) structure. From this structure you can extract the planemask, alu, and color for the polygons. See the sample code in FillSpans(D3nfb) for how this is done. All drawing routines that have a pGC pointer passed as the first parameter need to extract this information the same way.

pDraw
pointer to an X structure called DrawableRec. This pointer is only used to access your screen private data. The ScreenRec structure is pointed to by pDraw->pScreen. Your screen private is connected to the bottom of ScreenRec.

pppt
points to the first in a series of DDXPointRec(D4nfb) structures that contain the starting x and y coordinates for each polygon.

pnpts
points to an array of points that define the vertices of the polygon.

npgns
defines the number of points in the polygon.

shape
indicates the shape of the polygon. Convex shapes are special cases. See X.h for more information.

fill
defines the fill style.

Exit codes

None

Version applicability

This function is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

References

nfbGCOps(D4nfb)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005