Mercurial > MadButterfly
diff src/graph_engine_openvg.c @ 608:6c74bc371e37 openvg
paint with alpha for OpenVG
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 05 Jul 2010 10:56:23 +0800 |
parents | 51dc49fd34a8 |
children | e78bff7d23d3 |
line wrap: on
line diff
--- a/src/graph_engine_openvg.c Sun Jul 04 21:09:56 2010 +0800 +++ b/src/graph_engine_openvg.c Mon Jul 05 10:56:23 2010 +0800 @@ -446,6 +446,25 @@ free(canvas); } +/* + * This implementation support only paint with image paint. OpenVG + * does not support paint path with an alpha value. But, it supports + * to draw image with an alpha value. + */ +void +mbe_paint_with_alpha(mbe_t *canvas, co_comp_t alpha) { + VGImage vg_img; + _ge_openvg_img_t *ge_img; + + _MK_CURRENT_CTX(canvas); + + ASSERT(canvas->src != NULL && canvas->src->asso_img != NULL); + ge_img = canvas->src->asso_img; + vg_img = ge_img->img; + + vgDrawImage(vg_img); +} + void mbe_paint(mbe_t *canvas) { EGLDisplay display;