comparison include/mb_graph_engine_openvg.h @ 590:b714f0c9992e openvg

include a VGPath in VG canvas
author Thinker K.F. Li <thinker@branda.to>
date Wed, 30 Jun 2010 19:30:32 +0800
parents d733e198bb25
children de9d210e9c38
comparison
equal deleted inserted replaced
589:d733e198bb25 590:b714f0c9992e
60 #define mbe_curve_to(canvas, x1, y1, x2, y2, x3, y3) 60 #define mbe_curve_to(canvas, x1, y1, x2, y2, x3, y3)
61 #define mbe_restore(canvas) 61 #define mbe_restore(canvas)
62 #define mbe_move_to(canvas, x, y) 62 #define mbe_move_to(canvas, x, y)
63 #define mbe_line_to(canvas, x, y) 63 #define mbe_line_to(canvas, x, y)
64 #define mbe_in_fill(canvas, x, y) (0) 64 #define mbe_in_fill(canvas, x, y) (0)
65 #define mbe_destroy(canvas)
66 #define mbe_stroke(canvas) 65 #define mbe_stroke(canvas)
67 #define mbe_clear(canvas) 66 #define mbe_clear(canvas)
68 #define mbe_paint(canvas) 67 #define mbe_paint(canvas)
69 #define mbe_save(canvas) 68 #define mbe_save(canvas)
70 #define mbe_fill(canvas) 69 #define mbe_fill(canvas)
88 87
89 struct _ge_openvg_mbe { 88 struct _ge_openvg_mbe {
90 mbe_pattern_t *src; 89 mbe_pattern_t *src;
91 mbe_surface_t *tgt; 90 mbe_surface_t *tgt;
92 EGLContext ctx; 91 EGLContext ctx;
92 VGPath path;
93 }; 93 };
94 94
95 struct _ge_openvg_surface { 95 struct _ge_openvg_surface {
96 void *surface; 96 void *surface;
97 mbe_t *asso_mbe; 97 mbe_t *asso_mbe; /* There is a association between
98 * surface and mbe */
98 }; 99 };
99 100
100 struct _ge_openvg_pattern { 101 struct _ge_openvg_pattern {
101 void *pattern; 102 void *pattern;
102 void *asso_img; 103 void *asso_img;
167 168
168 free(surface); 169 free(surface);
169 } 170 }
170 171
171 extern mbe_t *mbe_create(mbe_surface_t *surface); 172 extern mbe_t *mbe_create(mbe_surface_t *surface);
173 extern void mbe_destroy(mbe_t *canvas);
172 174
173 /* @} */ 175 /* @} */
174 176
175 #endif /* __MB_GE_OPENVG_H_ */ 177 #endif /* __MB_GE_OPENVG_H_ */