summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/lib/EPhysics.h
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-15 21:54:35 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-15 21:54:35 +0000
commitbb90530f7b4240740ae54828bcaa269e909f80de (patch)
treea4b989fc5a3b20e7f377ced374b8aa72f5e3fef8 /legacy/ephysics/src/lib/EPhysics.h
parentc2b0c76b74a05eadc9f0b18db02ec54d822c22e5 (diff)
ephysics: add autodel functions for front and back of
the scene SVN revision: 78016
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/lib/EPhysics.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/legacy/ephysics/src/lib/EPhysics.h
index 6884b5fe85..e2c34943a8 100644
--- a/legacy/ephysics/src/lib/EPhysics.h
+++ b/legacy/ephysics/src/lib/EPhysics.h
@@ -1033,6 +1033,8 @@ EAPI double ephysics_world_linear_slop_get(const EPhysics_World *world);
1033 * @see ephysics_world_bodies_outside_bottom_autodel_set(). 1033 * @see ephysics_world_bodies_outside_bottom_autodel_set().
1034 * @see ephysics_world_bodies_outside_left_autodel_set(). 1034 * @see ephysics_world_bodies_outside_left_autodel_set().
1035 * @see ephysics_world_bodies_outside_right_autodel_set(). 1035 * @see ephysics_world_bodies_outside_right_autodel_set().
1036 * @see ephysics_world_bodies_outside_front_autodel_set().
1037 * @see ephysics_world_bodies_outside_back_autodel_set().
1036 * 1038 *
1037 * @ingroup EPhysics_World 1039 * @ingroup EPhysics_World
1038 */ 1040 */
@@ -1066,6 +1068,8 @@ EAPI Eina_Bool ephysics_world_bodies_outside_top_autodel_get(const EPhysics_Worl
1066 * @see ephysics_world_bodies_outside_bottom_autodel_get(). 1068 * @see ephysics_world_bodies_outside_bottom_autodel_get().
1067 * @see ephysics_world_bodies_outside_left_autodel_set(). 1069 * @see ephysics_world_bodies_outside_left_autodel_set().
1068 * @see ephysics_world_bodies_outside_right_autodel_set(). 1070 * @see ephysics_world_bodies_outside_right_autodel_set().
1071 * @see ephysics_world_bodies_outside_front_autodel_set().
1072 * @see ephysics_world_bodies_outside_back_autodel_set().
1069 * 1073 *
1070 * @ingroup EPhysics_World 1074 * @ingroup EPhysics_World
1071 */ 1075 */
@@ -1099,6 +1103,8 @@ EAPI Eina_Bool ephysics_world_bodies_outside_bottom_autodel_get(const EPhysics_W
1099 * @see ephysics_world_bodies_outside_right_autodel_get(). 1103 * @see ephysics_world_bodies_outside_right_autodel_get().
1100 * @see ephysics_world_bodies_outside_bottom_autodel_set(). 1104 * @see ephysics_world_bodies_outside_bottom_autodel_set().
1101 * @see ephysics_world_bodies_outside_left_autodel_set(). 1105 * @see ephysics_world_bodies_outside_left_autodel_set().
1106 * @see ephysics_world_bodies_outside_front_autodel_set().
1107 * @see ephysics_world_bodies_outside_back_autodel_set().
1102 * 1108 *
1103 * @ingroup EPhysics_World 1109 * @ingroup EPhysics_World
1104 */ 1110 */
@@ -1132,6 +1138,8 @@ EAPI Eina_Bool ephysics_world_bodies_outside_right_autodel_get(const EPhysics_Wo
1132 * @see ephysics_world_bodies_outside_left_autodel_get(). 1138 * @see ephysics_world_bodies_outside_left_autodel_get().
1133 * @see ephysics_world_bodies_outside_bottom_autodel_set(). 1139 * @see ephysics_world_bodies_outside_bottom_autodel_set().
1134 * @see ephysics_world_bodies_outside_right_autodel_set(). 1140 * @see ephysics_world_bodies_outside_right_autodel_set().
1141 * @see ephysics_world_bodies_outside_front_autodel_set().
1142 * @see ephysics_world_bodies_outside_back_autodel_set().
1135 * 1143 *
1136 * @ingroup EPhysics_World 1144 * @ingroup EPhysics_World
1137 */ 1145 */
@@ -1154,6 +1162,76 @@ EAPI Eina_Bool ephysics_world_bodies_outside_left_autodel_get(const EPhysics_Wor
1154 1162
1155/** 1163/**
1156 * @brief 1164 * @brief
1165 * Set world autodeleting bodies mode when they're outside of render area
1166 * by the front.
1167 *
1168 * @param world The physics world.
1169 * @param autodel If @c EINA_TRUE delete bodies when they are outside render
1170 * area, otherwise, don't delete.
1171 *
1172 * @see ephysics_world_bodies_outside_top_autodel_set() for more details.
1173 * @see ephysics_world_bodies_outside_left_autodel_get().
1174 * @see ephysics_world_bodies_outside_bottom_autodel_set().
1175 * @see ephysics_world_bodies_outside_right_autodel_set().
1176 * @see ephysics_world_bodies_outside_front_autodel_set().
1177 * @see ephysics_world_bodies_outside_back_autodel_set().
1178 *
1179 * @ingroup EPhysics_World
1180 */
1181EAPI void ephysics_world_bodies_outside_front_autodel_set(EPhysics_World *world, Eina_Bool autodel);
1182
1183/**
1184 * @brief
1185 * Get world autodeleting bodies mode when they're outside of render area by
1186 * the front.
1187 *
1188 * @param world The physics world.
1189 * @return @c EINA_TRUE if bodies will be deleted or @c EINA_FALSE if they
1190 * won't, or on error.
1191 *
1192 * @see ephysics_world_bodies_outside_front_autodel_set() for details.
1193 *
1194 * @ingroup EPhysics_World
1195 */
1196EAPI Eina_Bool ephysics_world_bodies_outside_front_autodel_get(const EPhysics_World *world);
1197
1198/**
1199 * @brief
1200 * Set world autodeleting bodies mode when they're outside of render area
1201 * by the back.
1202 *
1203 * @param world The physics world.
1204 * @param autodel If @c EINA_TRUE delete bodies when they are outside render
1205 * area, otherwise, don't delete.
1206 *
1207 * @see ephysics_world_bodies_outside_top_autodel_set() for more details.
1208 * @see ephysics_world_bodies_outside_left_autodel_get().
1209 * @see ephysics_world_bodies_outside_bottom_autodel_set().
1210 * @see ephysics_world_bodies_outside_right_autodel_set().
1211 * @see ephysics_world_bodies_outside_front_autodel_set().
1212 * @see ephysics_world_bodies_outside_back_autodel_set().
1213 *
1214 * @ingroup EPhysics_World
1215 */
1216EAPI void ephysics_world_bodies_outside_back_autodel_set(EPhysics_World *world, Eina_Bool autodel);
1217
1218/**
1219 * @brief
1220 * Get world autodeleting bodies mode when they're outside of render area by
1221 * the back.
1222 *
1223 * @param world The physics world.
1224 * @return @c EINA_TRUE if bodies will be deleted or @c EINA_FALSE if they
1225 * won't, or on error.
1226 *
1227 * @see ephysics_world_bodies_outside_back_autodel_set() for details.
1228 *
1229 * @ingroup EPhysics_World
1230 */
1231EAPI Eina_Bool ephysics_world_bodies_outside_back_autodel_get(const EPhysics_World *world);
1232
1233/**
1234 * @brief
1157 * Set world simulation's fixed time step and max number of sub steps 1235 * Set world simulation's fixed time step and max number of sub steps
1158 * configuration. 1236 * configuration.
1159 * 1237 *