From 187f37b29df2a5893cb15efc1fd8ed92627ef021 Mon Sep 17 00:00:00 2001 From: Adrian Stephens Date: Fri, 30 Jun 2017 20:08:07 -0700 Subject: [PATCH] ...and some more... ugh --- glm/detail/type_vec1.inl | 22 +++++++++++----------- glm/detail/type_vec2.inl | 20 ++++++++++---------- glm/detail/type_vec3.inl | 20 ++++++++++---------- glm/detail/type_vec4.inl | 20 ++++++++++---------- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/glm/detail/type_vec1.inl b/glm/detail/type_vec1.inl index 1e490e8b..8730fe06 100644 --- a/glm/detail/type_vec1.inl +++ b/glm/detail/type_vec1.inl @@ -101,7 +101,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator+=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator+=(U scalar) { this->x += static_cast(scalar); return *this; @@ -117,7 +117,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator-=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator-=(U scalar) { this->x -= static_cast(scalar); return *this; @@ -133,7 +133,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator*=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator*=(U scalar) { this->x *= static_cast(scalar); return *this; @@ -149,7 +149,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator/=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator/=(U scalar) { this->x /= static_cast(scalar); return *this; @@ -199,7 +199,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator%=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator%=(U scalar) { this->x %= static_cast(scalar); return *this; @@ -215,7 +215,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator&=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator&=(U scalar) { this->x &= static_cast(scalar); return *this; @@ -231,7 +231,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator|=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator|=(U scalar) { this->x |= static_cast(scalar); return *this; @@ -247,7 +247,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator^=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator^=(U scalar) { this->x ^= static_cast(scalar); return *this; @@ -263,7 +263,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator<<=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator<<=(U scalar) { this->x <<= static_cast(scalar); return *this; @@ -271,7 +271,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator<<=(tvec1 const & v) + GLM_FUNC_QUALIFIER vec<1, T, P> & vec<1, T, P>::operator<<=(vec<1, U, P> const & v) { this->x <<= static_cast(v.x); return *this; @@ -279,7 +279,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) tvec1::operator>>=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 1, T, P, U) vec<1, T, P>::operator>>=(U scalar) { this->x >>= static_cast(scalar); return *this; diff --git a/glm/detail/type_vec2.inl b/glm/detail/type_vec2.inl index 7e5b264a..9e5172d2 100644 --- a/glm/detail/type_vec2.inl +++ b/glm/detail/type_vec2.inl @@ -121,7 +121,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator+=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator+=(U scalar) { this->x += static_cast(scalar); this->y += static_cast(scalar); @@ -148,7 +148,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator-=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator-=(U scalar) { this->x -= static_cast(scalar); this->y -= static_cast(scalar); @@ -175,7 +175,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator*=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator*=(U scalar) { this->x *= static_cast(scalar); this->y *= static_cast(scalar); @@ -202,7 +202,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator/=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator/=(U scalar) { this->x /= static_cast(scalar); this->y /= static_cast(scalar); @@ -265,7 +265,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator%=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator%=(U scalar) { this->x %= static_cast(scalar); this->y %= static_cast(scalar); @@ -292,7 +292,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator&=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator&=(U scalar) { this->x &= static_cast(scalar); this->y &= static_cast(scalar); @@ -319,7 +319,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator|=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator|=(U scalar) { this->x |= static_cast(scalar); this->y |= static_cast(scalar); @@ -346,7 +346,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator^=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator^=(U scalar) { this->x ^= static_cast(scalar); this->y ^= static_cast(scalar); @@ -373,7 +373,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator<<=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator<<=(U scalar) { this->x <<= static_cast(scalar); this->y <<= static_cast(scalar); @@ -400,7 +400,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) tvec2::operator>>=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 2, T, P, U) vec<2, T, P>::operator>>=(U scalar) { this->x >>= static_cast(scalar); this->y >>= static_cast(scalar); diff --git a/glm/detail/type_vec3.inl b/glm/detail/type_vec3.inl index 18eeb169..da2faf2f 100644 --- a/glm/detail/type_vec3.inl +++ b/glm/detail/type_vec3.inl @@ -152,7 +152,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator+=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator+=(U scalar) { this->x += static_cast(scalar); this->y += static_cast(scalar); @@ -182,7 +182,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator-=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator-=(U scalar) { this->x -= static_cast(scalar); this->y -= static_cast(scalar); @@ -212,7 +212,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator*=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator*=(U scalar) { this->x *= static_cast(scalar); this->y *= static_cast(scalar); @@ -242,7 +242,7 @@ namespace glm template template - GLM_FUNC_DECL GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator/=(U v) + GLM_FUNC_DECL GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator/=(U v) { this->x /= static_cast(v); this->y /= static_cast(v); @@ -310,7 +310,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator%=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator%=(U scalar) { this->x %= scalar; this->y %= scalar; @@ -340,7 +340,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator&=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator&=(U scalar) { this->x &= scalar; this->y &= scalar; @@ -370,7 +370,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator|=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator|=(U scalar) { this->x |= scalar; this->y |= scalar; @@ -400,7 +400,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator^=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator^=(U scalar) { this->x ^= scalar; this->y ^= scalar; @@ -430,7 +430,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator<<=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator<<=(U scalar) { this->x <<= scalar; this->y <<= scalar; @@ -460,7 +460,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) tvec3::operator>>=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 3, T, P, U) vec<3, T, P>::operator>>=(U scalar) { this->x >>= static_cast(scalar); this->y >>= static_cast(scalar); diff --git a/glm/detail/type_vec4.inl b/glm/detail/type_vec4.inl index 6ff790f1..dc5e611e 100644 --- a/glm/detail/type_vec4.inl +++ b/glm/detail/type_vec4.inl @@ -365,7 +365,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator+=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator+=(U scalar) { return (*this = detail::compute_vec4_add::value>::call(*this, vec<4, T, P>(scalar))); } @@ -386,7 +386,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator-=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator-=(U scalar) { return (*this = detail::compute_vec4_sub::value>::call(*this, vec<4, T, P>(scalar))); } @@ -407,7 +407,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator*=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator*=(U scalar) { return (*this = detail::compute_vec4_mul::value>::call(*this, vec<4, T, P>(scalar))); } @@ -428,7 +428,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator/=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator/=(U scalar) { return (*this = detail::compute_vec4_div::value>::call(*this, vec<4, T, P>(scalar))); } @@ -489,7 +489,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator%=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator%=(U scalar) { return (*this = detail::compute_vec4_mod::value>::call(*this, vec<4, T, P>(scalar))); } @@ -510,7 +510,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator&=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator&=(U scalar) { return (*this = detail::compute_vec4_and::value, sizeof(T) * 8, detail::is_aligned

::value>::call(*this, vec<4, T, P>(scalar))); } @@ -531,7 +531,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator|=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator|=(U scalar) { return (*this = detail::compute_vec4_or::value, sizeof(T) * 8, detail::is_aligned

::value>::call(*this, vec<4, T, P>(scalar))); } @@ -552,7 +552,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator^=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator^=(U scalar) { return (*this = detail::compute_vec4_xor::value, sizeof(T) * 8, detail::is_aligned

::value>::call(*this, vec<4, T, P>(scalar))); } @@ -573,7 +573,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator<<=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator<<=(U scalar) { return (*this = detail::compute_vec4_shift_left::value, sizeof(T) * 8, detail::is_aligned

::value>::call(*this, vec<4, T, P>(scalar))); } @@ -594,7 +594,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) tvec4::operator>>=(U scalar) + GLM_FUNC_QUALIFIER GLM_ONLY_SCALAR2(vec, 4, T, P, U) vec<4, T, P>::operator>>=(U scalar) { return (*this = detail::compute_vec4_shift_right::value, sizeof(T) * 8, detail::is_aligned

::value>::call(*this, vec<4, T, P>(scalar))); }