From 2877f4eda3d1b0c7431039e3142ecf1a282a34b1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 21 Aug 2018 20:40:38 +0500 Subject: Update glm to 0.9.9.0 --- external/include/glm/gtx/hash.hpp | 104 ++++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 50 deletions(-) (limited to 'external/include/glm/gtx/hash.hpp') diff --git a/external/include/glm/gtx/hash.hpp b/external/include/glm/gtx/hash.hpp index 2262618..3196be7 100644 --- a/external/include/glm/gtx/hash.hpp +++ b/external/include/glm/gtx/hash.hpp @@ -5,13 +5,17 @@ /// /// @defgroup gtx_hash GLM_GTX_hash /// @ingroup gtx -/// -/// @brief Add std::hash support for glm types -/// -/// need to be included to use these functionalities. +/// +/// Include to use the features of this extension. +/// +/// Add std::hash support for glm types #pragma once +#ifndef GLM_ENABLE_EXPERIMENTAL +# error "GLM: GLM_GTX_hash is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." +#endif + #include #include "../vec2.hpp" @@ -40,94 +44,94 @@ namespace std { - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tvec1 const & v) const; + GLM_FUNC_DECL size_t operator()(glm::vec<1, T, Q> const& v) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tvec2 const & v) const; + GLM_FUNC_DECL size_t operator()(glm::vec<2, T, Q> const& v) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tvec3 const & v) const; + GLM_FUNC_DECL size_t operator()(glm::vec<3, T, Q> const& v) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tvec4 const & v) const; + GLM_FUNC_DECL size_t operator()(glm::vec<4, T, Q> const& v) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(glm::tquat const & q) const; + GLM_FUNC_DECL size_t operator()(glm::tquat const& q) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tdualquat const & q) const; + GLM_FUNC_DECL size_t operator()(glm::tdualquat const& q) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat2x2 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<2, 2, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat2x3 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<2, 3, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat2x4 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<2, 4, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat3x2 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<3, 2, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat3x3 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<3, 3, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat3x4 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<3, 4, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat4x2 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<4, 2, T,Q> const& m) const; }; - - template - struct hash > + + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat4x3 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<4, 3, T,Q> const& m) const; }; - template - struct hash > + template + struct hash > { - GLM_FUNC_DECL size_t operator()(glm::tmat4x4 const & m) const; + GLM_FUNC_DECL size_t operator()(glm::mat<4, 4, T,Q> const& m) const; }; } // namespace std -- cgit v1.2.3