summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-cube2.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:47 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:47 +0200
commit3b97e3d9cd13b16d269b18df6d0b24f7b4d5e667 (patch)
tree4189bebdf0e93be4c051fd815b4c442b2bc32212 /src/examples/evas/evas-3d-cube2.c
parent09be34b82501fea8835299de72938cdf9c21c55a (diff)
evas: fix example to follow new Efl.Gfx interface.
Diffstat (limited to 'src/examples/evas/evas-3d-cube2.c')
-rw-r--r--src/examples/evas/evas-3d-cube2.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/evas/evas-3d-cube2.c b/src/examples/evas/evas-3d-cube2.c
index 4a1afaa..aff4fdb 100644
--- a/src/examples/evas/evas-3d-cube2.c
+++ b/src/examples/evas/evas-3d-cube2.c
@@ -79,8 +79,8 @@ _on_canvas_resize(Ecore_Evas *ee)
79 int w, h; 79 int w, h;
80 80
81 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h); 81 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
82 eo_do(background, evas_obj_size_set(w, h)); 82 eo_do(background, efl_gfx_size_set(w, h));
83 eo_do(image, evas_obj_size_set(w, h)); 83 eo_do(image, efl_gfx_size_set(w, h));
84} 84}
85 85
86static Eina_Bool 86static Eina_Bool
@@ -259,15 +259,15 @@ main(void)
259 /* Add a background rectangle objects. */ 259 /* Add a background rectangle objects. */
260 background = eo_add(EVAS_RECTANGLE_CLASS, evas); 260 background = eo_add(EVAS_RECTANGLE_CLASS, evas);
261 eo_do(background, 261 eo_do(background,
262 evas_obj_color_set(0, 0, 0, 255), 262 efl_gfx_color_set(0, 0, 0, 255),
263 evas_obj_size_set(WIDTH, HEIGHT), 263 efl_gfx_size_set(WIDTH, HEIGHT),
264 evas_obj_visibility_set(EINA_TRUE)); 264 efl_gfx_visible_set(EINA_TRUE));
265 265
266 /* Add an image object for 3D scene rendering. */ 266 /* Add an image object for 3D scene rendering. */
267 image = evas_object_image_filled_add(evas); 267 image = evas_object_image_filled_add(evas);
268 eo_do(image, 268 eo_do(image,
269 evas_obj_size_set(WIDTH, HEIGHT), 269 efl_gfx_size_set(WIDTH, HEIGHT),
270 evas_obj_visibility_set(EINA_TRUE)); 270 efl_gfx_visible_set(EINA_TRUE));
271 271
272 /* Set the image object as render target for 3D scene. */ 272 /* Set the image object as render target for 3D scene. */
273 eo_do(image, evas_obj_image_scene_set(data.scene)); 273 eo_do(image, evas_obj_image_scene_set(data.scene));