GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
psdriver/Polygon.c
Go to the documentation of this file.
1 
2 #include "psdriver.h"
3 
4 void PS_Polygon_abs(const int *xarray, const int *yarray, int number)
5 {
6  int i;
7 
8  if (number < 2)
9  return;
10 
11  output("%d %d POLYGONSTART\n", xarray[0], yarray[0]);
12 
13  for (i = 1; i < number; i++)
14  output("%d %d POLYGONVERTEX\n", xarray[i], yarray[i]);
15 
16  output("POLYGONEND\n");
17 }
void PS_Polygon_abs(const int *xarray, const int *yarray, int number)
void output(const char *fmt,...)