From 762784c01baec27dffcf1437b2427a45d82a59de Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 8 Apr 2009 21:39:21 +0000 Subject: add font glyph plotting support svn path=/trunk/libnsfb/; revision=7068 --- include/libnsfb_plot.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/libnsfb_plot.h') diff --git a/include/libnsfb_plot.h b/include/libnsfb_plot.h index 64aa729..2b19b52 100644 --- a/include/libnsfb_plot.h +++ b/include/libnsfb_plot.h @@ -69,4 +69,13 @@ bool nsfb_plot_copy(nsfb_t *nsfb, int srcx, int srcy, int width, int height, int /** Plot bitmap. */ -bool nsfb_plot_bitmap(nsfb_t *nsfb, nsfb_bbox_t *loc, nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); +bool nsfb_plot_bitmap(nsfb_t *nsfb, nsfb_bbox_t *loc, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); + +/** Plot an 8 bit glyph. + */ +bool nsfb_plot_glyph8(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c); + + +/** Plot an 1 bit glyph. + */ +bool nsfb_plot_glyph1(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c); -- cgit v1.2.3