Mercurial > MadButterfly
comparison include/mb_graph_engine_openvg.h @ 606:e21eb54c7d9c openvg
Implement radial gradient paint.
- Refactory linear gradient creation function to share code with
radial gradient creation function.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 04 Jul 2010 16:31:39 +0800 |
parents | 38514a7c6b26 |
children | 51dc49fd34a8 |
comparison
equal
deleted
inserted
replaced
605:a8fa4c550fe5 | 606:e21eb54c7d9c |
---|---|
17 #define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0) | 17 #define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0) |
18 #define mbe_image_surface_get_height(surface) (1) | 18 #define mbe_image_surface_get_height(surface) (1) |
19 #define mbe_image_surface_get_width(surface) (1) | 19 #define mbe_image_surface_get_width(surface) (1) |
20 #define mbe_image_surface_get_data(surface) ((unsigned char *)NULL) | 20 #define mbe_image_surface_get_data(surface) ((unsigned char *)NULL) |
21 #define mbe_scaled_font_reference(scaled) ((mbe_scaled_font_t *)NULL) | 21 #define mbe_scaled_font_reference(scaled) ((mbe_scaled_font_t *)NULL) |
22 #define mbe_pattern_create_radial(cx0, cy0, radius0, \ | |
23 cx1, cy1, radius1, stops, stop_cnt) \ | |
24 ((mbe_pattern_t *)NULL) | |
25 #define mbe_pattern_create_image(img) ((mbe_pattern_t *)NULL) | 22 #define mbe_pattern_create_image(img) ((mbe_pattern_t *)NULL) |
26 #define mbe_scaled_font_destroy(scaled) | 23 #define mbe_scaled_font_destroy(scaled) |
27 #define mbe_font_face_reference(face) ((mbe_font_face_t *)NULL) | 24 #define mbe_font_face_reference(face) ((mbe_font_face_t *)NULL) |
28 #define mbe_scaled_font_create(face, fnt_mtx, ctm) ((mbe_scaled_font_t *)NULL) | 25 #define mbe_scaled_font_create(face, fnt_mtx, ctm) ((mbe_scaled_font_t *)NULL) |
29 #define mbe_pattern_set_matrix(ptn, mtx) | 26 #define mbe_pattern_set_matrix(ptn, mtx) |
134 } while(0) | 131 } while(0) |
135 | 132 |
136 extern EGLNativeDisplayType _ge_openvg_disp_id; | 133 extern EGLNativeDisplayType _ge_openvg_disp_id; |
137 extern mbe_t *_ge_openvg_current_canvas; | 134 extern mbe_t *_ge_openvg_current_canvas; |
138 | 135 |
136 extern mbe_pattern_t *mbe_pattern_create_radial(co_aix cx0, co_aix cy0, | |
137 co_aix radius0, | |
138 co_aix cx1, co_aix cy1, | |
139 co_aix radius1, | |
140 grad_stop_t *stops, | |
141 int stop_cnt); | |
139 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, | 142 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, |
140 co_aix x1, co_aix y1, | 143 co_aix x1, co_aix y1, |
141 grad_stop_t *stops, | 144 grad_stop_t *stops, |
142 int stop_cnt); | 145 int stop_cnt); |
143 extern void mbe_set_source_rgba(mbe_t *canvas, co_comp_t r, co_comp_t g, | 146 extern void mbe_set_source_rgba(mbe_t *canvas, co_comp_t r, co_comp_t g, |