Mercurial > MadButterfly
diff include/mb_graph_engine_skia.h @ 473:ba64f928542b Android_Skia
Remove mbe_matrix_t type.
The struct mbe_matrix_t is defined in a layout accoriding definition
of Cairo. It is not feasible for all graphic engine. Now, we start
supporting of other graphic engine; Skia, so use type of (co_aix[6])
defined and used by MadButterfly intead of mbe_matrix_t. And, bridges
of graphic engines are responsible for translate matrics into the
matrix type of the graphic enigne.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 12 Nov 2009 21:32:58 +0800 |
parents | 4254eaa699d0 |
children | b27a3460c7bd |
line wrap: on
line diff
--- a/include/mb_graph_engine_skia.h Thu Nov 12 21:32:52 2009 +0800 +++ b/include/mb_graph_engine_skia.h Thu Nov 12 21:32:58 2009 +0800 @@ -32,11 +32,6 @@ typedef struct _mbe_font_face_t mbe_font_face_t; typedef struct _mbe_surface_t mbe_surface_t; typedef struct _mbe_pattern_t mbe_pattern_t; -typedef struct { - co_aix xx; co_aix yx; - co_aix xy; co_aix yy; - co_aix x0; co_aix y0; -} mbe_matrix_t; typedef struct _mbe_t mbe_t; extern void mbe_pattern_add_color_stop_rgba(mbe_pattern_t *ptn, @@ -63,10 +58,10 @@ extern void mbe_set_source_surface(mbe_t *canvas, mbe_surface_t *surface, co_aix x, co_aix y); extern mbe_scaled_font_t * -mbe_scaled_font_create(mbe_font_face_t *face, mbe_matrix_t *fnt_mtx, - mbe_matrix_t *ctm); +mbe_scaled_font_create(mbe_font_face_t *face, co_aix fnt_mtx[6], + co_aix ctm[6]); extern void mbe_pattern_set_matrix(mbe_pattern_t *ptn, - const mbe_matrix_t *matrix); + const co_aix matrix[6]); extern void mbe_font_face_destroy(mbe_font_face_t *face); extern void mbe_paint_with_alpha(mbe_t *canvas, co_aix alpha); extern void mbe_surface_destroy(mbe_surface_t *surface); @@ -116,7 +111,7 @@ extern mb_img_fmt_t mbe_image_surface_get_format(mbe_surface_t *surface); extern mbe_surface_t * mbe_image_surface_create(mb_img_fmt_t fmt, int width, int height); -extern void mbe_transform(mbe_t *mbe, mbe_matrix_t *matrix); +extern void mbe_transform(mbe_t *mbe, co_aix matrix[6]); extern void mbe_arc(mbe_t *mbe, co_aix x, co_aix y, co_aix radius, co_aix angle_start, co_aix angle_stop); /* @} */