Mercurial > MadButterfly
diff src/graph_engine_skia.cpp @ 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 | 9a867333018b |
line wrap: on
line diff
--- a/src/graph_engine_skia.cpp Thu Nov 12 21:32:52 2009 +0800 +++ b/src/graph_engine_skia.cpp Thu Nov 12 21:32:58 2009 +0800 @@ -13,8 +13,8 @@ struct _mbe_scaled_font_t { struct _mb_font_face_t *face; - mbe_matrix_t fnt_mtx; - mbe_matrix_t ctm; + co_aix fnt_mtx[6]; + co_aix ctm[6]; } struct _mbe_font_face_t {}; struct _mbe_t { @@ -39,7 +39,7 @@ mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, co_aix x1, co_aix y1) {} void mbe_pattern_set_matrix(mbe_pattern_t *ptn, - const mbe_matrix_t *matrix) {} + const co_aix matrix[6]) {} void mbe_pattern_destroy(mbe_pattern_t *canvas) {} int mbe_image_surface_get_stride(mbe_surface_t *surface) {} @@ -60,8 +60,8 @@ void mbe_scaled_font_destroy(mbe_scaled_font_t *scaled) {} mbe_font_face_t *mbe_font_face_reference(mbe_font_face_t *face) {} 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]) {} mbe_scaled_font_t *mbe_get_scaled_font(mbe_t *canvas) {} void mbe_scaled_font_text_extents(mbe_scaled_font_t *scaled, const char *txt, @@ -128,7 +128,7 @@ void mbe_clear(mbe_t *canvas) {} void mbe_copy_source(mbe_t *canvas) {} -void mbe_transform(mbe_t *mbe, mbe_matrix_t *matrix) {} +void mbe_transform(mbe_t *mbe, co_aix matrix[6]) {} void mbe_arc(mbe_t *mbe, co_aix x, co_aix y, co_aix radius, co_aix angle_start, co_aix angle_stop) {}