GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Cont.c
Go to the documentation of this file.
1 #include "driver.h"
2 #include "driverlib.h"
3 
4 void COM_Cont_abs(int x, int y)
5 {
6  DRV_draw_line(cur_x, cur_y, x, y);
7  cur_x = x;
8  cur_y = y;
9 }
10 
11 void COM_Cont_rel(int x, int y)
12 {
13  COM_Cont_abs(cur_x + x, cur_y + y);
14 }
int cur_y
Definition: driver/init.c:38
void COM_Cont_rel(int x, int y)
Definition: Cont.c:11
int y
Definition: plot.c:34
void DRV_draw_line(int x0, int y0, int x1, int y1)
Definition: Draw.c:12
int cur_x
Definition: driver/init.c:37
void COM_Cont_abs(int x, int y)
Definition: Cont.c:4