Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_collision_filter.c
Show All 35 Lines | 17 | { | |||
---|---|---|---|---|---|
36 | ephysics_body_collision_group_add(fall_body, colors[row]); | 36 | ephysics_body_collision_group_add(fall_body, colors[row]); | ||
37 | if (column + row == 1) | 37 | if (column + row == 1) | ||
38 | ephysics_body_central_impulse_apply(fall_body, 600 * row - 300, 0, 0); | 38 | ephysics_body_central_impulse_apply(fall_body, 600 * row - 300, 0, 0); | ||
39 | test_data->bodies = eina_list_append(test_data->bodies, fall_body); | 39 | test_data->bodies = eina_list_append(test_data->bodies, fall_body); | ||
40 | } | 40 | } | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | static void | 43 | static void | ||
44 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 44 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
45 | { | 45 | { | ||
46 | Test_Data *test_data = data; | 46 | Test_Data *test_data = data; | ||
47 | 47 | | |||
48 | DBG("Restart pressed"); | 48 | DBG("Restart pressed"); | ||
49 | test_clean(test_data); | 49 | test_clean(test_data); | ||
50 | _world_populate(test_data); | 50 | _world_populate(test_data); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | void | 53 | void | ||
54 | test_collision_filter(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 54 | test_collision_filter(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
55 | { | 55 | { | ||
56 | EPhysics_Body *boundary; | 56 | EPhysics_Body *boundary; | ||
57 | EPhysics_World *world; | 57 | EPhysics_World *world; | ||
58 | Test_Data *test_data; | 58 | Test_Data *test_data; | ||
59 | 59 | | |||
60 | if (!ephysics_init()) | 60 | if (!ephysics_init()) | ||
61 | return; | 61 | return; | ||
62 | 62 | | |||
Show All 29 Lines |