aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-02-08 22:32:50 +0100
committerMattias Andrée <maandree@kth.se>2023-02-08 22:32:50 +0100
commit1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5 (patch)
treed78cdae8038bfe643668a9ab5221f30649363ec2 /common.h
parentFix warnings and infinite loop bug (diff)
downloadlibrifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5.tar.gz
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5.tar.bz2
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5.tar.xz
Test rtgrpblib_draw_linear_bezier
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/common.h b/common.h
index 2e8b8bc..80f807c 100644
--- a/common.h
+++ b/common.h
@@ -159,4 +159,25 @@ intolerant_eq(double a, double b)
}\
} while (0)
+# if 0
+static void
+print_raster(const RASTER *r) {
+ size_t y, x;
+ fprintf(stderr, "\nOutline (area)\n");
+ for (y = 0; y < r->height; y++) {
+ for (x = 0; x < r->width; x++)
+ fprintf(stderr, r->cells[y * r->width + x].cell_coverage ? "%+.4lf " : " 0 ",
+ r->cells[y * r->width + x].cell_coverage);
+ printf("\n");
+ }
+ fprintf(stderr, "\nOutline (shadow)\n");
+ for (y = 0; y < r->height; y++) {
+ for (x = 0; x < r->width; x++)
+ fprintf(stderr, r->cells[y * r->width + x].opposite_coverage ? "%+.4lf " : " 0 ",
+ r->cells[y * r->width + x].opposite_coverage);
+ printf("\n");
+ }
+}
+# endif
+
#endif