summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Dorileo <dorileo@profusion.mobi>2012-12-18 21:16:10 +0000
committerLeandro Dorileo <dorileo@profusion.mobi>2012-12-18 21:16:10 +0000
commit0c3429078b736b1eeadfa08e9e4bff4f13517c4d (patch)
tree5f563362b371cceaee59f90f7e6b00d807420c9e
parent9a55cad728cddcd660ba466590f1e2251e5a2857 (diff)
ephysics_test: adjust light position on soft body tests
SVN revision: 81307
-rw-r--r--src/bin/test_flag.c2
-rw-r--r--src/bin/test_flip_page.c2
-rw-r--r--src/bin/test_light.c2
-rw-r--r--src/bin/test_soft_button.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/test_flag.c b/src/bin/test_flag.c
index d87c05d..9aee9d3 100644
--- a/src/bin/test_flag.c
+++ b/src/bin/test_flag.c
@@ -178,7 +178,7 @@ test_flag(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info _
178 178
179 evas_object_smart_callback_add(tg, "changed", _changed_cb, world); 179 evas_object_smart_callback_add(tg, "changed", _changed_cb, world);
180 180
181 ephysics_world_point_light_position_set(world, 300, 50, -200); 181 ephysics_world_point_light_position_set(world, WIDTH / 2, HEIGHT / 2, -200);
182 ephysics_world_light_all_bodies_set(world, EINA_TRUE); 182 ephysics_world_light_all_bodies_set(world, EINA_TRUE);
183 ephysics_camera_perspective_enabled_set(ephysics_world_camera_get(world), 183 ephysics_camera_perspective_enabled_set(ephysics_world_camera_get(world),
184 EINA_TRUE); 184 EINA_TRUE);
diff --git a/src/bin/test_flip_page.c b/src/bin/test_flip_page.c
index 25519fc..f8d657d 100644
--- a/src/bin/test_flip_page.c
+++ b/src/bin/test_flip_page.c
@@ -277,7 +277,7 @@ test_flip_page(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
277 ephysics_world_gravity_set(world, 0, 0, 9.8); 277 ephysics_world_gravity_set(world, 0, 0, 9.8);
278 ephysics_world_render_geometry_set(world, 0, 0, 20, WIDTH, HEIGHT, 2); 278 ephysics_world_render_geometry_set(world, 0, 0, 20, WIDTH, HEIGHT, 2);
279 279
280 ephysics_world_point_light_position_set(world, WIDTH / 2, HEIGHT / 2, -200); 280 ephysics_world_point_light_position_set(world, WIDTH / 2, HEIGHT / 2, 200);
281 ephysics_camera_perspective_set(ephysics_world_camera_get(world), WIDTH/2, 281 ephysics_camera_perspective_set(ephysics_world_camera_get(world), WIDTH/2,
282 HEIGHT/2, 0, 1800); 282 HEIGHT/2, 0, 1800);
283 ephysics_camera_perspective_enabled_set(ephysics_world_camera_get(world), 283 ephysics_camera_perspective_enabled_set(ephysics_world_camera_get(world),
diff --git a/src/bin/test_light.c b/src/bin/test_light.c
index b3ee79a..9d9ab64 100644
--- a/src/bin/test_light.c
+++ b/src/bin/test_light.c
@@ -93,7 +93,7 @@ test_light(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
93 ephysics_body_restitution_set(boundary, 0.65); 93 ephysics_body_restitution_set(boundary, 0.65);
94 ephysics_body_friction_set(boundary, 4); 94 ephysics_body_friction_set(boundary, 4);
95 95
96 ephysics_world_point_light_position_set(world, 200, 300, -120); 96 ephysics_world_point_light_position_set(world, WIDTH / 2, HEIGHT / 2, -120);
97 ephysics_world_point_light_color_set(world, 255, 120, 120); 97 ephysics_world_point_light_color_set(world, 255, 120, 120);
98 ephysics_world_ambient_light_color_set(world, 40, 40, 40); 98 ephysics_world_ambient_light_color_set(world, 40, 40, 40);
99 ephysics_world_light_all_bodies_set(world, EINA_TRUE); 99 ephysics_world_light_all_bodies_set(world, EINA_TRUE);
diff --git a/src/bin/test_soft_button.c b/src/bin/test_soft_button.c
index 1f7e768..bc2eda4 100644
--- a/src/bin/test_soft_button.c
+++ b/src/bin/test_soft_button.c
@@ -141,7 +141,7 @@ test_soft_button(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event
141 WIDTH - 100, FLOOR_Y - 40, DEPTH); 141 WIDTH - 100, FLOOR_Y - 40, DEPTH);
142 test_data->world = world; 142 test_data->world = world;
143 143
144 ephysics_world_point_light_position_set(world, 300, 50, -200); 144 ephysics_world_point_light_position_set(world, WIDTH / 2, HEIGHT / 2, -100);
145 ephysics_camera_perspective_enabled_set(ephysics_world_camera_get(world), 145 ephysics_camera_perspective_enabled_set(ephysics_world_camera_get(world),
146 EINA_TRUE); 146 EINA_TRUE);
147 147