Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_shapes.c
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 9 | { | |||
---|---|---|---|---|---|
64 | test_data->bodies = eina_list_append(test_data->bodies, hexagon_body); | 64 | test_data->bodies = eina_list_append(test_data->bodies, hexagon_body); | ||
65 | ephysics_body_torque_apply(hexagon_body, 0, 0, -3); | 65 | ephysics_body_torque_apply(hexagon_body, 0, 0, -3); | ||
66 | 66 | | |||
67 | ephysics_shape_del(pentagon_shape); | 67 | ephysics_shape_del(pentagon_shape); | ||
68 | ephysics_shape_del(hexagon_shape); | 68 | ephysics_shape_del(hexagon_shape); | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | static void | 71 | static void | ||
72 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 72 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
73 | { | 73 | { | ||
74 | Test_Data *test_data = data; | 74 | Test_Data *test_data = data; | ||
75 | 75 | | |||
76 | DBG("Restart pressed"); | 76 | DBG("Restart pressed"); | ||
77 | test_clean(test_data); | 77 | test_clean(test_data); | ||
78 | _world_populate(test_data); | 78 | _world_populate(test_data); | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | void | 81 | void | ||
82 | test_shapes(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 82 | test_shapes(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
83 | { | 83 | { | ||
84 | EPhysics_Body *boundary; | 84 | EPhysics_Body *boundary; | ||
85 | EPhysics_World *world; | 85 | EPhysics_World *world; | ||
86 | Test_Data *test_data; | 86 | Test_Data *test_data; | ||
87 | 87 | | |||
88 | if (!ephysics_init()) | 88 | if (!ephysics_init()) | ||
89 | return; | 89 | return; | ||
90 | 90 | | |||
Show All 20 Lines |