Magnum/GlmIntegration/GtxIntegration.h file

Integration of GLM experimental extension types.

Provides conversion for the following types. See Magnum/GlmIntegration/Integration.h and Magnum/GlmIntegration/GtxIntegration.h for conversion of other types.

Magnum typeEquivalent GLM type
DualQuaternion, DualQuaterniondglm::dualquat, glm::ddualquat

Types with extra qualifiers (such as glm::mediump_ddualquat) are treated the same as types with no qualifier. Debug output using Corrade::Utility::Debug for all types is provided as well. Example usage:

#include <Magnum/GlmIntegration/GtxIntegration.h>

DualQuaternion a = DualQuaternion::translation({1.0f, 2.0f, 3.0f});
glm::dualquat b(a);

Debug{} << glm::highp_ddualquat{{4.0, 1.0, 2.0, 3.0},
                                {8.0, 5.0, 6.0, 7.0}};
    // prints ddualquat((4.000000, {1.000000, 2.000000, 3.000000}),
    //                  (8.000000, {5.000000, 6.000000, 7.000000}))


namespace glm
GLM namespace.


template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tdualquat<T, q>& value) -> Corrade::Utility::Debug&
Debug output operator for GLM dual quaternion types.