aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/Evas_3D_demo.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extantz/Evas_3D_demo.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/extantz/Evas_3D_demo.c b/src/extantz/Evas_3D_demo.c
index b01dd47..95b2f2f 100644
--- a/src/extantz/Evas_3D_demo.c
+++ b/src/extantz/Evas_3D_demo.c
@@ -266,9 +266,8 @@ _sphere_init(int precision)
266} 266}
267 267
268 268
269Eina_Bool _animate_scene(void *data) 269Eina_Bool _animate_scene(globals *ourGlobals)
270{ 270{
271 globals *ourGlobals = data;
272 static float angle = 0.0f; 271 static float angle = 0.0f;
273 static float earthAngle = 0.0f; 272 static float earthAngle = 0.0f;
274 static int frame = 0; 273 static int frame = 0;
@@ -703,12 +702,10 @@ void Evas_3D_Demo_add(globals *ourGlobals)
703 // Elm can't seem to be able to tell us WHERE an image was clicked, so use raw Evas calbacks instead. 702 // Elm can't seem to be able to tell us WHERE an image was clicked, so use raw Evas calbacks instead.
704 evas_object_event_callback_add(temp, EVAS_CALLBACK_MOUSE_MOVE, _on_mouse_move, &ourScene); 703 evas_object_event_callback_add(temp, EVAS_CALLBACK_MOUSE_MOVE, _on_mouse_move, &ourScene);
705 evas_object_event_callback_add(temp, EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, &ourScene); 704 evas_object_event_callback_add(temp, EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, &ourScene);
706 cameraAdd(obj, &ourGlobals->gld); 705 cameraAdd(ourGlobals, obj);
707 elm_win_resize_object_add(ourGlobals->win, obj); 706 elm_win_resize_object_add(ourGlobals->win, obj);
708// elm_box_pack_end(ourGlobals->gld.bx, obj); 707// elm_box_pack_end(ourGlobals->gld.bx, obj);
709 708
710 // Add animation timer callback.
711// ecore_timer_add(0.016, _animate_scene, &ourScene);
712 ourGlobals->gld.move = calloc(1, sizeof(cameraMove)); 709 ourGlobals->gld.move = calloc(1, sizeof(cameraMove));
713} 710}
714 711