Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/include/mb_graph_engine_openvg.h Wed Jun 30 18:06:36 2010 +0800 +++ b/include/mb_graph_engine_openvg.h Wed Jun 30 19:30:32 2010 +0800 @@ -62,7 +62,6 @@ #define mbe_move_to(canvas, x, y) #define mbe_line_to(canvas, x, y) #define mbe_in_fill(canvas, x, y) (0) -#define mbe_destroy(canvas) #define mbe_stroke(canvas) #define mbe_clear(canvas) #define mbe_paint(canvas) @@ -90,11 +89,13 @@ mbe_pattern_t *src; mbe_surface_t *tgt; EGLContext ctx; + VGPath path; }; struct _ge_openvg_surface { void *surface; - mbe_t *asso_mbe; + mbe_t *asso_mbe; /* There is a association between + * surface and mbe */ }; struct _ge_openvg_pattern { @@ -169,6 +170,7 @@ } extern mbe_t *mbe_create(mbe_surface_t *surface); +extern void mbe_destroy(mbe_t *canvas); /* @} */