Efl_VG *obj,
Efl_Canvas_Vg_Node_Data *nd,
Eina_Matrix3 *pTransform,
- void *canvas)
+ void *canvas, void *scene)
{
int alpha;
Tvg_Matrix trans_mat = { 0 };
printf("Error loading image buffer \n");
return;
}
- tvg_canvas_push((Tvg_Canvas *) canvas, pd->picture);
+
+ if (scene)
+ tvg_scene_push(scene, pd->picture);
+ else if (canvas)
+ tvg_canvas_push(canvas, pd->picture);
}
EFL_CANVAS_VG_COMPUTE_MATRIX(cTransform, pTransform, nd);
efl_gfx_color_get(obj, NULL, NULL, NULL, &alpha);
EFL_CANVAS_VG_COMPUTE_ALPHA(c_r, c_g, c_b, c_a, alpha, nd);
- // TODO: apply color tvg_shape_set_fill_color
+ // TODO: apply color
tvg_paint_set_opacity(pd->picture, alpha);
tvg_canvas_update_paint((Tvg_Canvas *) canvas, pd->picture);
}
static void
-_efl_canvas_vg_shape_render_pre_tvg(Evas_Object_Protected_Data *vg_pd,
+_efl_canvas_vg_shape_render_pre_tvg(EINA_UNUSED Evas_Object_Protected_Data *vg_pd,
Efl_VG *obj,
Efl_Canvas_Vg_Node_Data *nd,
Eina_Matrix3 *pTransform,