GRASS Programmer's Manual  6.4.2(2012)
Polydots.c
Go to the documentation of this file.
00001 #include "driver.h"
00002 #include "driverlib.h"
00003 
00004 void COM_Polydots_abs(const int *xarray, const int *yarray, int number)
00005 {
00006     int i;
00007 
00008     if (driver->Polydots_abs) {
00009         (*driver->Polydots_abs) (xarray, yarray, number);
00010         return;
00011     }
00012 
00013     for (i = 0; i < number; i++) {
00014         COM_Move_abs(xarray[i], yarray[i]);
00015         COM_Cont_rel(0, 0);
00016     }
00017 }
00018 
00019 void COM_Polydots_rel(const int *xarray, const int *yarray, int number)
00020 {
00021     int i;
00022 
00023     if (driver->Polydots_rel) {
00024         (*driver->Polydots_rel) (xarray, yarray, number);
00025         return;
00026     }
00027 
00028     for (i = 0; i < number; i++) {
00029         COM_Move_rel(xarray[i], yarray[i]);
00030         COM_Cont_rel(0, 0);
00031     }
00032 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines