comparison src/graph_engine_openvg.c @ 622:39bd74da7f92 openvg

mbe_copy_source() for OpenVG
author Thinker K.F. Li <thinker@branda.to>
date Fri, 09 Jul 2010 11:50:48 +0800
parents 7020ed3c3e37
children 97bf0ff7a038
comparison
equal deleted inserted replaced
621:d8cdd57ceff5 622:39bd74da7f92
649 _free_vgimage(surface->asso_img); 649 _free_vgimage(surface->asso_img);
650 650
651 free(surface); 651 free(surface);
652 } 652 }
653 653
654 void
655 mbe_copy_source(mbe_t *src_canvas, mbe_t *dst_canvas) {
656 VGImage vg_img;
657
658 ASSERT(src_canvas->tgt->asso_img != NULL);
659
660 _MK_CURRENT_CTX(dst_canvas);
661
662 vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE);
663 vgLoadIdentity();
664
665 vg_img = src_canvas->tgt->asso_img;
666 vgDrawImage(vg_img);
667 }
668
654 mbe_t * 669 mbe_t *
655 mbe_create(mbe_surface_t *surface) { 670 mbe_create(mbe_surface_t *surface) {
656 EGLDisplay display; 671 EGLDisplay display;
657 EGLConfig config; 672 EGLConfig config;
658 EGLContext ctx, shared; 673 EGLContext ctx, shared;