| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | #pragma once |
| 12 | |
| 13 | |
| 14 | #include "../detail/type_quat.hpp" |
| 15 | |
| 16 | #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) |
| 17 | # pragma message("GLM: GLM_EXT_quaternion_float_precision extension included") |
| 18 | #endif |
| 19 | |
| 20 | namespace glm |
| 21 | { |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | typedef qua<float, lowp> lowp_quat; |
| 27 | |
| 28 | |
| 29 | typedef qua<float, mediump> mediump_quat; |
| 30 | |
| 31 | |
| 32 | typedef qua<float, highp> highp_quat; |
| 33 | |
| 34 | |
| 35 | } |
| 36 | |
| 37 | #if GLM_CONFIG_CTOR_INIT == GLM_DISABLE |
| 38 | static_assert(std::is_trivially_default_constructible<glm::lowp_quat>::value); |
| 39 | static_assert(std::is_trivially_default_constructible<glm::mediump_quat>::value); |
| 40 | static_assert(std::is_trivially_default_constructible<glm::highp_quat>::value); |
| 41 | #endif |
| 42 | static_assert(std::is_trivially_copy_assignable<glm::lowp_quat>::value); |
| 43 | static_assert(std::is_trivially_copy_assignable<glm::mediump_quat>::value); |
| 44 | static_assert(std::is_trivially_copy_assignable<glm::highp_quat>::value); |
| 45 | static_assert(std::is_trivially_copyable<glm::lowp_quat>::value); |
| 46 | static_assert(std::is_trivially_copyable<glm::mediump_quat>::value); |
| 47 | static_assert(std::is_trivially_copyable<glm::highp_quat>::value); |
| 48 | static_assert(std::is_copy_constructible<glm::lowp_quat>::value); |
| 49 | static_assert(std::is_copy_constructible<glm::mediump_quat>::value); |
| 50 | static_assert(std::is_copy_constructible<glm::highp_quat>::value); |
| 51 | static_assert(glm::lowp_quat::length() == 4); |
| 52 | static_assert(glm::mediump_quat::length() == 4); |
| 53 | static_assert(glm::highp_quat::length() == 4); |