evas: update batman example with transformation and opengl.
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 3 Apr 2015 14:34:17 +0000 (16:34 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:34:17 +0000 (16:34 +0200)
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/examples/evas/evas-vg-batman.c

index 87a1f6d..17ea3a4 100644 (file)
@@ -105,7 +105,7 @@ main(void)
 
    if (!ecore_evas_init())
      return -1;
-
+   //setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
    ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
    if (!ee) return -1;
 
@@ -137,6 +137,11 @@ main(void)
 
    root = evas_object_vg_root_node_get(vg);
 
+   Eina_Matrix3 matrix;
+   eina_matrix3_scale(&matrix, 1.1, 1.1);
+   evas_vg_node_transformation_set(root, &matrix);
+
+
    circle = evas_vg_shape_add(root);
    evas_vg_shape_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200);
    evas_vg_node_color_set(circle, 255, 255, 255, 255);