Skip to content

Commit

Permalink
Update Magnum and m.css to latest (#2309)
Browse files Browse the repository at this point in the history
* Update Magnum and m.css to latest.

* Adapt JS bindings to the new Quaternion::rotation() overload.
  • Loading branch information
mosra committed Jan 29, 2024
1 parent a5b0db3 commit 9233834
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/m.css
Submodule m.css updated 157 files
2 changes: 1 addition & 1 deletion src/deps/magnum
Submodule magnum updated 41 files
+6 −0 doc/changelog.dox
+3 −0 package/archlinux/PKGBUILD-emscripten-wasm
+3 −0 package/archlinux/PKGBUILD-emscripten-wasm-webgl2
+1 −1 src/Magnum/Animation/Easing.h
+5 −5 src/Magnum/Math/Color.h
+2 −1 src/Magnum/Math/Matrix.h
+55 −1 src/Magnum/Math/Quaternion.h
+24 −0 src/Magnum/Math/Range.h
+43 −40 src/Magnum/Math/RectangularMatrix.h
+2 −0 src/Magnum/Math/Test/BezierTest.cpp
+46 −0 src/Magnum/Math/Test/ColorTest.cpp
+2 −2 src/Magnum/Math/Test/ComplexTest.cpp
+2 −0 src/Magnum/Math/Test/DualComplexTest.cpp
+2 −0 src/Magnum/Math/Test/DualQuaternionTest.cpp
+2 −0 src/Magnum/Math/Test/DualTest.cpp
+3 −3 src/Magnum/Math/Test/FunctionsBenchmark.cpp
+3 −3 src/Magnum/Math/Test/InterpolationBenchmark.cpp
+8 −8 src/Magnum/Math/Test/IntersectionBenchmark.cpp
+2 −0 src/Magnum/Math/Test/Matrix3Test.cpp
+2 −0 src/Magnum/Math/Test/Matrix4Test.cpp
+5 −5 src/Magnum/Math/Test/MatrixBenchmark.cpp
+6 −0 src/Magnum/Math/Test/MatrixTest.cpp
+83 −4 src/Magnum/Math/Test/QuaternionTest.cpp
+30 −0 src/Magnum/Math/Test/RangeTest.cpp
+139 −83 src/Magnum/Math/Test/RectangularMatrixTest.cpp
+1 −0 src/Magnum/Math/Test/SwizzleTest.cpp
+2 −0 src/Magnum/Math/Test/UnitTest.cpp
+28 −0 src/Magnum/Math/Test/Vector2Test.cpp
+28 −0 src/Magnum/Math/Test/Vector3Test.cpp
+36 −4 src/Magnum/Math/Test/Vector4Test.cpp
+3 −3 src/Magnum/Math/Test/VectorBenchmark.cpp
+516 −64 src/Magnum/Math/Test/VectorTest.cpp
+696 −654 src/Magnum/Math/Vector.h
+1 −1 src/Magnum/Math/Vector2.h
+1 −1 src/Magnum/Math/Vector3.h
+4 −4 src/Magnum/Math/Vector4.h
+15 −0 src/Magnum/Platform/EmscriptenApplication.h
+0 −1 src/Magnum/SceneTools/Test/MapTest.cpp
+2 −1 src/Magnum/Trade/MaterialData.h
+16 −9 src/Magnum/Trade/MeshData.h
+1 −1 src/Magnum/Vk/DeviceCreateInfo.h
2 changes: 1 addition & 1 deletion src/deps/magnum-plugins
5 changes: 4 additions & 1 deletion src/esp/bindings_js/bindings_js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ EMSCRIPTEN_BINDINGS(habitat_sim_bindings_js) {
.function("transformVector", &Magnum::Quaternion::transformVector)
// mul class method instead of operator*
.class_function("mul", &Quaternion_mul)
.class_function("rotation", &Magnum::Quaternion::rotation);
.class_function("rotation",
em::select_overload<Magnum::Quaternion(
const Magnum::Vector3&, const Magnum::Vector3&)>(
&Magnum::Quaternion::rotation));

em::class_<AgentConfiguration>("AgentConfiguration")
.smart_ptr_constructor("AgentConfiguration",
Expand Down

0 comments on commit 9233834

Please sign in to comment.