Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_constraint.c
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 25 | { | |||
---|---|---|---|---|---|
74 | ephysics_body_restitution_set(box_body2, 0.5); | 74 | ephysics_body_restitution_set(box_body2, 0.5); | ||
75 | ephysics_body_friction_set(box_body2, 0.1); | 75 | ephysics_body_friction_set(box_body2, 0.1); | ||
76 | test_data->bodies = eina_list_append(test_data->bodies, box_body2); | 76 | test_data->bodies = eina_list_append(test_data->bodies, box_body2); | ||
77 | 77 | | |||
78 | _constraint_set(test_data, box_body1, box_body2); | 78 | _constraint_set(test_data, box_body1, box_body2); | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | static void | 81 | static void | ||
82 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 82 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
83 | { | 83 | { | ||
84 | Test_Data *test_data = data; | 84 | Test_Data *test_data = data; | ||
85 | 85 | | |||
86 | DBG("Restart pressed"); | 86 | DBG("Restart pressed"); | ||
87 | test_clean(test_data); | 87 | test_clean(test_data); | ||
88 | _world_populate(test_data); | 88 | _world_populate(test_data); | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | void | 91 | void | ||
92 | test_constraint(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 92 | test_constraint(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
93 | { | 93 | { | ||
94 | EPhysics_Body *boundary; | 94 | EPhysics_Body *boundary; | ||
95 | EPhysics_World *world; | 95 | EPhysics_World *world; | ||
96 | Test_Data *test_data; | 96 | Test_Data *test_data; | ||
97 | 97 | | |||
98 | if (!ephysics_init()) | 98 | if (!ephysics_init()) | ||
99 | return; | 99 | return; | ||
100 | 100 | | |||
Show All 17 Lines |