Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_colliding_balls.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 41 | ephysics_body_event_callback_add(fall_body, | |||
---|---|---|---|---|---|
43 | update_object_cb, shadow); | 43 | update_object_cb, shadow); | ||
44 | ephysics_body_restitution_set(fall_body, 0.95); | 44 | ephysics_body_restitution_set(fall_body, 0.95); | ||
45 | ephysics_body_friction_set(fall_body, 1); | 45 | ephysics_body_friction_set(fall_body, 1); | ||
46 | test_data->bodies = eina_list_append(test_data->bodies, fall_body); | 46 | test_data->bodies = eina_list_append(test_data->bodies, fall_body); | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | static void | 50 | static void | ||
51 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 51 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
52 | { | 52 | { | ||
53 | Test_Data *test_data = data; | 53 | Test_Data *test_data = data; | ||
54 | 54 | | |||
55 | DBG("Restart pressed"); | 55 | DBG("Restart pressed"); | ||
56 | test_clean(test_data); | 56 | test_clean(test_data); | ||
57 | _world_populate(test_data); | 57 | _world_populate(test_data); | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | void | 60 | void | ||
61 | test_colliding_balls(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 61 | test_colliding_balls(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
62 | { | 62 | { | ||
63 | EPhysics_Body *boundary; | 63 | EPhysics_Body *boundary; | ||
64 | EPhysics_World *world; | 64 | EPhysics_World *world; | ||
65 | Test_Data *test_data; | 65 | Test_Data *test_data; | ||
66 | 66 | | |||
67 | if (!ephysics_init()) | 67 | if (!ephysics_init()) | ||
68 | return; | 68 | return; | ||
69 | 69 | | |||
Show All 21 Lines |