summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-01-09 12:20:49 -0800
committerOri Bernstein <ori@eigenstate.org>2021-01-09 12:20:49 -0800
commitc207b78d079803605d8aec2fe63a059fc4bdb2c6 (patch)
tree1cdfcad65f3bbbb046f7b572edc0ecf4868a083b /sys/include
parentdda99bbfe55bcf25ec33934c40efc4f9fdca685a (diff)
libdraw: add bezierpts
This patch exposes the bezierpts function, providing a way to get the points on a path, similar how bezsplinepts gives them for b splines.
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/draw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/draw.h b/sys/include/draw.h
index 2200b0243..36a672bb4 100644
--- a/sys/include/draw.h
+++ b/sys/include/draw.h
@@ -436,6 +436,7 @@ extern Point _string(Image*, Point, Image*, Point, Font*, char*, Rune*, int, Rec
extern Point stringsubfont(Image*, Point, Image*, Subfont*, char*);
extern int bezier(Image*, Point, Point, Point, Point, int, int, int, Image*, Point);
extern int bezierop(Image*, Point, Point, Point, Point, int, int, int, Image*, Point, Drawop);
+extern int bezierpts(Point, Point, Point, Point, Point**);
extern int bezspline(Image*, Point*, int, int, int, int, Image*, Point);
extern int bezsplineop(Image*, Point*, int, int, int, int, Image*, Point, Drawop);
extern int bezsplinepts(Point*, int, Point**);