summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-07-06 14:36:40 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-07-06 14:36:40 +0000
commit564d1c412caf509f749b90c7dcd6ad2ef111e9dc (patch)
tree4fbf81d21c5658236de24cd52c91f7bfe3dce7fa /legacy
parent401d68ada68f20d0c9e4994a2a38dfc5fce4d825 (diff)
EPhysics: fix missing const on some getters
spotted by k-s SVN revision: 73419
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ephysics/src/lib/EPhysics.h27
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp10
-rw-r--r--legacy/ephysics/src/lib/ephysics_private.h4
-rw-r--r--legacy/ephysics/src/lib/ephysics_world.cpp18
4 files changed, 30 insertions, 29 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/legacy/ephysics/src/lib/EPhysics.h
index e7ebccd1b4..eeb191682f 100644
--- a/legacy/ephysics/src/lib/EPhysics.h
+++ b/legacy/ephysics/src/lib/EPhysics.h
@@ -375,7 +375,7 @@ EAPI void ephysics_world_render_geometry_set(EPhysics_World *world, Evas_Coord x
375 * 375 *
376 * @ingroup EPhysics_World 376 * @ingroup EPhysics_World
377 */ 377 */
378EAPI void ephysics_world_render_geometry_get(EPhysics_World *world, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); 378EAPI void ephysics_world_render_geometry_get(const EPhysics_World *world, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
379 379
380/** 380/**
381 * @brief 381 * @brief
@@ -496,7 +496,7 @@ EAPI void ephysics_world_constraint_solver_iterations_set(EPhysics_World *world,
496 * @see ephysics_world_constraint_solver_iterations_set() for its meaning. 496 * @see ephysics_world_constraint_solver_iterations_set() for its meaning.
497 * @ingroup EPhysics_World 497 * @ingroup EPhysics_World
498 */ 498 */
499EAPI int ephysics_world_constraint_solver_iterations_get(EPhysics_World *world); 499EAPI int ephysics_world_constraint_solver_iterations_get(const EPhysics_World *world);
500 500
501/** 501/**
502 * @brief 502 * @brief
@@ -505,6 +505,7 @@ EAPI int ephysics_world_constraint_solver_iterations_get(EPhysics_World *world);
505 * 505 *
506 * @param world The world to be set. 506 * @param world The world to be set.
507 * @param solver_mode The solver mode to set. 507 * @param solver_mode The solver mode to set.
508 * @param enable If @c EINA_TRUE enable the mode, if EINA_FALSE, disable it.
508 * 509 *
509 * @see EPhysics_World_Solver_Mode for supported solver modes. 510 * @see EPhysics_World_Solver_Mode for supported solver modes.
510 * @see ephysics_world_constraint_solver_mode_enable_get() 511 * @see ephysics_world_constraint_solver_mode_enable_get()
@@ -518,12 +519,12 @@ EAPI void ephysics_world_constraint_solver_mode_enable_set(EPhysics_World *world
518 * 519 *
519 * @param world The world to be queried. 520 * @param world The world to be queried.
520 * @param solver_mode The solver mode of interest. 521 * @param solver_mode The solver mode of interest.
521 * @return EINA_TRUE if @p solver_mode is enabled, EINA_FALSE otherwise 522 * @return EINA_TRUE if @p solver_mode is enabled, EINA_FALSE otherwise.
522 * 523 *
523 * @see ephysics_world_constraint_solver_mode_enable_set() 524 * @see ephysics_world_constraint_solver_mode_enable_set()
524 * @ingroup EPhysics_World 525 * @ingroup EPhysics_World
525 */ 526 */
526EAPI Eina_Bool ephysics_world_constraint_solver_mode_enable_get(EPhysics_World *world, EPhysics_World_Solver_Mode solver_mode); 527EAPI Eina_Bool ephysics_world_constraint_solver_mode_enable_get(const EPhysics_World *world, EPhysics_World_Solver_Mode solver_mode);
527 528
528/** 529/**
529 * @brief 530 * @brief
@@ -702,7 +703,7 @@ EAPI void ephysics_world_linear_slop_set(EPhysics_World *world, double linear_sl
702 * 703 *
703 * @ingroup EPhysics_World 704 * @ingroup EPhysics_World
704 */ 705 */
705EAPI double ephysics_world_linear_slop_get(EPhysics_World *world); 706EAPI double ephysics_world_linear_slop_get(const EPhysics_World *world);
706 707
707/** 708/**
708 * @brief 709 * @brief
@@ -747,7 +748,7 @@ EAPI void ephysics_world_bodies_outside_top_autodel_set(EPhysics_World *world, E
747 * 748 *
748 * @ingroup EPhysics_World 749 * @ingroup EPhysics_World
749 */ 750 */
750EAPI Eina_Bool ephysics_world_bodies_outside_top_autodel_get(EPhysics_World *world); 751EAPI Eina_Bool ephysics_world_bodies_outside_top_autodel_get(const EPhysics_World *world);
751 752
752/** 753/**
753 * @brief 754 * @brief
@@ -780,7 +781,7 @@ EAPI void ephysics_world_bodies_outside_bottom_autodel_set(EPhysics_World *world
780 * 781 *
781 * @ingroup EPhysics_World 782 * @ingroup EPhysics_World
782 */ 783 */
783EAPI Eina_Bool ephysics_world_bodies_outside_bottom_autodel_get(EPhysics_World *world); 784EAPI Eina_Bool ephysics_world_bodies_outside_bottom_autodel_get(const EPhysics_World *world);
784 785
785/** 786/**
786 * @brief 787 * @brief
@@ -813,7 +814,7 @@ EAPI void ephysics_world_bodies_outside_right_autodel_set(EPhysics_World *world,
813 * 814 *
814 * @ingroup EPhysics_World 815 * @ingroup EPhysics_World
815 */ 816 */
816EAPI Eina_Bool ephysics_world_bodies_outside_right_autodel_get(EPhysics_World *world); 817EAPI Eina_Bool ephysics_world_bodies_outside_right_autodel_get(const EPhysics_World *world);
817 818
818/** 819/**
819 * @brief 820 * @brief
@@ -846,7 +847,7 @@ EAPI void ephysics_world_bodies_outside_left_autodel_set(EPhysics_World *world,
846 * 847 *
847 * @ingroup EPhysics_World 848 * @ingroup EPhysics_World
848 */ 849 */
849EAPI Eina_Bool ephysics_world_bodies_outside_left_autodel_get(EPhysics_World *world); 850EAPI Eina_Bool ephysics_world_bodies_outside_left_autodel_get(const EPhysics_World *world);
850 851
851/** 852/**
852 * @} 853 * @}
@@ -1340,7 +1341,7 @@ EAPI void ephysics_body_damping_set(EPhysics_Body *body, double linear_damping,
1340 * 1341 *
1341 * @ingroup EPhysics_Body 1342 * @ingroup EPhysics_Body
1342 */ 1343 */
1343EAPI void ephysics_body_damping_get(EPhysics_Body *body, double *linear_damping, double *angular_damping); 1344EAPI void ephysics_body_damping_get(const EPhysics_Body *body, double *linear_damping, double *angular_damping);
1344 1345
1345/** 1346/**
1346 * @brief 1347 * @brief
@@ -1615,7 +1616,7 @@ EAPI void ephysics_body_rotation_on_z_axis_enable_set(EPhysics_Body *body, Eina_
1615 * 1616 *
1616 * @ingroup EPhysics_Body 1617 * @ingroup EPhysics_Body
1617 */ 1618 */
1618EAPI Eina_Bool ephysics_body_rotation_on_z_axis_enable_get(EPhysics_Body *body); 1619EAPI Eina_Bool ephysics_body_rotation_on_z_axis_enable_get(const EPhysics_Body *body);
1619 1620
1620/** 1621/**
1621 * @brief 1622 * @brief
@@ -1651,7 +1652,7 @@ EAPI void ephysics_body_linear_movement_enable_set(EPhysics_Body *body, Eina_Boo
1651 * 1652 *
1652 * @ingroup EPhysics_Body 1653 * @ingroup EPhysics_Body
1653 */ 1654 */
1654EAPI void ephysics_body_linear_movement_enable_get(EPhysics_Body *body, Eina_Bool *enable_x, Eina_Bool *enable_y); 1655EAPI void ephysics_body_linear_movement_enable_get(const EPhysics_Body *body, Eina_Bool *enable_x, Eina_Bool *enable_y);
1655 1656
1656/** 1657/**
1657 * @brief 1658 * @brief
@@ -1666,7 +1667,7 @@ EAPI void ephysics_body_linear_movement_enable_get(EPhysics_Body *body, Eina_Boo
1666 * 1667 *
1667 * @ingroup EPhysics_Body 1668 * @ingroup EPhysics_Body
1668 */ 1669 */
1669EAPI double ephysics_body_rotation_get(EPhysics_Body *body); 1670EAPI double ephysics_body_rotation_get(const EPhysics_Body *body);
1670 1671
1671/** 1672/**
1672 * @} 1673 * @}
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index a79a9cd55e..95e0a06c17 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -250,7 +250,7 @@ ephysics_body_contact_processed(EPhysics_Body *body, EPhysics_Body *contact_body
250} 250}
251 251
252btRigidBody * 252btRigidBody *
253ephysics_body_rigid_body_get(EPhysics_Body *body) 253ephysics_body_rigid_body_get(const EPhysics_Body *body)
254{ 254{
255 return body->rigid_body; 255 return body->rigid_body;
256} 256}
@@ -660,7 +660,7 @@ ephysics_body_damping_set(EPhysics_Body *body, double linear_damping, double ang
660} 660}
661 661
662EAPI void 662EAPI void
663ephysics_body_damping_get(EPhysics_Body *body, double *linear_damping, double *angular_damping) 663ephysics_body_damping_get(const EPhysics_Body *body, double *linear_damping, double *angular_damping)
664{ 664{
665 if (!body) 665 if (!body)
666 { 666 {
@@ -860,7 +860,7 @@ ephysics_body_linear_movement_enable_set(EPhysics_Body *body, Eina_Bool enable_x
860} 860}
861 861
862EAPI void 862EAPI void
863ephysics_body_linear_movement_enable_get(EPhysics_Body *body, Eina_Bool *enable_x, Eina_Bool *enable_y) 863ephysics_body_linear_movement_enable_get(const EPhysics_Body *body, Eina_Bool *enable_x, Eina_Bool *enable_y)
864{ 864{
865 if (!body) 865 if (!body)
866 { 866 {
@@ -901,7 +901,7 @@ ephysics_body_rotation_on_z_axis_enable_set(EPhysics_Body *body, Eina_Bool enabl
901} 901}
902 902
903EAPI Eina_Bool 903EAPI Eina_Bool
904ephysics_body_rotation_on_z_axis_enable_get(EPhysics_Body *body) 904ephysics_body_rotation_on_z_axis_enable_get(const EPhysics_Body *body)
905{ 905{
906 if (!body) 906 if (!body)
907 { 907 {
@@ -913,7 +913,7 @@ ephysics_body_rotation_on_z_axis_enable_get(EPhysics_Body *body)
913} 913}
914 914
915EAPI double 915EAPI double
916ephysics_body_rotation_get(EPhysics_Body *body) 916ephysics_body_rotation_get(const EPhysics_Body *body)
917{ 917{
918 btTransform trans; 918 btTransform trans;
919 double rot; 919 double rot;
diff --git a/legacy/ephysics/src/lib/ephysics_private.h b/legacy/ephysics/src/lib/ephysics_private.h
index 363656bb7b..0970ba4c01 100644
--- a/legacy/ephysics/src/lib/ephysics_private.h
+++ b/legacy/ephysics/src/lib/ephysics_private.h
@@ -62,12 +62,12 @@ void ephysics_world_constraint_del(EPhysics_World *world, btTypedConstraint *bt_
62void ephysics_body_world_boundaries_resize(EPhysics_World *world); 62void ephysics_body_world_boundaries_resize(EPhysics_World *world);
63void ephysics_world_boundary_set(EPhysics_World *world, EPhysics_World_Boundary boundary, EPhysics_Body *body); 63void ephysics_world_boundary_set(EPhysics_World *world, EPhysics_World_Boundary boundary, EPhysics_Body *body);
64EPhysics_Body *ephysics_world_boundary_get(const EPhysics_World *world, EPhysics_World_Boundary boundary); 64EPhysics_Body *ephysics_world_boundary_get(const EPhysics_World *world, EPhysics_World_Boundary boundary);
65Eina_Bool ephysics_world_bodies_outside_autodel_get(EPhysics_World *world); 65Eina_Bool ephysics_world_bodies_outside_autodel_get(const EPhysics_World *world);
66 66
67void ephysics_body_evas_object_update_select(EPhysics_Body *body); 67void ephysics_body_evas_object_update_select(EPhysics_Body *body);
68void ephysics_orphan_body_del(EPhysics_Body *body); 68void ephysics_orphan_body_del(EPhysics_Body *body);
69void ephysics_body_contact_processed(EPhysics_Body *body, EPhysics_Body *contact_body); 69void ephysics_body_contact_processed(EPhysics_Body *body, EPhysics_Body *contact_body);
70btRigidBody *ephysics_body_rigid_body_get(EPhysics_Body *body); 70btRigidBody *ephysics_body_rigid_body_get(const EPhysics_Body *body);
71void ephysics_body_active_set(EPhysics_Body *body, Eina_Bool active); 71void ephysics_body_active_set(EPhysics_Body *body, Eina_Bool active);
72 72
73EPhysics_Camera *ephysics_camera_add(EPhysics_World *world); 73EPhysics_Camera *ephysics_camera_add(EPhysics_World *world);
diff --git a/legacy/ephysics/src/lib/ephysics_world.cpp b/legacy/ephysics/src/lib/ephysics_world.cpp
index be1e9d83c0..78dcfe0734 100644
--- a/legacy/ephysics/src/lib/ephysics_world.cpp
+++ b/legacy/ephysics/src/lib/ephysics_world.cpp
@@ -486,7 +486,7 @@ ephysics_world_constraint_solver_iterations_set(EPhysics_World *world, int itera
486} 486}
487 487
488EAPI int 488EAPI int
489ephysics_world_constraint_solver_iterations_get(EPhysics_World *world) 489ephysics_world_constraint_solver_iterations_get(const EPhysics_World *world)
490{ 490{
491 if (!world) 491 if (!world)
492 { 492 {
@@ -514,7 +514,7 @@ ephysics_world_constraint_solver_mode_enable_set(EPhysics_World *world, EPhysics
514} 514}
515 515
516EAPI Eina_Bool 516EAPI Eina_Bool
517ephysics_world_constraint_solver_mode_enable_get(EPhysics_World *world, EPhysics_World_Solver_Mode solver_mode) 517ephysics_world_constraint_solver_mode_enable_get(const EPhysics_World *world, EPhysics_World_Solver_Mode solver_mode)
518{ 518{
519 if (!world) 519 if (!world)
520 { 520 {
@@ -711,7 +711,7 @@ ephysics_world_render_geometry_set(EPhysics_World *world, Evas_Coord x, Evas_Coo
711} 711}
712 712
713EAPI void 713EAPI void
714ephysics_world_render_geometry_get(EPhysics_World *world, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) 714ephysics_world_render_geometry_get(const EPhysics_World *world, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
715{ 715{
716 if (!world) 716 if (!world)
717 { 717 {
@@ -738,7 +738,7 @@ ephysics_world_linear_slop_set(EPhysics_World *world, double linear_slop)
738} 738}
739 739
740EAPI double 740EAPI double
741ephysics_world_linear_slop_get(EPhysics_World *world) 741ephysics_world_linear_slop_get(const EPhysics_World *world)
742{ 742{
743 if (!world) 743 if (!world)
744 { 744 {
@@ -764,7 +764,7 @@ ephysics_world_bodies_outside_top_autodel_set(EPhysics_World *world, Eina_Bool a
764} 764}
765 765
766EAPI Eina_Bool 766EAPI Eina_Bool
767ephysics_world_bodies_outside_top_autodel_get(EPhysics_World *world) 767ephysics_world_bodies_outside_top_autodel_get(const EPhysics_World *world)
768{ 768{
769 if (!world) 769 if (!world)
770 { 770 {
@@ -790,7 +790,7 @@ ephysics_world_bodies_outside_bottom_autodel_set(EPhysics_World *world, Eina_Boo
790} 790}
791 791
792EAPI Eina_Bool 792EAPI Eina_Bool
793ephysics_world_bodies_outside_bottom_autodel_get(EPhysics_World *world) 793ephysics_world_bodies_outside_bottom_autodel_get(const EPhysics_World *world)
794{ 794{
795 if (!world) 795 if (!world)
796 { 796 {
@@ -816,7 +816,7 @@ ephysics_world_bodies_outside_left_autodel_set(EPhysics_World *world, Eina_Bool
816} 816}
817 817
818EAPI Eina_Bool 818EAPI Eina_Bool
819ephysics_world_bodies_outside_left_autodel_get(EPhysics_World *world) 819ephysics_world_bodies_outside_left_autodel_get(const EPhysics_World *world)
820{ 820{
821 if (!world) 821 if (!world)
822 { 822 {
@@ -842,7 +842,7 @@ ephysics_world_bodies_outside_right_autodel_set(EPhysics_World *world, Eina_Bool
842} 842}
843 843
844EAPI Eina_Bool 844EAPI Eina_Bool
845ephysics_world_bodies_outside_right_autodel_get(EPhysics_World *world) 845ephysics_world_bodies_outside_right_autodel_get(const EPhysics_World *world)
846{ 846{
847 if (!world) 847 if (!world)
848 { 848 {
@@ -854,7 +854,7 @@ ephysics_world_bodies_outside_right_autodel_get(EPhysics_World *world)
854} 854}
855 855
856Eina_Bool 856Eina_Bool
857ephysics_world_bodies_outside_autodel_get(EPhysics_World *world) 857ephysics_world_bodies_outside_autodel_get(const EPhysics_World *world)
858{ 858{
859 if (!world) 859 if (!world)
860 { 860 {