diff --git a/deps/glm/detail/dummy.cpp b/deps/glm/detail/dummy.cpp deleted file mode 100644 index 98ca022ceb..0000000000 --- a/deps/glm/detail/dummy.cpp +++ /dev/null @@ -1,190 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////////// -/// OpenGL Mathematics (glm.g-truc.net) -/// -/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) -/// Permission is hereby granted, free of charge, to any person obtaining a copy -/// of this software and associated documentation files (the "Software"), to deal -/// in the Software without restriction, including without limitation the rights -/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -/// copies of the Software, and to permit persons to whom the Software is -/// furnished to do so, subject to the following conditions: -/// -/// The above copyright notice and this permission notice shall be included in -/// all copies or substantial portions of the Software. -/// -/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -/// THE SOFTWARE. -/// -/// @ref core -/// @file glm/core/dummy.cpp -/// @date 2011-01-19 / 2011-06-15 -/// @author Christophe Riccio -/// -/// GLM is a header only library. There is nothing to compile. -/// dummy.cpp exist only a wordaround for CMake file. -/////////////////////////////////////////////////////////////////////////////////// - -#define GLM_FORCE_RADIANS -#define GLM_MESSAGES -#include "../glm.hpp" -#include - -struct material -{ - glm::vec4 emission; // Ecm - glm::vec4 ambient; // Acm - glm::vec4 diffuse; // Dcm - glm::vec4 specular; // Scm - float shininess; // Srm -}; -struct light -{ - glm::vec4 ambient; // Acli - glm::vec4 diffuse; // Dcli - glm::vec4 specular; // Scli - glm::vec4 position; // Ppli - glm::vec4 halfVector; // Derived: Hi - glm::vec3 spotDirection; // Sdli - float spotExponent; // Srli - float spotCutoff; // Crli - // (range: [0.0,90.0], 180.0) - float spotCosCutoff; // Derived: cos(Crli) - // (range: [1.0,0.0],-1.0) - float constantAttenuation; // K0 - float linearAttenuation; // K1 - float quadraticAttenuation;// K2 -}; - -// Sample 1 -#include // glm::vec3 -#include // glm::cross, glm::normalize - -glm::vec3 computeNormal -( - glm::vec3 const & a, - glm::vec3 const & b, - glm::vec3 const & c -) -{ - return glm::normalize(glm::cross(c - a, b - a)); -} - -typedef unsigned int GLuint; -#define GL_FALSE 0 -void glUniformMatrix4fv(GLuint, int, int, float*){} - -// Sample 2 -#include // glm::vec3 -#include // glm::vec4, glm::ivec4 -#include // glm::mat4 -#include // glm::translate, glm::rotate, glm::scale, glm::perspective -#include // glm::value_ptr -void func(GLuint LocationMVP, float Translate, glm::vec2 const & Rotate) -{ - glm::mat4 Projection = glm::perspective(45.0f, 4.0f / 3.0f, 0.1f, 100.f); - glm::mat4 ViewTranslate = glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, -Translate)); - glm::mat4 ViewRotateX = glm::rotate(ViewTranslate, Rotate.y, glm::vec3(-1.0f, 0.0f, 0.0f)); - glm::mat4 View = glm::rotate(ViewRotateX, Rotate.x, glm::vec3(0.0f, 1.0f, 0.0f)); - glm::mat4 Model = glm::scale(glm::mat4(1.0f), glm::vec3(0.5f)); - glm::mat4 MVP = Projection * View * Model; - glUniformMatrix4fv(LocationMVP, 1, GL_FALSE, glm::value_ptr(MVP)); -} - -// Sample 3 -#include // glm::vec2 -#include // glm::packUnorm2x16 -#include // glm::uint -#include // glm::i8vec2, glm::i32vec2 -std::size_t const VertexCount = 4; -// Float quad geometry -std::size_t const PositionSizeF32 = VertexCount * sizeof(glm::vec2); -glm::vec2 const PositionDataF32[VertexCount] = -{ - glm::vec2(-1.0f,-1.0f), - glm::vec2( 1.0f,-1.0f), - glm::vec2( 1.0f, 1.0f), - glm::vec2(-1.0f, 1.0f) - }; -// Half-float quad geometry -std::size_t const PositionSizeF16 = VertexCount * sizeof(glm::uint); -glm::uint const PositionDataF16[VertexCount] = -{ - glm::uint(glm::packUnorm2x16(glm::vec2(-1.0f, -1.0f))), - glm::uint(glm::packUnorm2x16(glm::vec2( 1.0f, -1.0f))), - glm::uint(glm::packUnorm2x16(glm::vec2( 1.0f, 1.0f))), - glm::uint(glm::packUnorm2x16(glm::vec2(-1.0f, 1.0f))) -}; -// 8 bits signed integer quad geometry -std::size_t const PositionSizeI8 = VertexCount * sizeof(glm::i8vec2); -glm::i8vec2 const PositionDataI8[VertexCount] = -{ - glm::i8vec2(-1,-1), - glm::i8vec2( 1,-1), - glm::i8vec2( 1, 1), - glm::i8vec2(-1, 1) -}; -// 32 bits signed integer quad geometry -std::size_t const PositionSizeI32 = VertexCount * sizeof(glm::i32vec2); -glm::i32vec2 const PositionDataI32[VertexCount] = -{ - glm::i32vec2 (-1,-1), - glm::i32vec2 ( 1,-1), - glm::i32vec2 ( 1, 1), - glm::i32vec2 (-1, 1) -}; - -struct intersection -{ - glm::vec4 position; - glm::vec3 normal; -}; - -/* -// Sample 4 -#include // glm::vec3 -#include // glm::normalize, glm::dot, glm::reflect -#include // glm::pow -#include // glm::vecRand3 -glm::vec3 lighting -( - intersection const & Intersection, - material const & Material, - light const & Light, - glm::vec3 const & View -) -{ - glm::vec3 Color(0.0f); - glm::vec3 LightVertor(glm::normalize( - Light.position - Intersection.position + - glm::vecRand3(0.0f, Light.inaccuracy)); - - if(!shadow(Intersection.position, Light.position, LightVertor)) - { - float Diffuse = glm::dot(Intersection.normal, LightVector); - if(Diffuse <= 0.0f) - return Color; - if(Material.isDiffuse()) - Color += Light.color() * Material.diffuse * Diffuse; - if(Material.isSpecular()) - { - glm::vec3 Reflect(glm::reflect( - glm::normalize(-LightVector), - glm::normalize(Intersection.normal))); - float Dot = glm::dot(Reflect, View); - float Base = Dot > 0.0f ? Dot : 0.0f; - float Specular = glm::pow(Base, Material.exponent); - Color += Material.specular * Specular; - } - } - return Color; -} -*/ -int main() -{ - return 0; -} diff --git a/deps/glm/detail/func_common.inl b/deps/glm/detail/func_common.inl index fc7c2af0a7..967c60a7ca 100644 --- a/deps/glm/detail/func_common.inl +++ b/deps/glm/detail/func_common.inl @@ -152,14 +152,11 @@ namespace detail std::numeric_limits::is_iec559 || (std::numeric_limits::is_signed && std::numeric_limits::is_integer), "'sign' only accept signed inputs"); - genFIType result; if(x > genFIType(0)) - result = genFIType(1); + return genFIType(1); else if(x < genFIType(0)) - result = genFIType(-1); - else - result = genFIType(0); - return result; + return genFIType(-1); + return genFIType(0); } VECTORIZE_VEC(sign) diff --git a/deps/glm/detail/setup.hpp b/deps/glm/detail/setup.hpp index 206145515d..49a6b86aec 100644 --- a/deps/glm/detail/setup.hpp +++ b/deps/glm/detail/setup.hpp @@ -511,12 +511,6 @@ ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC43)) || \ ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_CLANG) && (GLM_COMPILER >= GLM_COMPILER_CLANG29))) -// N2235 -#define GLM_HAS_CONSTEXPR ( \ - (GLM_LANG & GLM_LANG_CXX11_FLAG) || \ - ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC46)) || \ - __has_feature(cxx_constexpr)) - // N2672 #define GLM_HAS_INITIALIZER_LISTS ( \ (GLM_LANG & GLM_LANG_CXX11_FLAG) || \ @@ -524,25 +518,6 @@ ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC44)) || \ __has_feature(cxx_generalized_initializers)) -// OpenMP -#ifdef _OPENMP -# if(GLM_COMPILER & GLM_COMPILER_GCC) -# if(GLM_COMPILER > GLM_COMPILER_GCC47) -# define GLM_HAS_OPENMP 31 -# elif(GLM_COMPILER > GLM_COMPILER_GCC44) -# define GLM_HAS_OPENMP 30 -# elif(GLM_COMPILER > GLM_COMPILER_GCC42) -# define GLM_HAS_OPENMP 25 -# endif -# endif//(GLM_COMPILER & GLM_COMPILER_GCC) - -# if(GLM_COMPILER & GLM_COMPILER_VC) -# if(GLM_COMPILER > GLM_COMPILER_VC8) -# define GLM_HAS_OPENMP 20 -# endif -# endif//(GLM_COMPILER & GLM_COMPILER_GCC) -#endif - // Not standard #define GLM_HAS_ANONYMOUS_UNION (GLM_LANG & GLM_LANG_CXXMS_FLAG) @@ -667,13 +642,8 @@ // User defines: GLM_FORCE_INLINE GLM_FORCE_CUDA -#if(defined(GLM_FORCE_CUDA) || (GLM_COMPILER & GLM_COMPILER_CUDA)) -# define GLM_CUDA_FUNC_DEF __device__ __host__ -# define GLM_CUDA_FUNC_DECL __device__ __host__ -#else # define GLM_CUDA_FUNC_DEF # define GLM_CUDA_FUNC_DECL -#endif #if GLM_COMPILER & GLM_COMPILER_GCC # define GLM_VAR_USED __attribute__ ((unused)) @@ -765,10 +735,4 @@ namespace glm # define GLM_RESTRICT_VAR #endif//GLM_COMPILER -#if GLM_HAS_CONSTEXPR -# define GLM_CONSTEXPR constexpr -#else -# define GLM_CONSTEXPR -#endif - #endif//GLM_SETUP_INCLUDED diff --git a/deps/glm/detail/type_mat2x2.hpp b/deps/glm/detail/type_mat2x2.hpp index 12464e9539..921fc0e24b 100644 --- a/deps/glm/detail/type_mat2x2.hpp +++ b/deps/glm/detail/type_mat2x2.hpp @@ -48,7 +48,7 @@ namespace detail typedef tmat2x2 type; typedef tmat2x2 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; template friend tvec2 operator/(tmat2x2 const & m, tvec2 const & v); diff --git a/deps/glm/detail/type_mat2x2.inl b/deps/glm/detail/type_mat2x2.inl index ad3481d963..e2c88d8974 100644 --- a/deps/glm/detail/type_mat2x2.inl +++ b/deps/glm/detail/type_mat2x2.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat2x2::length() const + GLM_FUNC_QUALIFIER length_t tmat2x2::length() const { return 2; } diff --git a/deps/glm/detail/type_mat2x3.hpp b/deps/glm/detail/type_mat2x3.hpp index 4b0d7ccea9..ce1f7f7616 100644 --- a/deps/glm/detail/type_mat2x3.hpp +++ b/deps/glm/detail/type_mat2x3.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat2x3 type; typedef tmat3x2 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; private: // Data diff --git a/deps/glm/detail/type_mat2x3.inl b/deps/glm/detail/type_mat2x3.inl index 92611144f2..56ea981ea7 100644 --- a/deps/glm/detail/type_mat2x3.inl +++ b/deps/glm/detail/type_mat2x3.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat2x3::length() const + GLM_FUNC_QUALIFIER length_t tmat2x3::length() const { return 2; } diff --git a/deps/glm/detail/type_mat2x4.hpp b/deps/glm/detail/type_mat2x4.hpp index c559f76887..4f94f89a37 100644 --- a/deps/glm/detail/type_mat2x4.hpp +++ b/deps/glm/detail/type_mat2x4.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat2x4 type; typedef tmat4x2 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; private: // Data diff --git a/deps/glm/detail/type_mat2x4.inl b/deps/glm/detail/type_mat2x4.inl index baaf19fd9d..06149a1980 100644 --- a/deps/glm/detail/type_mat2x4.inl +++ b/deps/glm/detail/type_mat2x4.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat2x4::length() const + GLM_FUNC_QUALIFIER length_t tmat2x4::length() const { return 2; } diff --git a/deps/glm/detail/type_mat3x2.hpp b/deps/glm/detail/type_mat3x2.hpp index 7060b51f60..6c50b8884b 100644 --- a/deps/glm/detail/type_mat3x2.hpp +++ b/deps/glm/detail/type_mat3x2.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat3x2 type; typedef tmat2x3 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; private: // Data diff --git a/deps/glm/detail/type_mat3x2.inl b/deps/glm/detail/type_mat3x2.inl index 46dd3aa792..43fc2362c8 100644 --- a/deps/glm/detail/type_mat3x2.inl +++ b/deps/glm/detail/type_mat3x2.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat3x2::length() const + GLM_FUNC_QUALIFIER length_t tmat3x2::length() const { return 3; } diff --git a/deps/glm/detail/type_mat3x3.hpp b/deps/glm/detail/type_mat3x3.hpp index d2c314848b..41238ed55a 100644 --- a/deps/glm/detail/type_mat3x3.hpp +++ b/deps/glm/detail/type_mat3x3.hpp @@ -48,7 +48,7 @@ namespace detail typedef tmat3x3 type; typedef tmat3x3 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; template friend tvec3 operator/(tmat3x3 const & m, tvec3 const & v); diff --git a/deps/glm/detail/type_mat3x3.inl b/deps/glm/detail/type_mat3x3.inl index 35ec087e50..483fe660f6 100644 --- a/deps/glm/detail/type_mat3x3.inl +++ b/deps/glm/detail/type_mat3x3.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat3x3::length() const + GLM_FUNC_QUALIFIER length_t tmat3x3::length() const { return 3; } diff --git a/deps/glm/detail/type_mat3x4.hpp b/deps/glm/detail/type_mat3x4.hpp index fb76205c01..12dcd21822 100644 --- a/deps/glm/detail/type_mat3x4.hpp +++ b/deps/glm/detail/type_mat3x4.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat3x4 type; typedef tmat4x3 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; private: // Data diff --git a/deps/glm/detail/type_mat3x4.inl b/deps/glm/detail/type_mat3x4.inl index 7277c0219d..b24d32ba69 100644 --- a/deps/glm/detail/type_mat3x4.inl +++ b/deps/glm/detail/type_mat3x4.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat3x4::length() const + GLM_FUNC_QUALIFIER length_t tmat3x4::length() const { return 3; } diff --git a/deps/glm/detail/type_mat4x2.hpp b/deps/glm/detail/type_mat4x2.hpp index 759b540aeb..1a4b357766 100644 --- a/deps/glm/detail/type_mat4x2.hpp +++ b/deps/glm/detail/type_mat4x2.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat4x2 type; typedef tmat2x4 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; private: // Data diff --git a/deps/glm/detail/type_mat4x2.inl b/deps/glm/detail/type_mat4x2.inl index a4c176247b..365c288e9e 100644 --- a/deps/glm/detail/type_mat4x2.inl +++ b/deps/glm/detail/type_mat4x2.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat4x2::length() const + GLM_FUNC_QUALIFIER length_t tmat4x2::length() const { return 4; } diff --git a/deps/glm/detail/type_mat4x3.hpp b/deps/glm/detail/type_mat4x3.hpp index f8510dfa53..664f1dc4b5 100644 --- a/deps/glm/detail/type_mat4x3.hpp +++ b/deps/glm/detail/type_mat4x3.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat4x3 type; typedef tmat3x4 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; private: // Data diff --git a/deps/glm/detail/type_mat4x3.inl b/deps/glm/detail/type_mat4x3.inl index cfdf89e408..628bb9a031 100644 --- a/deps/glm/detail/type_mat4x3.inl +++ b/deps/glm/detail/type_mat4x3.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat4x3::length() const + GLM_FUNC_QUALIFIER length_t tmat4x3::length() const { return 4; } diff --git a/deps/glm/detail/type_mat4x4.hpp b/deps/glm/detail/type_mat4x4.hpp index 90df5c3735..02d0edca07 100644 --- a/deps/glm/detail/type_mat4x4.hpp +++ b/deps/glm/detail/type_mat4x4.hpp @@ -49,7 +49,7 @@ namespace detail typedef tmat4x4 type; typedef tmat4x4 transpose_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; template friend tvec4 operator/(tmat4x4 const & m, tvec4 const & v); diff --git a/deps/glm/detail/type_mat4x4.inl b/deps/glm/detail/type_mat4x4.inl index ac21fd24ad..992331f7c2 100644 --- a/deps/glm/detail/type_mat4x4.inl +++ b/deps/glm/detail/type_mat4x4.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tmat4x4::length() const + GLM_FUNC_QUALIFIER length_t tmat4x4::length() const { return 4; } diff --git a/deps/glm/detail/type_vec1.hpp b/deps/glm/detail/type_vec1.hpp index ff7c0eef0e..db5542e55e 100644 --- a/deps/glm/detail/type_vec1.hpp +++ b/deps/glm/detail/type_vec1.hpp @@ -58,7 +58,7 @@ namespace detail ////////////////////////////////////// // Helper - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; ////////////////////////////////////// // Data diff --git a/deps/glm/detail/type_vec1.inl b/deps/glm/detail/type_vec1.inl index 92db481c7d..3c53519f65 100644 --- a/deps/glm/detail/type_vec1.inl +++ b/deps/glm/detail/type_vec1.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tvec1::length() const + GLM_FUNC_QUALIFIER length_t tvec1::length() const { return 1; } diff --git a/deps/glm/detail/type_vec2.hpp b/deps/glm/detail/type_vec2.hpp index 12a15e97b1..3cbd98d2dc 100644 --- a/deps/glm/detail/type_vec2.hpp +++ b/deps/glm/detail/type_vec2.hpp @@ -59,7 +59,7 @@ namespace detail ////////////////////////////////////// // Helper - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; ////////////////////////////////////// // Data diff --git a/deps/glm/detail/type_vec2.inl b/deps/glm/detail/type_vec2.inl index 71d3338555..043e0e1a6e 100644 --- a/deps/glm/detail/type_vec2.inl +++ b/deps/glm/detail/type_vec2.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tvec2::length() const + GLM_FUNC_QUALIFIER length_t tvec2::length() const { return 2; } diff --git a/deps/glm/detail/type_vec3.hpp b/deps/glm/detail/type_vec3.hpp index 8c581549ac..f5902d510c 100644 --- a/deps/glm/detail/type_vec3.hpp +++ b/deps/glm/detail/type_vec3.hpp @@ -59,7 +59,7 @@ namespace detail ////////////////////////////////////// // Helper - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; ////////////////////////////////////// // Data diff --git a/deps/glm/detail/type_vec3.inl b/deps/glm/detail/type_vec3.inl index 7da549e978..c297c20e45 100644 --- a/deps/glm/detail/type_vec3.inl +++ b/deps/glm/detail/type_vec3.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tvec3::length() const + GLM_FUNC_QUALIFIER length_t tvec3::length() const { return 3; } diff --git a/deps/glm/detail/type_vec4.hpp b/deps/glm/detail/type_vec4.hpp index b1834e41b6..a5bf0be00c 100644 --- a/deps/glm/detail/type_vec4.hpp +++ b/deps/glm/detail/type_vec4.hpp @@ -60,7 +60,7 @@ namespace detail ////////////////////////////////////// // Helper - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; ////////////////////////////////////// // Data diff --git a/deps/glm/detail/type_vec4.inl b/deps/glm/detail/type_vec4.inl index 85df06cc86..562a5aaa4d 100644 --- a/deps/glm/detail/type_vec4.inl +++ b/deps/glm/detail/type_vec4.inl @@ -30,7 +30,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tvec4::length() const + GLM_FUNC_QUALIFIER length_t tvec4::length() const { return 4; } diff --git a/deps/glm/gtc/quaternion.hpp b/deps/glm/gtc/quaternion.hpp index d9560d4f08..ba15c826ee 100644 --- a/deps/glm/gtc/quaternion.hpp +++ b/deps/glm/gtc/quaternion.hpp @@ -64,7 +64,7 @@ namespace detail public: T x, y, z, w; - GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; + GLM_FUNC_DECL length_t length() const; // Constructors GLM_FUNC_DECL tquat(); diff --git a/deps/glm/gtc/quaternion.inl b/deps/glm/gtc/quaternion.inl index d1b611a536..0c8df0f9f5 100644 --- a/deps/glm/gtc/quaternion.inl +++ b/deps/glm/gtc/quaternion.inl @@ -35,7 +35,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tquat::length() const + GLM_FUNC_QUALIFIER length_t tquat::length() const { return 4; } diff --git a/deps/glm/gtx/dual_quaternion.hpp b/deps/glm/gtx/dual_quaternion.hpp index 2c07dd05e9..3d54f74db1 100644 --- a/deps/glm/gtx/dual_quaternion.hpp +++ b/deps/glm/gtx/dual_quaternion.hpp @@ -63,7 +63,7 @@ namespace detail public: glm::detail::tquat real, dual; - GLM_FUNC_DECL GLM_CONSTEXPR int length() const; + GLM_FUNC_DECL int length() const; // Constructors GLM_FUNC_DECL tdualquat(); diff --git a/deps/glm/gtx/dual_quaternion.inl b/deps/glm/gtx/dual_quaternion.inl index 33cc7dffd6..85b2784b6a 100644 --- a/deps/glm/gtx/dual_quaternion.inl +++ b/deps/glm/gtx/dual_quaternion.inl @@ -33,7 +33,7 @@ namespace glm{ namespace detail { template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tdualquat::length() const + GLM_FUNC_QUALIFIER int tdualquat::length() const { return 8; }