KiCad PCB EDA Suite
Go to the documentation of this file.
1 /* Copyright (C) 2001-2015 Peter Selinger.
2  * This file is part of Potrace. It is free software and it is covered
3  * by the GNU General Public License. See the file COPYING for details. */
6 #ifndef RENDER_H
7 #define RENDER_H
9 #include "greymap.h"
11 struct render_s
12 {
14  double x0, y0, x1, y1;
15  int x0i, y0i, x1i, y1i;
16  double a0, a1;
17  int* incrow_buf;
18 };
19 typedef struct render_s render_t;
22 void render_free( render_t* rm );
23 void render_close( render_t* rm );
24 void render_moveto( render_t* rm, double x, double y );
25 void render_lineto( render_t* rm, double x, double y );
26 void render_curveto( render_t* rm,
27  double x2,
28  double y2,
29  double x3,
30  double y3,
31  double x4,
32  double y4 );
34 #endif /* RENDER_H */
int x0i
Definition: render.h:15
double a0
Definition: render.h:16
int * incrow_buf
Definition: render.h:17
render_t * render_new(greymap_t *gm)
Definition: render.cpp:49
void render_free(render_t *rm)
Definition: render.cpp:77
int y0i
Definition: render.h:15
int y1i
Definition: render.h:15
greymap_t * gm
Definition: render.h:13
double x0
Definition: render.h:14
double x1
Definition: render.h:14
void render_lineto(render_t *rm, double x, double y)
Definition: render.cpp:163
void render_curveto(render_t *rm, double x2, double y2, double x3, double y3, double x4, double y4)
Definition: render.cpp:270
double y1
Definition: render.h:14
double y0
Definition: render.h:14
double a1
Definition: render.h:16
int x1i
Definition: render.h:15
void render_close(render_t *rm)
Definition: render.cpp:85
void render_moveto(render_t *rm, double x, double y)
Definition: render.cpp:101