GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
psdriver/draw.c
Go to the documentation of this file.
1 /*!
2  \file lib/psdriver/draw.c
3 
4  \brief GRASS PS display driver
5 
6  (C) 2007-2008 by Glynn Clements and the GRASS Development Team
7 
8  This program is free software under the GNU General Public License
9  (>=v2). Read the file COPYING that comes with GRASS for details.
10 
11  \author Glynn Clements
12  */
13 
14 #include "psdriver.h"
15 
16 void PS_Begin(void)
17 {
18  output("NEW\n");
19 }
20 
21 void PS_Move(double x, double y)
22 {
23  output("%f %f MOVE\n", x, y);
24 }
25 
26 void PS_Cont(double x, double y)
27 {
28  output("%f %f CONT\n", x, y);
29 }
30 
31 void PS_Close(void)
32 {
33  output("CLOSE\n");
34 }
35 
36 void PS_Stroke(void)
37 {
38  output("STROKE\n");
39 }
40 
41 void PS_Fill(void)
42 {
43  output("FILL\n");
44 }
45 
46 void PS_Point(double x, double y)
47 {
48  output("%f %f POINT\n", x, y);
49 }
void PS_Stroke(void)
Definition: psdriver/draw.c:36
void PS_Fill(void)
Definition: psdriver/draw.c:41
void PS_Close(void)
Definition: psdriver/draw.c:31
void PS_Begin(void)
Definition: psdriver/draw.c:16
void PS_Point(double x, double y)
Definition: psdriver/draw.c:46
void PS_Cont(double x, double y)
Definition: psdriver/draw.c:26
void PS_Move(double x, double y)
Definition: psdriver/draw.c:21
void output(const char *fmt,...)
#define x