23 Commits

Author SHA1 Message Date
Charles Huber
4b6284e39d GCC: Fix noexcept warnings on hash functions
Fix warnings on hash functions with GCC and -Wnoexcept:
* Add GLM_HAS_NOEXCEPT flag & GLM_NOEXCEPT #define to setup.hpp.
* Add GLM_NOEXCEPT to hash functions in hash.hpp.
* Add GLM_NOEXCEPT to matrix operator[] accessors.
* Add gtx_hash.cpp and a test to verify all hash overloads compile.
  Configure with -DCMAKE_CXX_FLAGS="-Werror -Wnoexcept" to test.
2022-08-24 15:21:11 -05:00
Peter Steneteg
9a1f85ae79 Hash hashes qua instead of tquat closes #919 2019-06-26 12:48:40 +02:00
Christophe Riccio
f846aa8334 Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
Christophe Riccio
477e803f38 - No more requirement for GLM_ENABLE_EXPERIMENTAL to use GTX extension, only a warning with GLM_MESSAGES defined #732 2019-03-01 18:25:15 +01:00
Philippe Groarke
fd327cd341 cleanup : Remove trailing whitespaces. 2018-03-24 20:01:03 -04:00
Linqing Feng
a6e27e8079 fix mismatched template argument (P to Q) 2017-08-25 10:50:05 +09:00
Christophe Riccio
d93a3be4ac - Improved API documentation #668 2017-08-17 16:24:32 +02:00
Christophe Riccio
faf1da52b7 Renamed P (for precision) template argument to Q (for qualifier) 2017-08-16 01:22:50 +02:00
Christophe Riccio
e76fca75a0 More consistent coding style 2017-08-15 22:04:24 +02:00
Christophe Riccio
a805fb9d68 Renamed precision enum to qualifier 2017-08-15 21:23:47 +02:00
Christophe Riccio
c2fe3fccf6 Use length_t instead of int for vec and mat lengths #584 2016-12-30 20:05:04 +01:00
Christophe Riccio
b92fdf5a59 matrix type Parameterize on dimensions #584 2016-12-30 16:00:25 +01:00
Christophe Riccio
947b07cbc4 remove template alias for more compiler support and simplified swizzle expression implementation #584 2016-12-30 01:23:29 +01:00
Stefan Winkler
f02ce4d6d3 Fix typo in experimental extension warnings 2016-11-30 20:26:35 +01:00
Christophe Riccio
6482dd29d2 Added GLM_ENABLE_EXPERIMENTAL 2016-11-12 14:19:22 +01:00
Christophe Riccio
316460408a Simplify and more consistency for files headers 2016-05-23 22:55:49 +02:00
Christophe Riccio
e7bae9891a Improved coding style consistency 2015-08-31 22:50:24 +02:00
Bryce Mehring
6f128f5983 Fixed C++11 standard library error message
When including glm/gtx/hash.hpp before any other glm header files, the
error "GLM_GTX_hash requires C++11 standard library support" is thrown
because GLM_HAS_CXX11_STL is not yet defined.
2015-08-12 22:44:32 -05:00
Thom de Villa
3b9e90c7b6 std::hash specialization for glm::tdualquat 2015-07-24 17:58:15 +02:00
Christophe Riccio
f51bcc70cc Added <glm/gtx/hash.hpp> to perform to perform std::hash on GLM types #320 2015-03-15 23:52:22 +01:00
Thom de Villa
b1c45d3ce3 add precision support to std::hash glm specializations 2015-03-07 14:25:59 +01:00
Thom de Villa
36e2bdd294 comment fix 2015-03-07 14:04:56 +01:00
Thom de Villa
44c3453c84 std::hash support for glm types
std::hash template specializations implemented for vec, quat and mat
types
2015-03-07 14:01:55 +01:00