diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-10-31 14:42:14 +0100 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-11-19 13:55:19 +0100 |
| commit | 154bc70037d42ef15d9a6c3288b8006027c2cb94 (patch) | |
| tree | 7eb8e456c592054e85831dfb2d3194abea639d33 /src_testbed/lib.rs | |
| parent | c26c3af50803e964c86df52a0c29bc74362aea71 (diff) | |
| download | rapier-154bc70037d42ef15d9a6c3288b8006027c2cb94.tar.gz rapier-154bc70037d42ef15d9a6c3288b8006027c2cb94.tar.bz2 rapier-154bc70037d42ef15d9a6c3288b8006027c2cb94.zip | |
Remove the Salva integration code from rapier + add a plugin system to the testbed.
Diffstat (limited to 'src_testbed/lib.rs')
| -rw-r--r-- | src_testbed/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src_testbed/lib.rs b/src_testbed/lib.rs index e077bb1..4b0830f 100644 --- a/src_testbed/lib.rs +++ b/src_testbed/lib.rs @@ -13,6 +13,10 @@ extern crate nphysics3d as nphysics; extern crate rapier2d as rapier; #[cfg(feature = "dim3")] extern crate rapier3d as rapier; +#[cfg(all(feature = "dim2", feature = "fluids"))] +extern crate salva2d as salva; +#[cfg(all(feature = "dim3", feature = "fluids"))] +extern crate salva3d as salva; #[macro_use] extern crate bitflags; @@ -22,7 +26,8 @@ extern crate bitflags; extern crate log; pub use crate::engine::GraphicsManager; -pub use crate::testbed::Testbed; +pub use crate::plugin::TestbedPlugin; +pub use crate::testbed::{PhysicsState, Testbed}; #[cfg(all(feature = "dim2", feature = "other-backends"))] mod box2d_backend; @@ -32,6 +37,7 @@ mod nphysics_backend; pub mod objects; #[cfg(all(feature = "dim3", feature = "other-backends"))] mod physx_backend; +mod plugin; mod testbed; mod ui; |
