summaryrefslogtreecommitdiff
path: root/potrace/render.h
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:37:17 +0530
committerGitHub2020-02-26 16:37:17 +0530
commit07a8c86216b6b1f694b136ec64c281d62941952e (patch)
treead18839d8b4eb1f13419d07878cc4ec4c9b70032 /potrace/render.h
parente255d0622297488c1c52755be670733418c994cf (diff)
parent1fa449fed953fa11f6bd0ea82cc2d3b115ee0781 (diff)
downloadKiCad-eSim-07a8c86216b6b1f694b136ec64c281d62941952e.tar.gz
KiCad-eSim-07a8c86216b6b1f694b136ec64c281d62941952e.tar.bz2
KiCad-eSim-07a8c86216b6b1f694b136ec64c281d62941952e.zip
Merge pull request #2 from saurabhb17/develop
Remaining files transfered
Diffstat (limited to 'potrace/render.h')
-rw-r--r--potrace/render.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/potrace/render.h b/potrace/render.h
new file mode 100644
index 0000000..5458df0
--- /dev/null
+++ b/potrace/render.h
@@ -0,0 +1,35 @@
+/* Copyright (C) 2001-2007 Peter Selinger.
+ * This file is part of Potrace. It is free software and it is covered
+ * by the GNU General Public License. See the file COPYING for details. */
+
+/* $Id: render.h 147 2007-04-09 00:44:09Z selinger $ */
+
+#ifndef RENDER_H
+#define RENDER_H
+
+#include <greymap.h>
+
+struct render_s
+{
+ greymap_t* gm;
+ double x0, y0, x1, y1;
+ int x0i, y0i, x1i, y1i;
+ double a0, a1;
+ int* incrow_buf;
+};
+typedef struct render_s render_t;
+
+render_t* render_new( greymap_t* gm );
+void render_free( render_t* rm );
+void render_close( render_t* rm );
+void render_moveto( render_t* rm, double x, double y );
+void render_lineto( render_t* rm, double x, double y );
+void render_curveto( render_t* rm,
+ double x2,
+ double y2,
+ double x3,
+ double y3,
+ double x4,
+ double y4 );
+
+#endif /* RENDER_H */