comparison include/mb_graph_engine_openvg.h @ 610:e78bff7d23d3 openvg

create pattern from surface for OpenVG
author Thinker K.F. Li <thinker@branda.to>
date Mon, 05 Jul 2010 14:29:26 +0800
parents 6c74bc371e37
children 38383f5f645d
comparison
equal deleted inserted replaced
609:287db640078d 610:e78bff7d23d3
9 #include "mb_img_ldr.h" 9 #include "mb_img_ldr.h"
10 10
11 /*! \defgroup mb_ge_cairo MadButterfly Graphic Engine with Cairo 11 /*! \defgroup mb_ge_cairo MadButterfly Graphic Engine with Cairo
12 * @{ 12 * @{
13 */ 13 */
14 #define mbe_pattern_create_for_surface(canvas) ((mbe_pattern_t *)NULL)
15 #define mbe_scaled_font_text_extents(scaled, utf8, extents) 14 #define mbe_scaled_font_text_extents(scaled, utf8, extents)
16 #define mbe_image_surface_get_stride(surface) (20) 15 #define mbe_image_surface_get_stride(surface) (20)
17 #define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0) 16 #define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0)
18 #define mbe_image_surface_get_height(surface) (surface)->h 17 #define mbe_image_surface_get_height(surface) (surface)->h
19 #define mbe_image_surface_get_width(surface) (surface)->w 18 #define mbe_image_surface_get_width(surface) (surface)->w
129 } while(0) 128 } while(0)
130 129
131 extern EGLNativeDisplayType _ge_openvg_disp_id; 130 extern EGLNativeDisplayType _ge_openvg_disp_id;
132 extern mbe_t *_ge_openvg_current_canvas; 131 extern mbe_t *_ge_openvg_current_canvas;
133 132
133 extern mbe_pattern_t *mbe_pattern_create_for_surface(mbe_surface_t *surface);
134 extern mbe_pattern_t *mbe_pattern_create_radial(co_aix cx0, co_aix cy0, 134 extern mbe_pattern_t *mbe_pattern_create_radial(co_aix cx0, co_aix cy0,
135 co_aix radius0, 135 co_aix radius0,
136 co_aix cx1, co_aix cy1, 136 co_aix cx1, co_aix cy1,
137 co_aix radius1, 137 co_aix radius1,
138 grad_stop_t *stops, 138 grad_stop_t *stops,