| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | #pragma once |
| 14 | |
| 15 | |
| 16 | #include "../mat2x2.hpp" |
| 17 | #include "../ext/scalar_uint_sized.hpp" |
| 18 | |
| 19 | #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) |
| 20 | # pragma message("GLM: GLM_EXT_matrix_uint2x2_sized extension included") |
| 21 | #endif |
| 22 | |
| 23 | namespace glm |
| 24 | { |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | typedef mat<2, 2, uint8, defaultp> u8mat2x2; |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | typedef mat<2, 2, uint16, defaultp> u16mat2x2; |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | typedef mat<2, 2, uint32, defaultp> u32mat2x2; |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | typedef mat<2, 2, uint64, defaultp> u64mat2x2; |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | typedef mat<2, 2, uint8, defaultp> u8mat2; |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | typedef mat<2, 2, uint16, defaultp> u16mat2; |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | typedef mat<2, 2, uint32, defaultp> u32mat2; |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | typedef mat<2, 2, uint64, defaultp> u64mat2; |
| 68 | |
| 69 | |
| 70 | } |
| 71 | |
| 72 | #if GLM_CONFIG_CTOR_INIT == GLM_DISABLE |
| 73 | static_assert(std::is_trivially_default_constructible<glm::u8mat2x2>::value); |
| 74 | static_assert(std::is_trivially_default_constructible<glm::u16mat2x2>::value); |
| 75 | static_assert(std::is_trivially_default_constructible<glm::u32mat2x2>::value); |
| 76 | static_assert(std::is_trivially_default_constructible<glm::u64mat2x2>::value); |
| 77 | static_assert(std::is_trivially_default_constructible<glm::u8mat2>::value); |
| 78 | static_assert(std::is_trivially_default_constructible<glm::u16mat2>::value); |
| 79 | static_assert(std::is_trivially_default_constructible<glm::u32mat2>::value); |
| 80 | static_assert(std::is_trivially_default_constructible<glm::u64mat2>::value); |
| 81 | #endif |
| 82 | static_assert(std::is_trivially_copy_assignable<glm::u8mat2x2>::value); |
| 83 | static_assert(std::is_trivially_copy_assignable<glm::u16mat2x2>::value); |
| 84 | static_assert(std::is_trivially_copy_assignable<glm::u32mat2x2>::value); |
| 85 | static_assert(std::is_trivially_copy_assignable<glm::u64mat2x2>::value); |
| 86 | static_assert(std::is_trivially_copy_assignable<glm::u8mat2>::value); |
| 87 | static_assert(std::is_trivially_copy_assignable<glm::u16mat2>::value); |
| 88 | static_assert(std::is_trivially_copy_assignable<glm::u32mat2>::value); |
| 89 | static_assert(std::is_trivially_copy_assignable<glm::u64mat2>::value); |
| 90 | static_assert(std::is_trivially_copyable<glm::u8mat2x2>::value); |
| 91 | static_assert(std::is_trivially_copyable<glm::u16mat2x2>::value); |
| 92 | static_assert(std::is_trivially_copyable<glm::u32mat2x2>::value); |
| 93 | static_assert(std::is_trivially_copyable<glm::u64mat2x2>::value); |
| 94 | static_assert(std::is_trivially_copyable<glm::u8mat2>::value); |
| 95 | static_assert(std::is_trivially_copyable<glm::u16mat2>::value); |
| 96 | static_assert(std::is_trivially_copyable<glm::u32mat2>::value); |
| 97 | static_assert(std::is_trivially_copyable<glm::u64mat2>::value); |
| 98 | static_assert(std::is_copy_constructible<glm::u8mat2x2>::value); |
| 99 | static_assert(std::is_copy_constructible<glm::u16mat2x2>::value); |
| 100 | static_assert(std::is_copy_constructible<glm::u32mat2x2>::value); |
| 101 | static_assert(std::is_copy_constructible<glm::u64mat2x2>::value); |
| 102 | static_assert(std::is_copy_constructible<glm::u8mat2>::value); |
| 103 | static_assert(std::is_copy_constructible<glm::u16mat2>::value); |
| 104 | static_assert(std::is_copy_constructible<glm::u32mat2>::value); |
| 105 | static_assert(std::is_copy_constructible<glm::u64mat2>::value); |
| 106 | static_assert(glm::u8mat2x2::length() == 2); |
| 107 | static_assert(glm::u16mat2x2::length() == 2); |
| 108 | static_assert(glm::u32mat2x2::length() == 2); |
| 109 | static_assert(glm::u64mat2x2::length() == 2); |
| 110 | static_assert(glm::u8mat2::length() == 2); |
| 111 | static_assert(glm::u16mat2::length() == 2); |
| 112 | static_assert(glm::u32mat2::length() == 2); |
| 113 | static_assert(glm::u64mat2::length() == 2); |