summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-cube2.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-03-08 14:11:07 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-03-15 11:11:59 +0900
commit7ddb73b1777ca6284a0e8a3ab82b16849f27dfcd (patch)
tree9fbbe4bab0976f9b0c7a32e743f10ff09ab18398 /src/examples/evas/evas-3d-cube2.c
parentbd7af3ecfe2257c043368f00ee05fdd1aec4af0b (diff)
Evas: Move 3d to Efl.Canvas.Scene3d
This still seems a bit redondant with the underlying Evas.Canvas3d.Scene class.
Diffstat (limited to 'src/examples/evas/evas-3d-cube2.c')
-rw-r--r--src/examples/evas/evas-3d-cube2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/evas/evas-3d-cube2.c b/src/examples/evas/evas-3d-cube2.c
index e46c2f7..baa77c0 100644
--- a/src/examples/evas/evas-3d-cube2.c
+++ b/src/examples/evas/evas-3d-cube2.c
@@ -240,12 +240,12 @@ main(void)
240 efl_gfx_visible_set(background, EINA_TRUE); 240 efl_gfx_visible_set(background, EINA_TRUE);
241 241
242 /* Add an image object for 3D scene rendering. */ 242 /* Add an image object for 3D scene rendering. */
243 image = evas_object_image_filled_add(evas); 243 image = eo_add(EFL_CANVAS_SCENE3D_CLASS, evas);
244 efl_gfx_size_set(image, WIDTH, HEIGHT); 244 efl_gfx_size_set(image, WIDTH, HEIGHT);
245 efl_gfx_visible_set(image, EINA_TRUE); 245 efl_gfx_visible_set(image, EINA_TRUE);
246 246
247 /* Set the image object as render target for 3D scene. */ 247 /* Set the image object as render target for 3D scene. */
248 evas_obj_image_scene_set(image, data.scene); 248 efl_canvas_scene3d_set(image, data.scene);
249 249
250 /* Add animation timer callback. */ 250 /* Add animation timer callback. */
251 ecore_timer_add(0.01, _animate_scene, &data); 251 ecore_timer_add(0.01, _animate_scene, &data);