diff 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
line wrap: on
line diff
--- a/include/mb_graph_engine_openvg.h	Sun Jul 04 15:39:12 2010 +0800
+++ b/include/mb_graph_engine_openvg.h	Sun Jul 04 16:31:39 2010 +0800
@@ -19,9 +19,6 @@
 #define mbe_image_surface_get_width(surface) (1)
 #define mbe_image_surface_get_data(surface) ((unsigned char *)NULL)
 #define mbe_scaled_font_reference(scaled) ((mbe_scaled_font_t *)NULL)
-#define mbe_pattern_create_radial(cx0, cy0, radius0,			\
-				  cx1, cy1, radius1, stops, stop_cnt)	\
-    ((mbe_pattern_t *)NULL)
 #define mbe_pattern_create_image(img) ((mbe_pattern_t *)NULL)
 #define mbe_scaled_font_destroy(scaled)
 #define mbe_font_face_reference(face) ((mbe_font_face_t *)NULL)
@@ -136,6 +133,12 @@
 extern EGLNativeDisplayType _ge_openvg_disp_id;
 extern mbe_t *_ge_openvg_current_canvas;
 
+extern mbe_pattern_t *mbe_pattern_create_radial(co_aix cx0, co_aix cy0,
+						co_aix radius0,	
+						co_aix cx1, co_aix cy1,
+						co_aix radius1,
+						grad_stop_t *stops,
+						int stop_cnt);
 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0,
 						co_aix x1, co_aix y1,
 						grad_stop_t *stops,