From 5c62d4740b6691ad0cd05863da47ec92e5f0cd7f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 28 Oct 2013 23:01:28 +0000 Subject: Add tiled bitmap plotting function. --- include/libnsfb_plot.h | 4 ++++ include/plot.h | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/libnsfb_plot.h b/include/libnsfb_plot.h index b3f86d1..a563e2c 100644 --- a/include/libnsfb_plot.h +++ b/include/libnsfb_plot.h @@ -154,6 +154,10 @@ bool nsfb_plot_copy(nsfb_t *srcfb, nsfb_bbox_t *srcbox, nsfb_t *dstfb, nsfb_bbox */ bool nsfb_plot_bitmap(nsfb_t *nsfb, const nsfb_bbox_t *loc, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); +/** Plot bitmap. + */ +bool nsfb_plot_bitmap_tiles(nsfb_t *nsfb, const nsfb_bbox_t *loc, int tiles_x, int tiles_y, 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); diff --git a/include/plot.h b/include/plot.h index 38bed61..4b1545d 100644 --- a/include/plot.h +++ b/include/plot.h @@ -61,6 +61,10 @@ typedef bool (nsfb_plotfn_ellipse_fill_t)(nsfb_t *nsfb, nsfb_bbox_t *ellipse, ns */ typedef bool (nsfb_plotfn_bitmap_t)(nsfb_t *nsfb, const nsfb_bbox_t *loc, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); +/** Plot tiled bitmap + */ +typedef bool (nsfb_plotfn_bitmap_tiles_t)(nsfb_t *nsfb, const nsfb_bbox_t *loc, int tiles_x, int tiles_y, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); + /** Copy an area of screen * @@ -108,6 +112,7 @@ typedef struct nsfb_plotter_fns_s { nsfb_plotfn_ellipse_fill_t *ellipse_fill; nsfb_plotfn_arc_t *arc; nsfb_plotfn_bitmap_t *bitmap; + nsfb_plotfn_bitmap_tiles_t *bitmap_tiles; nsfb_plotfn_point_t *point; nsfb_plotfn_copy_t *copy; nsfb_plotfn_glyph8_t *glyph8; -- cgit v1.2.3