Expand description
ode integrates bindings to cppbridge cdrawstuff and cppode
- cc-rs https://crates.io/crates/cc
- bindgen https://crates.io/crates/bindgen
§cc-rs
- include/bridge.hpp
- src/bridge.cpp
§bindgen
from
- include/bridge.hpp
- ode/ode.hpp (from modified preprocess -E dum.cpp includes ode.h)
to
- include/bridge_bindings.rs
- ode/ode_bindings.rs
§Requirements
in the running directory
- drawstuff.dll
- ode.dll
- libstdc++-6.dll
- libgcc_s_seh-1.dll
- libwinpthread-1.dll
Re-exports§
pub extern crate impl_sim;
pub use trimeshconvex::TriMesh;
pub use trimeshconvex::Convex;
pub use trimeshconvex::custom;
pub use trimeshconvex::tetra;
pub use trimeshconvex::cube;
pub use trimeshconvex::icosahedron;
pub use trimeshconvex::bunny;
pub use meta::MetaInf;
pub use meta::MetaConvex;
pub use meta::MetaTriMesh;
pub use meta::MetaComposite;
pub use meta::MetaSphere;
pub use meta::MetaBox;
pub use meta::MetaCapsule;
pub use meta::MetaCylinder;
pub use meta::MetaPlane;
pub use cls::obg::Obg;
pub use cls::obg::Gws;
pub use cls::AsPtr;
Modules§
- cls
- err
- mat
- meta
- trimeshconvex
Macros§
- for debug output status
- for debug output status with ln
Structs§
- Bridge for cpp
- krp
- ODE singleton
- for Result<_, Box<dyn Error>> handling
- mat as slice
Constants§
- Archimedes’ constant (π)
Statics§
- static krp 0.01
- static krp 0.8
- static krp 0.95
- static krp 1.0
- static krp n k
- static dMatrix3 Identity
- static dMatrix4 Identity
- unsafe static mut OYK_MUT (management ODE singleton instance)
- static angle 360 dual
- static angle 90 half
- static angle 270
- static angle 45 quarter
- static angle 135
- static angle 60 regular triangle
- static angle 120
- static angle 240
- static angle 300
- static angle 30 a sixth
- static angle 150
- static dQuaternion Identity
Traits§
- constructor and converter for primitive type
- constructor and converter for primitive type
- constructor and converter for primitive type
- trait Sim must have callback functions
Functions§
- as local function to be independent of ode.hpp
- bput⚠legacy C interface
- construct array [T; N] (dVector3 dMatrix3 etc) from vec![]
- u32 RGBA (little endian) to dVector4 color (not use dVector4 and mat::v2a to be independent of ode)
Type Aliases§
- replace bridge.hpp (defined in ode.hpp)
- replace bridge.hpp (defined in ode.hpp)