www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/24/03:00:09

Date: Fri, 24 Jun 94 02:48:36 EDT
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: GRX-Function
From: K3A0270 AT EMAIL1 DOT edvz DOT uni-linz DOT ac DOT at (Exler Roland)
Reply-To: K3A0270 AT ALIJKU11 DOT edvz DOT uni-linz DOT ac DOT at

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019