Mercurial > MadButterfly
diff include/mb_paint.h @ 280:c8b6ca46950b mbtext
Add merged result
author | wycc |
---|---|
date | Sat, 31 Jan 2009 12:29:50 +0800 |
parents | 29acbd8a0dd0 |
children | 3e84458968ec |
line wrap: on
line diff
--- a/include/mb_paint.h Sat Jan 31 11:51:19 2009 +0800 +++ b/include/mb_paint.h Sat Jan 31 12:29:50 2009 +0800 @@ -24,7 +24,8 @@ (_paint)->free = _free; \ STAILQ_INIT((_paint)->members); \ (_paint)->pnt_next = NULL; \ - } while(0) \ + } while(0) +#define paint_destroy(_paint) typedef struct _grad_stop { @@ -53,5 +54,12 @@ (stop)->a = _a; \ } while(0) +/*! \brief A paint that fill or stroke shape with an image. + */ +extern paint_t *rdman_paint_image_new(redraw_man_t *rdman, + mb_img_data_t *img); +/*! \brief Set a matrix to transform image. + */ +extern void paint_image_set_matrix(paint_t *paint, co_aix matrix[6]); #endif /* __PAINT_H_ */