GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Draw.c
Go to the documentation of this file.
1 #include "driver.h"
2 #include "driverlib.h"
3 
4 
5 void DRV_draw_bitmap(int ncols, int nrows, int threshold,
6  const unsigned char *buf)
7 {
8  if (driver->draw_bitmap)
9  (*driver->draw_bitmap) (ncols, nrows, threshold, buf);
10 }
11 
12 void DRV_draw_line(int x0, int y0, int x1, int y1)
13 {
14  if (driver->draw_line)
15  (*driver->draw_line) (x0, y0, x1, y1);
16 }
17 
18 void DRV_draw_point(int x, int y)
19 {
20  if (driver->draw_point)
21  (*driver->draw_point) (x, y);
22 }
void(* draw_line)(int, int, int, int)
Definition: driver.h:60
void DRV_draw_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
Definition: Draw.c:5
int y
Definition: plot.c:34
void(* draw_bitmap)(int, int, int, const unsigned char *)
Definition: driver.h:62
void DRV_draw_point(int x, int y)
Definition: Draw.c:18
void DRV_draw_line(int x0, int y0, int x1, int y1)
Definition: Draw.c:12
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
Definition: g3drange.c:62
Definition: driver.h:25
void(* draw_point)(int, int)
Definition: driver.h:61