Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_sleeping_threshold.c
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 9 | { | |||
---|---|---|---|---|---|
69 | 69 | | |||
70 | ephysics_body_sleeping_threshold_get(sphere_body1, &linear, &angular); | 70 | ephysics_body_sleeping_threshold_get(sphere_body1, &linear, &angular); | ||
71 | INF("Body 1: linear threshold: %.2f, angular: %.2f", linear, angular); | 71 | INF("Body 1: linear threshold: %.2f, angular: %.2f", linear, angular); | ||
72 | ephysics_body_sleeping_threshold_get(sphere_body2, &linear, &angular); | 72 | ephysics_body_sleeping_threshold_get(sphere_body2, &linear, &angular); | ||
73 | INF("Body 2: linear threshold: %.2f, angular: %.2f", linear, angular); | 73 | INF("Body 2: linear threshold: %.2f, angular: %.2f", linear, angular); | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | static void | 76 | static void | ||
77 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 77 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
78 | { | 78 | { | ||
79 | Test_Data *test_data = data; | 79 | Test_Data *test_data = data; | ||
80 | 80 | | |||
81 | DBG("Restart pressed"); | 81 | DBG("Restart pressed"); | ||
82 | test_clean(test_data); | 82 | test_clean(test_data); | ||
83 | _world_populate(test_data); | 83 | _world_populate(test_data); | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | void | 86 | void | ||
87 | test_sleeping(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 87 | test_sleeping(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
88 | { | 88 | { | ||
89 | EPhysics_Body *boundary; | 89 | EPhysics_Body *boundary; | ||
90 | EPhysics_World *world; | 90 | EPhysics_World *world; | ||
91 | Test_Data *test_data; | 91 | Test_Data *test_data; | ||
92 | 92 | | |||
93 | if (!ephysics_init()) | 93 | if (!ephysics_init()) | ||
94 | return; | 94 | return; | ||
95 | 95 | | |||
Show All 24 Lines |