summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-11-28 21:47:47 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-11-28 21:47:47 +0000
commit1a1890fabb559afbc693043f8ef782ec0b30f256 (patch)
tree31dae316f69914ea0861904f95c4506a7ed8d745 /legacy
parent704173e5397c72b57b687c0c42c03f98f4b61c29 (diff)
ephysics: add improve dbg msgs
To help me debuging it while I'm working on Edje. SVN revision: 79790
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp3
-rw-r--r--legacy/ephysics/src/lib/ephysics_world.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index 78600916d4..25f86ab35c 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -3236,6 +3236,9 @@ ephysics_body_geometry_set(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Evas
3236 return; 3236 return;
3237 } 3237 }
3238 3238
3239 INF("Body: %p geometry set to x=%i y=%i z=%i w=%i h=%i d=%i.",
3240 body, x, y, z, w, h, d);
3241
3239 if ((w <= 0) || (h <= 0) || (d <= 0)) 3242 if ((w <= 0) || (h <= 0) || (d <= 0))
3240 { 3243 {
3241 ERR("Width, height and depth must to be a non-null, positive value."); 3244 ERR("Width, height and depth must to be a non-null, positive value.");
diff --git a/legacy/ephysics/src/lib/ephysics_world.cpp b/legacy/ephysics/src/lib/ephysics_world.cpp
index a3b24863fd..8ee9481d5a 100644
--- a/legacy/ephysics/src/lib/ephysics_world.cpp
+++ b/legacy/ephysics/src/lib/ephysics_world.cpp
@@ -1240,6 +1240,9 @@ ephysics_world_render_geometry_set(EPhysics_World *world, Evas_Coord x, Evas_Coo
1240 world->geometry.h = h; 1240 world->geometry.h = h;
1241 world->geometry.d = d; 1241 world->geometry.d = d;
1242 1242
1243 INF("World %p render geometry set: x=%i y=%i z=%i w=%i h=%i d=%i",
1244 world, x, y, z, w, h, d);
1245
1243 ephysics_camera_perspective_set(world->camera, x + w / 2, y + h / 2, 1246 ephysics_camera_perspective_set(world->camera, x + w / 2, y + h / 2,
1244 z + d / 2, 10 * (z + d)); 1247 z + d / 2, 10 * (z + d));
1245 1248