Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_slider.c
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | 9 | { | |||
---|---|---|---|---|---|
125 | ephysics_constraint_linear_limit_set(constraint, WIDTH / 3, 0, 0, 0, 0, 0); | 125 | ephysics_constraint_linear_limit_set(constraint, WIDTH / 3, 0, 0, 0, 0, 0); | ||
126 | ephysics_body_central_impulse_apply(box_body4, -600, 0, 0); | 126 | ephysics_body_central_impulse_apply(box_body4, -600, 0, 0); | ||
127 | test_data->constraints = eina_list_append(test_data->constraints, | 127 | test_data->constraints = eina_list_append(test_data->constraints, | ||
128 | constraint); | 128 | constraint); | ||
129 | 129 | | |||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | static void | 132 | static void | ||
133 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 133 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
134 | { | 134 | { | ||
135 | Test_Data *test_data = data; | 135 | Test_Data *test_data = data; | ||
136 | 136 | | |||
137 | DBG("Restart pressed"); | 137 | DBG("Restart pressed"); | ||
138 | test_clean(test_data); | 138 | test_clean(test_data); | ||
139 | _world_populate(test_data); | 139 | _world_populate(test_data); | ||
140 | } | 140 | } | ||
141 | 141 | | |||
142 | void | 142 | void | ||
143 | test_slider(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 143 | test_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
144 | { | 144 | { | ||
145 | EPhysics_Body *boundary; | 145 | EPhysics_Body *boundary; | ||
146 | EPhysics_World *world; | 146 | EPhysics_World *world; | ||
147 | Test_Data *test_data; | 147 | Test_Data *test_data; | ||
148 | 148 | | |||
149 | if (!ephysics_init()) | 149 | if (!ephysics_init()) | ||
150 | return; | 150 | return; | ||
151 | 151 | | |||
Show All 19 Lines |