summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-cube2.c
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-04-05 10:47:26 +0200
committerCedric Bail <cedric@osg.samsung.com>2018-04-24 09:03:32 -0700
commit55bd097a3d5c0201c28bc0bd045cbe77aa76f5af (patch)
tree6929ab1b8bddee873305e58aed933d7039488fcf /src/examples/evas/evas-3d-cube2.c
parent7934d152dd5c185df1b89f50239d27f25c6f2b88 (diff)
Efl.Gfx.Entity (from Efl.Gfx)
Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/evas/evas-3d-cube2.c')
-rw-r--r--src/examples/evas/evas-3d-cube2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/examples/evas/evas-3d-cube2.c b/src/examples/evas/evas-3d-cube2.c
index 0b1d31c..c8558b6 100644
--- a/src/examples/evas/evas-3d-cube2.c
+++ b/src/examples/evas/evas-3d-cube2.c
@@ -78,8 +78,8 @@ _on_canvas_resize(Ecore_Evas *ee)
78 int w, h; 78 int w, h;
79 79
80 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h); 80 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
81 efl_gfx_size_set(background, EINA_SIZE2D(w, h)); 81 efl_gfx_entity_size_set(background, EINA_SIZE2D(w, h));
82 efl_gfx_size_set(image, EINA_SIZE2D(w, h)); 82 efl_gfx_entity_size_set(image, EINA_SIZE2D(w, h));
83} 83}
84 84
85static Eina_Bool 85static Eina_Bool
@@ -235,13 +235,13 @@ main(void)
235 /* Add a background rectangle object. */ 235 /* Add a background rectangle object. */
236 background = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas); 236 background = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas);
237 efl_gfx_color_set(background, 0, 0, 0, 255); 237 efl_gfx_color_set(background, 0, 0, 0, 255);
238 efl_gfx_size_set(background, EINA_SIZE2D(WIDTH, HEIGHT)); 238 efl_gfx_entity_size_set(background, EINA_SIZE2D(WIDTH, HEIGHT));
239 efl_gfx_visible_set(background, EINA_TRUE); 239 efl_gfx_entity_visible_set(background, EINA_TRUE);
240 240
241 /* Add an image object for 3D scene rendering. */ 241 /* Add an image object for 3D scene rendering. */
242 image = efl_add(EFL_CANVAS_SCENE3D_CLASS, evas); 242 image = efl_add(EFL_CANVAS_SCENE3D_CLASS, evas);
243 efl_gfx_size_set(image, EINA_SIZE2D(WIDTH, HEIGHT)); 243 efl_gfx_entity_size_set(image, EINA_SIZE2D(WIDTH, HEIGHT));
244 efl_gfx_visible_set(image, EINA_TRUE); 244 efl_gfx_entity_visible_set(image, EINA_TRUE);
245 245
246 /* Set the image object as render target for 3D scene. */ 246 /* Set the image object as render target for 3D scene. */
247 efl_canvas_scene3d_set(image, data.scene); 247 efl_canvas_scene3d_set(image, data.scene);