aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-02-05 12:11:30 +0100
committerMattias Andrée <maandree@kth.se>2023-02-05 12:16:17 +0100
commit4df563948b0c4086c7be5cb0ef453570d2ec40a0 (patch)
tree4e41e547491d6de7d4be530d45347267358d3d2e /common.h
parentAdd draw_linear_bezier_reference (diff)
downloadlibrifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-4df563948b0c4086c7be5cb0ef453570d2ec40a0.tar.gz
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-4df563948b0c4086c7be5cb0ef453570d2ec40a0.tar.bz2
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-4df563948b0c4086c7be5cb0ef453570d2ec40a0.tar.xz
Add tests and documentation
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 2436a6a..67a1c62 100644
--- a/common.h
+++ b/common.h
@@ -29,6 +29,8 @@
#define SIGNUM(X) (((X) > 0) - ((X) < 0))
+#define DEFAULT_DRAFTNESS 0.5
+
#define draw_vertical_line_opposite_only(...)
@@ -66,6 +68,7 @@ typedef struct rtgrpblib_cell {
typedef struct rtgrpblib_raster {
size_t height;
size_t width;
+ size_t size;
double draftness; /* TODO support 0 */
CELL cells[];
} RASTER;