summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/hash.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:40:38 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:40:38 +0200
commit2877f4eda3d1b0c7431039e3142ecf1a282a34b1 (patch)
tree58ad35e27ab2a3b8955f5adbf28f296670681ffc /external/include/glm/gtx/hash.hpp
parentSmooth sun movement (diff)
downloadAltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.gz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.bz2
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.lz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.xz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.zst
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.zip
Diffstat (limited to 'external/include/glm/gtx/hash.hpp')
-rw-r--r--external/include/glm/gtx/hash.hpp104
1 files changed, 54 insertions, 50 deletions
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
-///
-/// <glm/gtx/hash.hpp> need to be included to use these functionalities.
+///
+/// Include <glm/gtx/hash.hpp> 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 <functional>
#include "../vec2.hpp"
@@ -40,94 +44,94 @@
namespace std
{
- template <typename T, glm::precision P>
- struct hash<glm::tvec1<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::vec<1, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tvec1<T, P> const & v) const;
+ GLM_FUNC_DECL size_t operator()(glm::vec<1, T, Q> const& v) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tvec2<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::vec<2, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tvec2<T, P> const & v) const;
+ GLM_FUNC_DECL size_t operator()(glm::vec<2, T, Q> const& v) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tvec3<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::vec<3, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tvec3<T, P> const & v) const;
+ GLM_FUNC_DECL size_t operator()(glm::vec<3, T, Q> const& v) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tvec4<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::vec<4, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tvec4<T, P> const & v) const;
+ GLM_FUNC_DECL size_t operator()(glm::vec<4, T, Q> const& v) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tquat<T,P>>
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::tquat<T,Q>>
{
- GLM_FUNC_DECL size_t operator()(glm::tquat<T, P> const & q) const;
+ GLM_FUNC_DECL size_t operator()(glm::tquat<T, Q> const& q) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tdualquat<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::tdualquat<T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tdualquat<T,P> const & q) const;
+ GLM_FUNC_DECL size_t operator()(glm::tdualquat<T,Q> const& q) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat2x2<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<2, 2, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat2x2<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<2, 2, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat2x3<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<2, 3, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat2x3<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<2, 3, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat2x4<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<2, 4, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat2x4<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<2, 4, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat3x2<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<3, 2, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat3x2<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<3, 2, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat3x3<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<3, 3, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat3x3<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<3, 3, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat3x4<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<3, 4, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat3x4<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<3, 4, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat4x2<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<4, 2, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat4x2<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<4, 2, T,Q> const& m) const;
};
-
- template <typename T, glm::precision P>
- struct hash<glm::tmat4x3<T,P> >
+
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<4, 3, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat4x3<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<4, 3, T,Q> const& m) const;
};
- template <typename T, glm::precision P>
- struct hash<glm::tmat4x4<T,P> >
+ template<typename T, glm::qualifier Q>
+ struct hash<glm::mat<4, 4, T,Q> >
{
- GLM_FUNC_DECL size_t operator()(glm::tmat4x4<T,P> const & m) const;
+ GLM_FUNC_DECL size_t operator()(glm::mat<4, 4, T,Q> const& m) const;
};
} // namespace std