742 Commits

Author SHA1 Message Date
Christophe Riccio
8390a77b3a Added GLM_FORCE_CTOR_INIT #735 #740 2018-03-27 18:23:37 +02:00
Philippe Groarke
2cac15849b cleanup : Remove trailing whitespaces. 2018-03-25 12:44:55 -04:00
Philippe Groarke
47fa70c34b Merge branch 'master' into cleanup 2018-03-25 12:43:32 -04:00
Christophe
1a3f1f22cd
Merge pull request #712 from KageKirin/constexpr-mat-ctors
set mat<>::ctor() to be constexpr #712
2018-03-25 18:10:37 +02:00
Philippe Groarke
fd327cd341 cleanup : Remove trailing whitespaces. 2018-03-24 20:01:03 -04:00
Chris Helmich
3aebd8f8fd added GLM_CONSTEXPR_CXX14 flag to vec<>::operator= and mat<>::operator= 2018-02-05 10:43:18 +09:00
Chris Helmich
dee4f81bc7 added GLM_CONSTEXPR_CTOR_CXX14 flags to mat<>::ctors() 2018-02-05 10:39:25 +09:00
devmane144
abb7fecc5e
Update type_vec4.hpp 2018-02-01 15:01:30 -06:00
devmane144
9b621ee4db
Added the other 3 const & to the file
I added the other 3 const & that I missed.
2018-02-01 14:48:35 -06:00
devmane144
f30f012d37
Adding a const & here for consistency reasons
The other vector types have T const & scalar for their binary operator+
2018-02-01 14:41:44 -06:00
Chris Helmich
4a4af0b80e added flags GLM_CONSTEXPR_CXX14 and GLM_CONSTEXPR_CTOR_CXX14 2018-01-22 11:28:55 +09:00
Christophe Riccio
6390805e6d Fixed zero as null pointer constant 2018-01-05 00:03:29 +01:00
Kai Dietrich
c79dfbc925 Use std::exp2 to implement glm::exp2 when available
Using std::exp and then a multiplication looses a lot of precision which
can cause hard to find bugs (who would expect exp2 to fail?) because all
powers of two with integer exponents can be expressed precisely
with ieee754 floating point.

This also should be good for performance, since exp2 with
integer exponent is just shifting some bits in ieee754 and
good implementers will probably leverage that to implement exp2
efficiently.
2017-10-26 09:43:47 +02:00
Christophe Riccio
fcbedf5058 Fixed glm::step that didn't work with scalars #684 2017-10-22 16:58:09 +02:00
Christophe Riccio
dc3e0b5ccb Added GLM_FORCE_SINGLE_ONLY to use GLM on platforms that don't support double #627 2017-09-23 16:32:25 +02:00
Christophe Riccio
1bf24f8344 Fixed glm::log2<int>() returns wrong value, missing static assert #683 2017-09-20 14:17:42 +02:00
Christophe Riccio
ec5b3fd897 Fixed build #675 2017-08-30 10:28:02 +02:00
Christophe Riccio
d550798ca0 Added EXT_vec1: *vec1 types 2017-08-21 10:36:27 +02:00
Christophe Riccio
fc53581c68 Fixed Better follow GLSL min and max specification #372 2017-08-20 16:53:50 +02:00
Christophe Riccio
2240849164 Improve API documentation 2017-08-17 17:36:40 +02:00
Christophe Riccio
d93a3be4ac - Improved API documentation #668 2017-08-17 16:24:32 +02:00
Christophe Riccio
fdf92ba340 Avoid duplicated code 2017-08-17 15:20:23 +02:00
Christophe Riccio
4bc87efa09 Fixed build on GCC 7.1 2017-08-17 15:12:31 +02:00
Christophe Riccio
007a97216a Tentative fix for GCC 6 2017-08-17 13:22:50 +02:00
Christophe Riccio
d336d3fb27 Fixed no-documentation warnings 2017-08-17 11:40:30 +02:00
Christophe Riccio
fdfd03ffaf Fixed SIMD build 2017-08-16 03:43:17 +02:00
Christophe Riccio
1bbf2dafb9 Fixed SIMD build 2017-08-16 03:28:11 +02:00
Christophe Riccio
8bcf9b5ae7 Fixed SIMD build 2017-08-16 03:09:04 +02:00
Christophe Riccio
211881abf9 Fixed swizzle operators build using SIMD 2017-08-16 02:42:47 +02:00
Christophe Riccio
f327d8e9d4 Fixed swizzle operators build 2017-08-16 02:17:25 +02:00
Christophe Riccio
62d89dcec7 Fixed swizzle operators build 2017-08-16 02:14:40 +02:00
Christophe Riccio
50202f09d9 Fixed swizzle operators build 2017-08-16 02:11:27 +02:00
Christophe Riccio
85acb8323a Fixed swizzle operators build 2017-08-16 02:06:44 +02:00
Christophe Riccio
a8784e7518 Fixed shadows template parameter warnings 2017-08-16 01:52:46 +02:00
Christophe Riccio
8624e38379 Fixed shadows template parameter warnings 2017-08-16 01:48:50 +02:00
Christophe Riccio
3cd2872a00 Fixed build 2017-08-16 01:37:35 +02:00
Christophe Riccio
247facbd49 Fixed shadows template parameter warnings 2017-08-16 01:33:39 +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
d1afe662be More consistent coding style 2017-08-15 21:59:47 +02:00
Christophe Riccio
a805fb9d68 Renamed precision enum to qualifier 2017-08-15 21:23:47 +02:00
Christophe Riccio
a7b72ec5b2 Updated API doc 2017-08-15 21:22:51 +02:00
Christophe Riccio
ac3abfdac7 Replaced vecType template argument by vec template 2017-08-15 19:07:25 +02:00
Christophe Riccio
da84db5481 Replaced vecType by vec 2017-08-15 17:32:36 +02:00
Christophe Riccio
5212c26da2 Clean up vecType 2017-08-10 03:28:29 +02:00
Christophe Riccio
ec79dbdbef Disabled warnings 2017-08-10 02:43:41 +02:00
Christophe Riccio
6c23545fbc Fixed -Wreserved-id-macro warnings 2017-08-08 11:37:24 +02:00
Christophe Riccio
940af561cc Fixed -Wreserved-id-macro warnings 2017-08-08 11:35:36 +02:00
Christophe Riccio
336a949cf8 Removed -Wreserved-id-macro 2017-08-07 14:20:57 +02:00
Christophe Riccio
1e7d12b91b Fixed GLM_HAS_OPENMP when OpenMP is not enabled 2017-08-07 01:28:42 +02:00