Commit Graph

2471 Commits

Author SHA1 Message Date
Christophe Riccio
1a460419f9 Fixed GTX_vec_swizzle build 2016-11-02 20:44:25 +01:00
Christophe Riccio
08a2985d65 Merge branch '0.9.8' 2016-11-01 23:57:36 +01:00
Christophe Riccio
03672e9428 Fixed GTX_transform2 shear* functions #403 2016-11-01 23:44:03 +01:00
Christophe Riccio
31f37aa89c Merge branch '0.9.8' 2016-11-01 23:35:04 +01:00
Christophe Riccio
33ea25c052 Broader support of GLM_FORCE_UNRESTRICTED_GENTYPE #378 2016-11-01 23:34:37 +01:00
Christophe Riccio
9d96f10491 Merge GLM 0.9.8 branch 2016-11-01 23:11:03 +01:00
Christophe Riccio
b45d5e8650 Fixed Android build error with C++11 compiler but C++98 STL #284 #564 2016-11-01 23:10:06 +01:00
Christophe Riccio
a17f795aaf Added GTX_vec_swizzle, faster compile time swizzling then swizzle operator #558 2016-11-01 22:36:49 +01:00
Christophe
7157969a05 Merge pull request #558 from amc522/swizzle_alternate
Alternate functions for creating swizzles of vectors #558
2016-11-01 22:27:47 +01:00
Christophe Riccio
842ae44f6d Updated minimum compiler version required 2016-11-01 09:56:07 +01:00
Christophe Riccio
44a981ea68 Merge 0.9.8 2016-11-01 09:16:29 +01:00
Christophe Riccio
535040b207 Made quat, vec, mat type component length() static #565 2016-11-01 09:07:04 +01:00
Christophe Riccio
2e9f580615 vector/matrix component length() static #565 2016-11-01 08:44:19 +01:00
Christophe Riccio
9298939816 length becomes a static function #565 2016-11-01 08:44:14 +01:00
Christophe Riccio
a2684a8fe5 - Added lowp variant of GTC_colorspace convertLinearToSRGB #419 2016-10-16 20:17:29 +02:00
Christophe Riccio
e4c559b29b Added RGBM encoding in GTC_packing #420 2016-10-16 16:40:49 +02:00
Christophe Riccio
9d4f0ba758 Merge branch '0.9.8' 2016-10-16 14:51:57 +02:00
Christophe Riccio
e98ce44d85 Added warning messages when using GLM_FORCE_CXX** but the compiler is known to not fully support the requested C++ version #555 2016-10-16 14:51:49 +02:00
Christophe Riccio
cc7a6dd963 Merge branch '0.9.8' 2016-10-16 12:10:58 +02:00
Christophe Riccio
e1b88a05e9 Fixed filename #562 2016-10-16 12:10:44 +02:00
Christophe Riccio
09a81dad23 Merge branch '0.9.8' 2016-10-12 21:40:15 +02:00
Christophe Riccio
1c85265f97 Added Visual C++ 15 detection, Added Clang 4.0 detection, Refactored GLM_COMPILER_VC values 2016-10-12 21:40:03 +02:00
Christophe Riccio
5f5e800a24 Fixed clang and GCC build #559 2016-10-12 10:45:43 +02:00
Christophe Riccio
a1c262e283 Merge branch '0.9.8' 2016-10-10 22:09:09 +02:00
Christophe Riccio
19a6d64e8c Fixed Visual C++ constexpr build error #555, #556 2016-10-10 22:03:57 +02:00
amc522
74d3870160 Alternate functions for creating swizzles of vectors 2016-10-09 17:27:59 -07:00
Christophe Riccio
cae9f61e46 Updated GLM 0.9.8 revision 2016-09-25 12:15:46 +02:00
Christophe Riccio
18ea7063c4 Updated version 2016-09-25 10:44:01 +02:00
Christophe Riccio
02b954f9eb Merge branch '0.9.8' 2016-09-24 10:52:36 +02:00
Christophe Riccio
0675da467a Optimized quaternion log function #554 2016-09-24 10:46:46 +02:00
Aaron
f2135a0ca3 Fixed scaling factors for packing and unpacking unorm555 and unorm565 2016-09-18 21:54:12 +02:00
Aaron
84f4c6e0f9 merging master 2016-09-18 12:00:03 -07:00
Christophe Riccio
8c960dc647 Alignof is a C++11 feature 2016-09-18 19:30:30 +02:00
Christophe Riccio
6a30bbbe51 Fixed GCC build broken by #548 PR 2016-09-18 19:29:46 +02:00
Aaron
ca0b7a9929 Merged graft commit 2016-09-18 19:29:10 +02:00
Christophe Riccio
89d77b51c6 Alignof is a C++11 feature 2016-09-14 23:38:43 +02:00
Christophe Riccio
fa51f18b0c Fixed GCC build broken by #548 PR 2016-09-14 22:01:30 +02:00
Christophe Riccio
4175505a83 Merge branch 'master' of https://github.com/amc522/glm into 0.9.8-align 2016-09-14 21:44:46 +02:00
Aaron
e57615b6bb Changed how storage alignment is created to eliminate warnings on msvc. 2016-09-13 00:36:43 -07:00
Christophe Riccio
cb7179239b - Fixed GCC 4.8 with C++11 compilation option #550 2016-09-13 00:21:56 +02:00
Jason P. Barmparesos
f3044dde88 Fixed bug on the faceforward function. 2016-09-13 00:01:09 +02:00
Aaron
460b6ba1b6 Corrected test for msvc compiler 2016-09-12 10:55:01 -07:00
Aaron
47abea7dba Fixed scaling factors for packing and unpacking unorm555 and unorm565 2016-09-11 22:49:15 -07:00
Aaron
ec5e34e04f Fixed some msvc warnings. Tested on msvc 2015 update 3. 2016-09-11 21:55:22 -07:00
Sami Kankaristo
e9e26ab926 Change -pedantic to -Wpedantic 2016-09-11 17:18:35 +02:00
Christophe Riccio
3c4fe6133e Prepare GLM 0.9.8.1 2016-09-11 14:02:08 +02:00
Christophe Riccio
41ff0aff82 Merge branch '0.9.8' 2016-09-11 12:59:43 +02:00
Christophe Riccio
e33e37dc48 Fixed CUDA warning #547 2016-09-11 12:27:24 +02:00
Christophe Riccio
bcc6879b4b Fixed build 2016-09-11 03:24:37 +02:00
Christophe Riccio
3d6791ef00 Merge 2016-09-11 03:13:06 +02:00
Christophe Riccio
24075d56dd Fixed build 2016-09-11 03:11:37 +02:00
Christophe Riccio
d0712875d8 Added missing extensions 2016-09-11 02:51:57 +02:00
Christophe Riccio
3422dad8cc Fixed missing GLM_FUNC_DECL causing Cuda build errors #547 2016-09-11 02:51:49 +02:00
Christophe Riccio
90f0a88589 Added missing extensions 2016-09-11 02:50:47 +02:00
Christophe Riccio
64f276b804 Added missing extensions 2016-09-11 02:50:37 +02:00
Christophe Riccio
8a54ba3462 Added GTC_color_encoding 2016-09-11 02:50:08 +02:00
Christophe Riccio
2fd6a9eeee Fixed missing GLM_FUNC_DECL causing Cuda build errors #547 2016-09-11 02:47:18 +02:00
Christophe Riccio
4be686d1fe Merged 0.9.8 2016-09-11 00:21:34 +02:00
Christophe Riccio
c9831664c9 Updated manual 2016-09-11 00:19:17 +02:00
Sergey Alexandrov
ee789e9092 Add GLF_FUNC_QUALIFIER to functors in "type_vec4.inl" 2016-09-09 22:38:12 +02:00
Sergey Alexandrov
9b34889c0e Add GLF_FUNC_QUALIFIER to functors in "type_vec4.inl" 2016-09-09 13:25:46 +02:00
Christophe Riccio
9cabe3b7bc Merge branch '0.9.8' 2016-09-02 01:56:58 +02:00
Christophe Riccio
ff0054490d Fixed GLM_FORCE_UNRESTRICTED_GENTYPE #543 2016-09-02 01:56:33 +02:00
Christophe Riccio
9160f8b8d2 Removed deprecated defines 2016-09-02 01:53:38 +02:00
Christophe Riccio
d029db8ac0 Merge 0.9.8 2016-09-02 01:46:56 +02:00
Christophe Riccio
e77c300e4c Fixed error to cover deprecated define 2016-09-02 01:41:20 +02:00
Christophe Riccio
8bfefbd1ce Document GLM_FORCE_UNRESTRICTED_GENTYPE and generate an error if both GLM_FORCE_SWIZZLE and GLM_FORCE_UNRESTRICTED_GENTYPE are defined at the same time 2016-09-02 01:38:40 +02:00
Christophe Riccio
a609a0fea6 - Added more information to build messages 2016-09-02 00:30:37 +02:00
Christophe Riccio
10dc67e2b5 - Added GLM_FORCE_UNRESTRICTED_GENTYPE allowing non basic genType #543 2016-09-01 23:32:12 +02:00
Christophe Riccio
1c5fd06c2d Fixed cast and clean up 2016-09-01 22:46:21 +02:00
Patrik Huber
3b4856cf58 Convert integers to type T in quaternion mat3_cast()
This fixes issues when the type T is not explicitly convertible to T, and for example only has an operator* defined that takes two Ts but not a T and an int.

All the other functions in that file already use this syntax, so the missing ones here are most likely an oversight.
2016-08-18 00:54:25 +02:00
Patrik Huber
d08618c073 Convert integers to type T in quaternion mat3_cast()
This fixes issues when the type T is not explicitly convertible to T, and for example only has an operator* defined that takes two Ts but not a T and an int.

All the other functions in that file already use this syntax, so the missing ones here are most likely an oversight.
2016-08-17 23:24:44 +01:00
Christophe Riccio
c947b3338b Merge branch '0.9.8' 2016-08-11 00:42:43 +02:00
Christophe Riccio
ebafd8e82d Fixed aligned type build on Visual C++ 2013 and older compiler #539 2016-08-11 00:41:38 +02:00
Christophe Riccio
239c590ac0 Merge branch '0.9.8' 2016-08-09 20:48:50 +02:00
Christophe Riccio
37ab3dfd29 Fixed Cuda build, using '__align__' for alignments in Cuda #539 2016-08-09 20:48:34 +02:00
Christophe Riccio
7ba6ea9a71 Merge branch '0.9.8' of https://github.com/g-truc/glm into 0.9.8 2016-08-09 20:07:46 +02:00
Christophe Riccio
09bf19db7e Fixed Cuda build, no support of __declspec(align(alignment)) 2016-08-09 20:05:46 +02:00
Christophe Riccio
ec8fa4623c Fixed Cuda build, no support of __declspec(align(alignment)) 2016-08-09 20:05:19 +02:00
Christophe Riccio
39020ad727 Merge branch '0.9.8' 2016-08-08 11:45:38 +02:00
Christophe Riccio
8fbec7f28e Fixed Clang detection #537 2016-08-08 11:45:30 +02:00
Christophe Riccio
fa8b1f419d Merge branch '0.9.8' 2016-08-07 12:57:01 +02:00
Christophe Riccio
4db0dfcb19 Added lowestBitValue to GTX_bit #536 2016-08-07 12:56:49 +02:00
Christophe Riccio
f71171d49b Fixed 32-bits build #528 #529, fixed VC 32 bits crash 2016-08-07 12:43:38 +02:00
Christophe Riccio
0dbdf3fad4 Fixed 32-bits build #528 #529, fixed VC 32 bits crash 2016-08-07 12:42:45 +02:00
Christophe Riccio
e671d50e05 Merge branch '0.9.8' 2016-08-06 19:41:09 +02:00
Christophe Riccio
dcdc966969 Workaround Cuda compiler bug #530 2016-08-06 19:40:39 +02:00
Christophe Riccio
cd50d4ae5c Tentative CUDA workaround #530 2016-08-06 19:35:46 +02:00
Christophe Riccio
55d7fa2775 Merge branch '0.9.8' 2016-08-06 19:28:34 +02:00
Christophe Riccio
edc328c7c9 Fixed GTX_wrap #534, improved GTX_wrap for SIMD friendliness 2016-08-06 19:28:16 +02:00
Sami Kankaristo
f4103fe7f8 Change -pedantic to -Wpedantic 2016-07-20 21:26:45 +03:00
Sami Kankaristo
63dcf6ad77 Fix #ifdef (had old name) 2016-07-17 22:37:10 +02:00
Sami Kankaristo
c784051948 Fix #ifdef (had old name) 2016-07-17 21:01:57 +03:00
Christophe Riccio
ecc91d4361 Merge 0.9.8 branch 2016-07-17 11:52:15 +02:00
Christophe Riccio
867f03c5f2 Fixed disable pedentic warning for anoynymous struct in GLM 2016-07-17 11:30:12 +02:00
Christophe Riccio
1d8dadcd15 Fixed disable pedentic warning for anoynymous struct in GLM 2016-07-17 11:15:53 +02:00
Christophe Riccio
60026b2066 Fixed build and clean up 2016-07-17 11:07:46 +02:00
Christophe Riccio
de77fadde2 Fixed long long warnings 2016-07-17 10:56:27 +02:00
Christophe Riccio
aa7951aaa4 Fixed long long warnings 2016-07-17 10:54:53 +02:00
Christophe Riccio
6fa619ee13 Fixed disabled long long warning on GCC 2016-07-17 03:46:50 +02:00
Christophe Riccio
8c8c8367e3 Improved aligned types support 2016-07-17 03:37:24 +02:00
Christophe Riccio
ad1ae45066 More use of GLM_HAS_ALIGNED_TYPE 2016-07-17 03:18:19 +02:00
Christophe Riccio
b3d57f2cc9 Improved aligned types support 2016-07-17 03:06:58 +02:00
Christophe Riccio
eb20cdc6ae Added precision qualifier tests 2016-07-17 02:17:25 +02:00
Christophe Riccio
48ab7db993 Merge branch '0.9.8' 2016-07-17 01:13:47 +02:00
Christophe Riccio
dc89797275 - Added quaternion version of isnan and isinf #521 2016-07-17 01:02:30 +02:00
Christophe Riccio
630f0840f2 Removed 0.9.8 deprecated extensions 2016-07-16 23:46:41 +02:00
Christophe Riccio
077aaca6f7 Updated version 2016-07-16 23:18:23 +02:00
Christophe Riccio
6a6b54b699 Fixed long long warnings, fixed precision qualifier values on Clang where qualifiers had the same values 2016-07-16 22:34:07 +02:00
Christophe Riccio
c80e142816 No more warnings for use of long long 2016-07-16 22:25:09 +02:00
Christophe Riccio
0671e609bb Merge branch 'master' of https://github.com/g-truc/glm 2016-07-16 20:45:09 +02:00
Christophe Riccio
7268a3d0c3 0.9.7 branch 2016-07-16 20:41:43 +02:00
Christophe Riccio
07baa3b45a Revert, to reduce risks of regressions 2016-07-16 20:03:22 +02:00
Christophe Riccio
2a3d241d78 GLM requires anynimous struct for SIMD optimizations and swizzle support #524 2016-07-16 18:46:15 +02:00
Christophe Riccio
848d68fe96 GLM requires long long support (C++98) and anonymous struct (C++11), disable the warnings within GLM. Strict compilers support check is performed. #524 2016-07-16 18:36:56 +02:00
Christophe Riccio
b157b1f6e3 Fixed build 2016-07-16 16:54:11 +02:00
Christophe Riccio
9e27641d94 Fixed Clang warning 2016-07-16 16:52:58 +02:00
Christophe Riccio
46cd601681 Fixed build error #524 2016-07-16 15:57:49 +02:00
Christophe Riccio
61e8432634 Fixed bad merge 2016-07-16 01:00:24 +02:00
Christophe Riccio
6271aa1530 Merged 0.9.7 branch, Factorized GLM_COMPILER_LLVM and GLM_COMPILER_APPLE_CLANG into GLM_COMPILER_CLANG 2016-07-16 00:54:05 +02:00
Christophe Riccio
2087606611 - Improved C++ 11 STL detection #523 2016-07-16 00:28:32 +02:00
Christophe Riccio
76fce77337 - Updated list of compiler versions detected 2016-07-15 23:49:20 +02:00
Christophe Riccio
09cbd5f7d6 Removed useless const references 2016-07-15 23:11:25 +02:00
Christophe Riccio
6d169bccc2 Fixed scalar reciprocal functions (GTC_reciprocal) #520 2016-07-15 22:40:00 +02:00
Christophe Riccio
166099e82d Added generic quaternion SIMD optimizations 2016-07-14 20:52:29 +02:00
Christophe Riccio
9459aac681 Allows length2 specialization 2016-07-14 16:42:46 +02:00
Christophe Riccio
0698e6537a Merge branch '0.9.7' 2016-07-14 16:41:20 +02:00
Christophe Riccio
33b9dad843 Fixed build 2016-07-14 16:38:59 +02:00
Christophe Riccio
212d343d5f Reduce included code 2016-07-14 16:38:08 +02:00
Christophe Riccio
bfb64e7657 Fixed missing vec1 overload to length2 and distance2 functions #431 2016-07-14 15:48:15 +02:00
Christophe Riccio
6e9b524be1 Fixed matrix functions using SIMD code on unaligned types #518 2016-07-14 15:21:45 +02:00
Christophe Riccio
b8b43e6a4d Added GTC_functions extension 2016-07-14 15:20:44 +02:00
Christophe Riccio
3b1af3fe0b Fixed build using SIMD 2016-07-01 01:01:32 +02:00
Christophe Riccio
0e1e181484 Clean up 2016-06-10 23:14:17 +02:00
Christophe Riccio
9613edbaf5 Updated GTC_type_aligned extension 2016-06-09 23:18:44 +02:00
Christophe Riccio
c256a4ed11 Added unaligned precision qualifiers 2016-06-09 20:12:33 +02:00
Christophe Riccio
7aca47b19e Fixed missing vec1 overload to length2 and distance2 functions #431 2016-06-04 23:48:05 +02:00
Christophe Riccio
39e63661a6 Fixed STL for C++11 detection on ICC #510 2016-06-04 23:11:50 +02:00
Christophe Riccio
8848bc2a08 Fixed STL for C++11 detection on Intel compiler #510 2016-06-04 23:08:08 +02:00
Christophe Riccio
b54a256499 - Fixed strict aliaing warnings #473 2016-06-04 22:57:21 +02:00
Christophe Riccio
731a263325 Fixed bitcount build errors 2016-06-02 02:32:54 +02:00
Christophe Riccio
5fdca07eee Clean up 2016-06-02 01:01:36 +02:00
Christophe Riccio
fd4ada5843 Support aligned *vec* even when SIMD isn't enabled 2016-06-02 00:33:55 +02:00
Christophe Riccio
b357636d0f Fixed GCC build 2016-06-01 20:03:36 +02:00
Christophe Riccio
41984e42ab Added GTC_type_aligned with aligned *vec* types 2016-06-01 00:43:35 +02:00
Christophe Riccio
64342f78bf Updated version and updated readme 2016-05-30 20:28:42 +02:00
Christophe Riccio
89324cef0a Fixed GCC build 2016-05-30 18:34:23 +02:00
Christophe Riccio
688756b3e2 SIMD matrix functions optimizations 2016-05-30 18:01:06 +02:00
Christophe Riccio
84caa1092f Added SIMD integer operations optimizations 2016-05-30 15:38:47 +02:00
Christophe Riccio
1bbc2935a2 Added AVX bitCount optimization 2016-05-30 14:39:43 +02:00
Christophe Riccio
52f8ecd973 Added AVX optimizations and equal tests 2016-05-30 14:23:58 +02:00
Christophe Riccio
9ed2a9601b Adde vec4 swizzle operators SIMD optimizations 2016-05-30 02:00:32 +02:00
Christophe Riccio
b9199a2c1a Refactoring of swizzle operators, preparing for vec4 swizzle SIMD optimizations 2016-05-30 01:39:16 +02:00
Christophe Riccio
89f6da9552 Refactoring of low level SIMD API 2016-05-29 21:30:04 +02:00
Christophe Riccio
0722404fb6 Refactored low level SIMD API, refract SIMD optimization 2016-05-29 20:29:16 +02:00
Christophe Riccio
25b3c9f821 Fixed build 2016-05-29 19:16:42 +02:00
Christophe Riccio
28cb770d14 SIMD common functions optimizations 2016-05-29 19:14:39 +02:00
Christophe Riccio
2386237528 common function SIMD optimization 2016-05-29 17:58:53 +02:00
Christophe Riccio
e71c98c5eb Fixed GCC build 2016-05-29 15:32:23 +02:00
Christophe Riccio
9e9ffe65f1 Fixed build 2016-05-29 15:28:54 +02:00
Christophe Riccio
340083edce Add SIMD optimization for common functions 2016-05-29 15:08:34 +02:00
Christophe Riccio
20cf68679c SIMD sqrt optimizations including lowp 2016-05-29 02:57:53 +02:00
Christophe Riccio
449c7ccedf All the vec4 geometry functions have SIMD optimizations 2016-05-28 23:35:07 +02:00
Christophe Riccio
b5521ca7c2 All the vec4 geometry functions have SIMD optimizations 2016-05-28 23:29:15 +02:00
Christophe Riccio
6ea28c83ff Fixed reflect for scalars... 2016-05-28 22:14:58 +02:00
Christophe Riccio
c8c298fef4 Added rect SIMD optimization 2016-05-28 22:09:30 +02:00
Christophe Riccio
f6810a9c0e Added SIMD optimization for geometric functions 2016-05-28 21:51:38 +02:00
Christophe Riccio
fb66c79ca4 Added SIMD optimization for geometric functions 2016-05-28 20:17:34 +02:00
Christophe Riccio
29fa0f1607 Deprecated GLM_GTX_simd_mat4, GLM_GTX_simd_vec4 and GLM_GTX_simd_quat 2016-05-28 19:34:46 +02:00
Christophe Riccio
7fe2f5fe65 Renamed instruction set flags 2016-05-28 19:26:59 +02:00
Christophe Riccio
d33e3df02a Fixed SIMD code path selection 2016-05-28 18:24:39 +02:00
Christophe Riccio
fdb985a0eb Fixed SIMD code path selection 2016-05-28 18:15:35 +02:00
Christophe Riccio
d0e746e292 Fixed SIMD code path selection 2016-05-28 17:55:24 +02:00
Christophe Riccio
9f00ba86cb Fixed SIMD code path selection 2016-05-28 17:54:37 +02:00
Christophe Riccio
ab159770b3 mad optimizations, fixed build 2016-05-28 17:12:48 +02:00
Christophe Riccio
fdec412ff7 Added FMA SIMD optimization 2016-05-28 12:31:43 +02:00
Christophe Riccio
71e6b537cc Clarify support for SSSE3, SSE4.1 and SSE4.2 2016-05-28 11:52:41 +02:00
Christophe Riccio
0ee3a79bfd Uniformalize low level SIMD API 2016-05-28 11:21:04 +02:00
Christophe Riccio
79894a58cc Added NaN and Inf SIMD optimization 2016-05-28 03:09:22 +02:00
Christophe Riccio
1381a95938 Optimized dot SIMD implementation with SSE3 2016-05-28 02:46:06 +02:00
Christophe Riccio
9c6de96669 Specialized SIMD == and != operators 2016-05-28 02:16:56 +02:00
Christophe Riccio
a9fefc7300 Added vec4 SIMD contructor specialization 2016-05-28 01:33:29 +02:00
Christophe Riccio
c5f48da319 Fixed build with compiler that doesn't support GLM_HAS_UNRESTRICTED_UNIONS 2016-05-28 00:10:18 +02:00
Christophe Riccio
ae6082db5e Added AVX2 bitwise optimization 2016-05-28 00:00:33 +02:00
Christophe Riccio
f577611328 Added bitwise inverse SIMD optimization. Factorized bitwise optimization code 2016-05-27 23:03:38 +02:00
Christophe Riccio
4797ea9540 Added specialized SSE2 and AVX bool mix 2016-05-26 02:47:43 +02:00
Christophe Riccio
72c741d8ea Fixed sign with signed integer function on non-x86 architecture 2016-05-24 13:29:18 +02:00
Christophe Riccio
1208eb63f7 Added NEON, MIPS and PowerPC detection 2016-05-23 23:35:34 +02:00
Christophe Riccio
316460408a Simplify and more consistency for files headers 2016-05-23 22:55:49 +02:00
Christophe Riccio
62d5e0ce45 Fixed build 2016-05-23 21:59:25 +02:00
Christophe Riccio
8b9d205178 Fixed build 2016-05-23 21:57:26 +02:00
Christophe Riccio
3f74efa2e0 Merge simd branch 2016-05-23 21:52:59 +02:00
Christophe Riccio
b87ead8304 Use unary bit operators for binary implementation 2016-05-23 21:47:35 +02:00
Christophe Riccio
3081b44ed2 Use unary bit operators for binary implementation 2016-05-23 21:45:08 +02:00
Christophe Riccio
d871d753dc Use unary bit operators for binary implementation 2016-05-23 21:39:33 +02:00
Christophe Riccio
5e60c54004 Use unary % operator for binary implementation 2016-05-23 21:24:59 +02:00
Christophe Riccio
eab004bfe5 vec4 add, sub, mul and div binary operators use unary operators implementation 2016-05-23 21:20:04 +02:00
Christophe Riccio
276505f409 add, sub, mul and div vec4 for specialization 2016-05-23 21:13:57 +02:00
Christophe Riccio
2a4c7e77d6 Added Visual C++ Clang toolset detection 2016-05-23 19:29:36 +02:00
Christophe Riccio
74367aca3c Added Visual C++ Clang toolset detection 2016-05-23 19:25:07 +02:00
Christophe Riccio
c0fc71803c Integer SSE code generation 2016-05-23 01:54:55 +02:00
Christophe Riccio
ff74b87b48 Generate SSE instructions for sub, mul and div including lowp div 2016-05-23 00:34:59 +02:00
Christophe Riccio
0e780a5efd - Use Cuda built-in function for abs function implementation with Cuda compiler 2016-05-22 18:04:32 +02:00
Christophe Riccio
cc9916b2c6 Fixed build, missing reference to inverse function 2016-05-22 17:28:18 +02:00
Christophe Riccio
6cf7389c8c Removed the glm_dummy CMake target if glm_shared or glm_static are enabled 2016-05-22 17:20:56 +02:00
Christophe Riccio
757fe39587 Removed simd precision qualifier. All precision qualifiers may generate SIMD instructions, precision may affect the generated instructions accordingly 2016-05-22 17:12:32 +02:00
Christophe Riccio
93a2f03649 Merge branch '0.9.7' 2016-05-18 22:53:00 +02:00
Christophe Riccio
dcffcbdc97 Fixed GLM_FORCE_INLINE with binary vec4 operators 2016-05-18 22:52:47 +02:00
Christophe Riccio
792151573c Fixed to_string when used with GLM_FORCE_INLINE #506 2016-05-18 22:46:58 +02:00
Christophe Riccio
fd06877778 Too big bug with GCC 4.6 constexpr, haven't tried 4.7, let's see how 4.8 does 2016-05-05 21:06:27 +02:00
Christophe Riccio
60a5f4aea9 Too big bug with GCC 4.6 constexpr, haven't tried 4.7, let's see how 4.8 does 2016-05-05 20:57:37 +02:00
Christophe Riccio
a6047251be Fixed constexpr with SIMD interaction 2016-05-05 20:43:09 +02:00
Christophe Riccio
92a46735d6 Workaround GCC compiler bug with constexpr support 2016-05-05 20:05:31 +02:00
Christophe Riccio
71401d14aa Workaround GCC compiler bug with constexpr support 2016-05-05 19:58:12 +02:00
Christophe Riccio
152c71abff Workaround GCC compiler bug with constexpr support 2016-05-05 19:47:42 +02:00
Christophe Riccio
e8ff04aaec - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 15:38:35 +02:00
Christophe Riccio
2a92b65239 - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 15:14:54 +02:00
Christophe Riccio
6d302792ab - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 15:06:03 +02:00
Christophe Riccio
7e86e9bc3c - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 14:39:50 +02:00
Christophe Riccio
d52766297d - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 14:13:21 +02:00
Christophe Riccio
33bc27ddc4 - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 14:03:20 +02:00
Christophe Riccio
3df1c8755c - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 13:56:40 +02:00
Christophe Riccio
c50f3ed38e - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 13:40:11 +02:00
Christophe Riccio
d0c4bbaef7 - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 13:27:26 +02:00
Christophe Riccio
9a7b802bdc - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 13:05:15 +02:00
Christophe Riccio
7193cd2c3a - Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493 2016-05-05 10:38:51 +02:00
Christophe Riccio
93612791cd Removed Apple specific check for LLVM versions 2016-05-04 18:46:59 +02:00
Christophe Riccio
20da5a25db Improved OpenMP support detection for Clang, GCC, ICC and VC 2016-05-04 18:04:44 +02:00
Christophe Riccio
ca3abd6e93 Fixed CUDA support #499, #500, #501 2016-05-04 17:05:02 +02:00
Christophe Riccio
13a997d4e1 Fixed CUDA support #499, #500, #501 2016-05-04 17:03:38 +02:00
Christophe Riccio
affd5f3ba0 Fixed CUDA compiler error in type_vec4.inl #504 2016-05-04 16:35:57 +02:00
Christophe Riccio
1f71f6fb3a Improved SIMD and swizzle operators interactions with GCC and Clang, Added raw SIMD API. 2016-05-03 23:57:41 +02:00
Christophe Riccio
1becd76c5f Fixed build 2016-05-01 12:39:16 +02:00
Christophe Riccio
83999c749a Reorganized SIMD code 2016-05-01 12:29:11 +02:00
Christophe Riccio
96963f88cc Single file for simd specialization 2016-05-01 05:00:13 +02:00
Christophe Riccio
5f05a5e953 Clean up inverse SSE code 2016-05-01 03:42:47 +02:00
Christophe Riccio
a90ef1b45e Fixed warning 2016-05-01 01:31:43 +02:00
Christophe Riccio
b53cc5d098 Fixed build on non-VC compilers 2016-05-01 01:26:42 +02:00
Christophe Riccio
2f9fc55d88 More experiments to improve SIMD support 2016-05-01 01:12:22 +02:00
Christophe Riccio
306b409658 Fixed merge 2016-04-30 16:28:20 +02:00
Christophe Riccio
e9bb34fb78 - Fixed Visual C++ SIMD instruction set automatic detection in 64 bits 2016-04-30 16:27:19 +02:00
Christophe Riccio
8cf76f049b Fixed Visual C++ SIMD instruction set automatic detection in 64 bits 2016-04-30 16:23:55 +02:00
Christophe Riccio
07a5d27047 Merge branch 'type_trait' 2016-04-30 15:00:46 +02:00
Christophe Riccio
939eb940d4 Renamed GLM_RESTRICT, still unused in the code base 2016-04-30 15:00:37 +02:00
Christophe Riccio
a6b3632257 Use GLM coding convensions 2016-04-30 14:59:56 +02:00
Christophe Riccio
e913a9c68b Fixed GCC build 2016-04-30 02:07:16 +02:00
Christophe Riccio
23ab8137f9 Fixed GTX_type_trait linking 2016-04-30 01:59:46 +02:00
Christophe Riccio
01fa13380d Merge branch 'master' of https://github.com/regnirpsj/glm into type_trait 2016-04-29 23:29:09 +02:00
Christophe Riccio
6558df25e8 Merge branch 'jtg/type-traits-size' of https://github.com/JesseTG/glm into type_trait 2016-04-29 23:26:13 +02:00
Christophe Riccio
b3cae39ea6 Merge 0.9.7 2016-04-29 17:37:27 +02:00
Christophe Riccio
68ec048b70 Fixed roundPowerOfTwo and floorPowerOfTwo #503 2016-04-29 17:24:35 +02:00
Christophe Riccio
76d12fb602 Fixed roundPowerOfTwo and floorPowerOfTwo #503 2016-04-29 10:51:21 +02:00
Christophe Riccio
79643cf4fa Merge 0.9.7 branch 2016-04-24 14:58:57 +02:00
Christophe Riccio
9770c9f73d Fixed uaddCarry warning #497 2016-04-24 14:56:44 +02:00
Hauke Rehfeld
c479e444a4 fix: cuda can use anonymous unions 2016-04-15 12:44:36 +02:00
Hauke Rehfeld
30f014472d add: CUDA in setup.hpp 2016-04-15 12:38:08 +02:00
jan p springer
e54f0cc5cd Merge remote-tracking branch 'upstream/master' 2016-04-05 23:48:48 +01:00
Eric Engestrom
ca46062bea Fix spelling mistakes 2016-04-03 00:50:25 +01:00
Christophe Riccio
66b714c418 Finishing up removing GLM_FORCE_SIZE_FUNC define and passing by copy scalars 2016-03-23 02:01:16 +05:30
Christophe Riccio
bbe076549a Improved coding style consistency, scalars are passed by copy 2016-03-19 17:10:42 +01:00
Christophe Riccio
1d9f8408e6 Merge 0.9.7 branch 2016-03-19 12:53:27 +01:00
Sami Kankaristo
578c4f4f9f Rename tvec1 parameters from scalar to v1/v2 2016-03-19 12:35:12 +01:00
Sami Kankaristo
ad9bfffe65 Fix operator-(), add operator+() 2016-03-19 12:35:04 +01:00
Sami Kankaristo
c7700573a4 Add missing boolean operator declarations 2016-03-19 12:34:59 +01:00
Sami Kankaristo
42b818d4bb Fix declarations (use tdualquat instead of tquat) 2016-03-19 12:34:51 +01:00
Sami Kankaristo
ece2b8b5a2 Add missing boolean operator declarations 2016-03-19 12:34:28 +01:00
Sami Kankaristo
8662a567b2 Add const & to POD to match other functions in the class 2016-03-19 12:34:09 +01:00
Sami Kankaristo
b7fef63ef8 Remove const & from POD to match other functions in class 2016-03-19 12:33:42 +01:00
Sami Kankaristo
d3036fd010 Add missing operator function definitions 2016-03-19 12:32:42 +01:00
Sami Kankaristo
785c8892d9 Add missing const to declaration 2016-03-19 12:32:24 +01:00
Christophe Riccio
6c61c332f4 Fixed missing GLM_PLATFORM_CYGWIN declaration #495 2016-03-19 12:31:19 +01:00
Christophe Riccio
61d58b0296 Fixed missing GLM_PLATFORM_CYGWIN declaration #495 2016-03-19 12:28:18 +01:00
Sami Kankaristo
99d3486e1f Rename tvec1 parameters from scalar to v1/v2 2016-03-15 03:24:53 +02:00
Sami Kankaristo
2d54f437f1 Fix operator-(), add operator+() 2016-03-15 02:38:16 +02:00
Sami Kankaristo
55d7b07e12 Add missing boolean operator declarations 2016-03-15 02:37:38 +02:00
Sami Kankaristo
131b85f4b9 Fix declarations (use tdualquat instead of tquat) 2016-03-15 02:36:33 +02:00
Sami Kankaristo
21fb034338 Add missing boolean operator declarations 2016-03-15 02:22:48 +02:00
Sami Kankaristo
236fed9d93 Add const & to POD to match other functions in the class 2016-03-15 02:21:42 +02:00
Sami Kankaristo
1e192be370 Remove const & from POD to match other functions in class 2016-03-15 02:20:15 +02:00
jan p springer
25d6c8e341 update: date stamps + GLM_META_PROG_HELPERS pre-requiste 2016-03-14 16:37:30 +00:00
jan p springer
a5a69566b9 update: date stamps 2016-03-14 16:36:34 +00:00
jan p springer
b52156991e fixed: glm::operator<< (using a copy of #491) 2016-03-14 13:13:21 +00:00
jan p springer
ca7a4ed4fe Merge remote-tracking branch 'upstream/master' 2016-03-14 12:35:35 +00:00
Jesse Talavera-Greenberg
ae15b8982b Correct type_trait info so it doesn't conflict with the file name 2016-03-13 20:23:51 -04:00
Jesse Talavera-Greenberg
ffaa6fe7c0 Add missing cols/rows constants 2016-03-13 20:19:19 -04:00
Sami Kankaristo
798e4f0e78 Remove (old?) operator/ member functions
These don't seem to have matching definitions and they conflict with
similar functions in the glm namespace (in the same header files).
2016-03-13 21:32:41 +02:00
Sami Kankaristo
8e7a3a9053 Add missing operator function definitions 2016-03-13 21:32:33 +02:00
Sami Kankaristo
b968defd22 Add missing const to declaration 2016-03-13 21:32:06 +02:00
Christophe Riccio
234d7d4ba9 Simplify code removing GLM_FORCE_SIZE_FUNC, GLM_META_PROG_HELPERS, GLM_STATIC_CONST_MEMBERS and 'type' type trait. Added experiments for GTX_type_trait 2016-03-13 12:56:26 +01:00
Sami Kankaristo
e60273daff Add missing vec4 operator definitions
Also rename the parameters to match similar functions in other vector
classes.
2016-03-12 20:33:53 +01:00
Sami Kankaristo
3ec43e9522 Fix incorrect declaration (now matches definition) 2016-03-12 20:33:49 +01:00
Sami Kankaristo
a848fa69be Remove duplicate function declarations 2016-03-12 20:33:45 +01:00
Christophe Riccio
95cf1825d5 Merge branch 'master' of https://github.com/g-truc/glm 2016-03-12 20:31:29 +01:00
Sami Kankaristo
3860fbaa9a Add missing vec4 operator definitions
Also rename the parameters to match similar functions in other vector
classes.
2016-03-12 18:34:50 +02:00
Sami Kankaristo
780d5f403b Fix incorrect declaration (now matches definition) 2016-03-12 18:31:43 +02:00
Sami Kankaristo
5222e0baca Remove duplicate function declarations 2016-03-12 18:30:07 +02:00
Christophe Riccio
b14e39b4cf Added target to build optional static and dynamic GLM library 2016-03-12 01:32:40 +01:00
Christophe Riccio
86c58b8b8b Added iround and uround to GTC_integer, fast round on positive values 2016-03-10 21:53:08 +01:00
Christophe Riccio
79b433e9b0 Merge branch 'master' of https://github.com/g-truc/glm 2016-03-10 21:19:35 +01:00
Christophe Riccio
c853df1638 Added uround to GTC_integer, fast round on positive values 2016-03-10 21:17:46 +01:00
Christophe Riccio
6e5f42bd28 Fixed error message type 2016-03-06 12:52:34 +01:00
Christophe Riccio
f48fe286ad Consolidate setup options in setup.hpp 2016-03-06 03:36:20 +01:00
Christophe Riccio
a391bc1be6 Clean up GTX_matrix_transform coding style 2016-03-06 02:28:21 +01:00
Christophe Riccio
ecfebe640f Clean up to close model matrix decompose #227 2016-03-06 02:13:45 +01:00
Christophe Riccio
fe18a36c10 - Added right and left handed projection and clip control support #447 #119 2016-03-06 00:16:09 +01:00
Paul Konstantin Gerke
239cf70ade Fixed: outerProduct was defined incorrectly for unmatched vecX types. E.g. outerProduct(vec2, vec4) did not succeed because the matrix return types were wrong. The computing function seemed fine. I used https://en.wikipedia.org/wiki/Outer_product as reference on what the number of columns/rows ''should'' be and fixed it so that it matches the description from wikipedia
Added: tests for outerProduct with unmatched vector dimensions (actually testing all combinations now)
2016-03-05 23:51:20 +01:00
Paul Konstantin Gerke
b3b72527b1 Fixed: operator signatures of mat2x4 and vec4 (no guaratees that I found all issues) 2016-03-05 23:51:06 +01:00
sippeangelo
2d813b587a This fixes #461 2016-03-05 23:46:39 +01:00
Angelica Wrangler
c9720a7f40 Merge pull request #485 from NouberNou/NouberNou-Polar-Coordinates-Fix
Fix polar coordinates function latitude. #485
2016-03-05 23:35:14 +01:00
Angelica Wrangler
8647d60086 Merge pull request #462 from sippeangelo/issue-461
eulerAngles precision error, returns NaN #462 #461
2016-03-05 23:27:51 +01:00
Angelica Wrangler
72a8ba473d Merge pull request #475 from MrApplejuice/master
Fixed: outerProduct defintions and operator signatures for mat2x4 and vec4 #475
2016-03-05 23:18:21 +01:00
Angelica Wrangler
2783a490da Merge pull request #478 from hoodie/master
fixed a typo #478
2016-03-05 23:12:26 +01:00
Christophe Riccio
251ad15b68 Improved GLM_FORCE_EXPLICIT_CTOR coverage #481 2016-03-05 23:01:01 +01:00
NouberNou
b189cb2f29 Fix polar coordinates function latitude.
Latitude was being computed from `atan`, should be `asin`.
2016-02-25 18:18:02 -08:00
Christophe Riccio
cb71d2376d Merge branch '0.9.7' 2016-02-21 19:40:47 +01:00
Christophe Riccio
045aa8e541 Fixed atanh warning #484 2016-02-21 19:40:24 +01:00
Christophe Riccio
4945ec7471 Merge 0.9.7 branch 2016-02-21 19:00:36 +01:00
Christophe Riccio
0d48c43385 Fixed asinh warning with C++98 STL #484 2016-02-21 18:59:26 +01:00
Christophe Riccio
162fad6a31 Merge branch '0.9.7' 2016-02-21 14:29:31 +01:00
Christophe Riccio
500a955d45 Fixed 64 bits constants warnings on GCC #463 2016-02-21 14:29:07 +01:00
Christophe Riccio
54ad263974 Fixed Clang on Windows build #479 2016-02-21 14:15:44 +01:00
Christophe Riccio
14e0a5576a Fixed Clang on Windows build #479 2016-02-21 14:15:17 +01:00
Christophe Riccio
907cb9d968 Fixed bad merge #483 2016-02-21 13:24:29 +01:00
Christophe Riccio
65e88d9f9d Merge 0.9.7 2016-02-15 21:13:42 +01:00
Christophe Riccio
cc2f15803e Added AVX512 detection 2016-02-15 21:11:55 +01:00
Christophe Riccio
407a7598aa Improved new version of GCC detection #477 2016-02-15 20:29:55 +01:00
Joonas Sarajärvi
bc09ecf898 setup: detect GCC 6.0 2016-02-15 20:27:10 +01:00
Hendrik Sollich
0476be3e74 fixed a typo 2016-02-09 12:41:31 +01:00
Joonas Sarajärvi
f0acbbd4ac setup: detect GCC 6.0 2016-02-04 19:42:25 +02:00
Paul Konstantin Gerke
fb309e0eff Fixed: outerProduct was defined incorrectly for unmatched vecX types. E.g. outerProduct(vec2, vec4) did not succeed because the matrix return types were wrong. The computing function seemed fine. I used https://en.wikipedia.org/wiki/Outer_product as reference on what the number of columns/rows ''should'' be and fixed it so that it matches the description from wikipedia
Added: tests for outerProduct with unmatched vector dimensions (actually testing all combinations now)
2016-01-24 21:14:25 +01:00
Paul Konstantin Gerke
2c7430e9bc Fixed: operator signatures of mat2x4 and vec4 (no guaratees that I found all issues) 2016-01-24 19:34:26 +01:00
Christophe Riccio
8bcc4e0045 merge 0.9.7 2016-01-03 18:46:43 +01:00
Christophe Riccio
ebdb7aa45b Added unary + operator #435 2016-01-03 18:39:40 +01:00
Christophe Riccio
1709e9abca Added unary + operator #435 2016-01-03 18:37:46 +01:00
Jesse Talavera-Greenberg
7db048b851 Move dependencies from intersect.inl to intersect.hpp 2016-01-03 18:34:51 +01:00
Christophe Riccio
268af877ab Cygwin GCC doesn't have a C++11 STL library 2016-01-03 18:32:26 +01:00
Sven-Hendrik Haase
4ea72b3128 Fix docs 2016-01-03 18:31:37 +01:00
Stephen Hill
c83add59b3 Fixed various 'X is not defined' warnings 2016-01-03 18:27:12 +01:00
Stephen Hill
ba46e0500e Fixed 'GLM_COMPILER_VC2005 is not defined' warning
This GLM compiler version isn't defined, so I just removed the legacy functions.
2016-01-03 18:27:00 +01:00
Stephen Hill
4bb352b628 Fixed "Declaration shadows a field" warning 2016-01-03 18:26:54 +01:00
Adrian Krupa
c9400562ec Fixed build 2016-01-03 18:25:45 +01:00
humbletim
52c9f124e3 Fixed ldexp and frexp compilation errors 2016-01-03 18:20:13 +01:00
Christophe Riccio
1936921ec7 Fixed log from GTX_lob_base build error with tests #470, #471 2016-01-03 18:11:55 +01:00
Sven-Hendrik Haase
a827b248ef Fix wrong docs
The function this function is a helper of is using radians. In fact, glm is using radians everywhere!
2016-01-03 18:11:37 +01:00
Christophe Riccio
a754ab2e7e Fixed ICC on Linux build errors #449 2016-01-03 18:10:46 +01:00
Christophe Riccio
adb03bee5c Fixed ICC on Linux build errors #449 2016-01-03 18:08:00 +01:00
Christophe Riccio
df39980121 Tentative fix for 64 bits on GCC 2016-01-03 17:36:31 +01:00
Christophe Riccio
7a1c042d8b Fixed ICC on Linux build errors #449 2016-01-03 17:10:24 +01:00
Christophe Riccio
2f2782d72a Fixed ICC on Linux build errors #449 2016-01-03 16:03:30 +01:00
Christophe R
8d4d9d1877 Merge pull request #466 from humbletim/master
Fixed ldexp compilation error #466
2016-01-01 14:34:04 +01:00