Mail Archives: djgpp/1994/06/24/03:00:09
Hi all users of LIBGRX,
the functions 'GrUsrPolyLine' and 'GrUsrPolygon' are dummys in the
current version of LIBGRX. For anyone wants to use it I've a short
replacements for it. Just include in your application. I know they're
not implemented very efficient but it works (with GrXOR the corners will
stay at the old color).
Here my replacements:
void GrUsrPolyLine(int numpts, int points[][2], int c)
{
for (int i=0; i<numpts-1; i++)
GrUsrLine(points[i][0],points[i][1],points[i+1][0],points[i+1][1],c);
}
void GrUsrPolygon(int numpts, int points[][2], int c)
{
GrUsrPolyLine(numpts, points, c);
GrUsrLine(points[0][0],points[0][1],points[numpts-1][0],points[numpts-1][1],c);
}
If the next release of LIBGRX does not include this function in a
optimized way it would be fine if this temporary replacements would be
included.
Roland
- Raw text -