summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-04-03 16:34:17 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:34:17 +0200
commit72967efd9d7ac098f2197a0c535dc5f322e2067d (patch)
tree79ba822ff248623f2391a63f185d3ea633783976 /src/examples
parentb20872bf68378807e62d14939777ed912bf4bc89 (diff)
evas: update batman example with transformation and opengl.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/evas/evas-vg-batman.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/examples/evas/evas-vg-batman.c b/src/examples/evas/evas-vg-batman.c
index 87a1f6d..17ea3a4 100644
--- a/src/examples/evas/evas-vg-batman.c
+++ b/src/examples/evas/evas-vg-batman.c
@@ -105,7 +105,7 @@ main(void)
105 105
106 if (!ecore_evas_init()) 106 if (!ecore_evas_init())
107 return -1; 107 return -1;
108 108 //setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
109 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 109 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
110 if (!ee) return -1; 110 if (!ee) return -1;
111 111
@@ -137,6 +137,11 @@ main(void)
137 137
138 root = evas_object_vg_root_node_get(vg); 138 root = evas_object_vg_root_node_get(vg);
139 139
140 Eina_Matrix3 matrix;
141 eina_matrix3_scale(&matrix, 1.1, 1.1);
142 evas_vg_node_transformation_set(root, &matrix);
143
144
140 circle = evas_vg_shape_add(root); 145 circle = evas_vg_shape_add(root);
141 evas_vg_shape_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200); 146 evas_vg_shape_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200);
142 evas_vg_node_color_set(circle, 255, 255, 255, 255); 147 evas_vg_node_color_set(circle, 255, 255, 255, 255);