summaryrefslogtreecommitdiff
path: root/include/nsfb_plot.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-01-06 22:26:55 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-01-06 22:26:55 +0000
commitfd3c7753435658a6aeebf1b68d18178a6c7cf57d (patch)
treef17b620b6f7831476cae8d4f97ca8c2f9cbaa7b5 /include/nsfb_plot.h
parentdfc3faf3fdf331e806cf43971c2251e65111f065 (diff)
downloadlibnsfb-fd3c7753435658a6aeebf1b68d18178a6c7cf57d.tar.gz
libnsfb-fd3c7753435658a6aeebf1b68d18178a6c7cf57d.tar.bz2
add bezier curve plotters
svn path=/trunk/libnsfb/; revision=9794
Diffstat (limited to 'include/nsfb_plot.h')
-rw-r--r--include/nsfb_plot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/nsfb_plot.h b/include/nsfb_plot.h
index 790a923..52af7cd 100644
--- a/include/nsfb_plot.h
+++ b/include/nsfb_plot.h
@@ -83,6 +83,14 @@ typedef bool (nsfb_plotfn_glyph1_t)(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_
*/
typedef bool (nsfb_plotfn_readrect_t)(nsfb_t *nsfb, nsfb_bbox_t *rect, nsfb_colour_t *buffer);
+/** Plot quadratic bezier spline
+ */
+typedef bool (nsfb_plotfn_quadratic_bezier_t)(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsfb_colour_t c);
+
+/** Plot cubic bezier spline
+ */
+typedef bool (nsfb_plotfn_cubic_bezier_t)(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsfb_point_t *ctrlb, nsfb_colour_t c);
+
/** plotter function table. */
typedef struct nsfb_plotter_fns_s {
nsfb_plotfn_clg_t *clg;
@@ -101,6 +109,8 @@ typedef struct nsfb_plotter_fns_s {
nsfb_plotfn_glyph8_t *glyph8;
nsfb_plotfn_glyph1_t *glyph1;
nsfb_plotfn_readrect_t *readrect;
+ nsfb_plotfn_quadratic_bezier_t *quadratic;
+ nsfb_plotfn_cubic_bezier_t *cubic;
} nsfb_plotter_fns_t;