evas: update batman example with transformation and opengl.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Subhransu Mohanty 2015-04-03 16:34:17 +02:00 committed by Cedric BAIL
parent b20872bf68
commit 72967efd9d
1 changed files with 6 additions and 1 deletions

View 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);