glm namespace

GLM namespace.

Contents

Extensions to the GLM library.

This library depends on the GLM library and is built if WITH_GLM is enabled when building Magnum Integration. To use this library with CMake, put FindMagnumIntegration.cmake and FindGLM.cmake into your modules/ directory, request the Glm component of the MagnumIntegration package and link to the MagnumIntegration::Glm target:

find_package(MagnumIntegration REQUIRED Glm)

# ...
target_link_libraries(your-app PRIVATE MagnumIntegration::Glm)

Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-integration repository and do the following before calling find_package(). Using GLM itself as a CMake subproject isn't tested at the moment, so you need to provide it as a system dependency and point CMAKE_PREFIX_PATH to its installation dir if necessary.

set(WITH_GLM ON CACHE BOOL "" FORCE)
add_subdirectory(magnum-integration EXCLUDE_FROM_ALL)

See also Downloading and building integration libraries and Integration library usage with CMake. See the Magnum::GlmIntegration namespace for license information.

Functions

template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tquat<T, q>& value) -> Corrade::Utility::Debug&
Debug output operator for GLM quaternion types.
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.
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tvec2<T, q>& value) -> Corrade::Utility::Debug&
Debug output operator for GLM vector types.
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tvec3<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tvec4<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat2x2<T, q>& value) -> Corrade::Utility::Debug&
Debug output operator for GLM matrix types.
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat2x3<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat2x4<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat3x2<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat3x3<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat3x4<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat4x2<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat4x3<T, q>& value) -> Corrade::Utility::Debug&
template<class T, glm::precision q>
auto operator<<(Corrade::Utility::Debug& debug, const tmat4x4<T, q>& value) -> Corrade::Utility::Debug&

Function documentation

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tquat<T, q>& value)

Debug output operator for GLM quaternion types.

Uses glm::to_string() internally. Available since GLM 0.9.7.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tdualquat<T, q>& value)

Debug output operator for GLM dual quaternion types.

Uses glm::to_string() internally. Available since GLM 0.9.7.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tvec2<T, q>& value)

Debug output operator for GLM vector types.

Uses glm::to_string() internally.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tvec3<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tvec4<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat2x2<T, q>& value)

Debug output operator for GLM matrix types.

Uses glm::to_string() internally.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat2x3<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat2x4<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat3x2<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat3x3<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat3x4<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat4x2<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat4x3<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T, glm::precision q>
Corrade::Utility::Debug& glm::operator<<(Corrade::Utility::Debug& debug, const tmat4x4<T, q>& value)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.