Commit Graph

1786 Commits

Author SHA1 Message Date
Pavel Krajcevski
a53696a2dc Specialize template for integer YCoCgR conversion to use bitshifts 2015-02-13 00:22:03 -08:00
Christophe Riccio
387df50459 Updated GTC_color 2015-02-12 21:21:50 +01:00
Christophe Riccio
3ea110b44d Added GTC_color documentation 2015-02-11 00:14:17 +01:00
Christophe Riccio
40d0bc2e85 Added GTC_color, rgbToSrgb and srgbToRgb with tests 2015-02-10 23:49:49 +01:00
Christophe Riccio
2fc4532931 Fixed functions not inlined with Clang #302 2015-02-10 00:59:57 +01:00
Christophe Riccio
4ad2ad84a8 Merge pull request #301 from regnirpsj/master
added: operator<< for tvec1<> #301
2015-02-09 23:05:10 +01:00
Christophe Riccio
93d07fdc39 Merge 0.9.6 branch 2015-02-09 22:30:29 +01:00
Christophe Riccio
19066e9940 Added partial constexpr support detection 2015-02-09 22:02:03 +01:00
Aubrey R. Jones
5d421b27b2 Changed usage of __has_include to support Intel compiler.
Intel compiler supports __has_include, but does not support angle brackets in the argument. Clang and Intel both accept quotes with seemingly identical semantics to one another, and to angle brackets. Only difference appears to be that `icpc` no longer crashes trying to compile code using glm.
2015-02-05 11:08:43 -07:00
Jakub Čajka
8977e6d010 Fixed (u)int64 MSB/LSB handling on BE archs 2015-01-28 09:57:55 +01:00
Christophe Riccio
387f931feb Fixed Visual C++ 2015 constexpr errors: Disabled only partial support 2015-01-25 21:06:07 +01:00
jan p springer
d30aba45e0 added: operator<< for tvec1<> 2015-01-14 22:10:55 +00:00
Christophe Riccio
4eec569f92 Disabled GTX_scalar_multiplication for GCC, failing to build tests #242 2015-01-10 13:45:41 +01:00
Christophe Riccio
fe0de059b8 Cleaned up C++11 feature detections 2015-01-10 13:44:57 +01:00
Christophe Riccio
0ceb9e9394 packing function clean up #292 2015-01-09 23:57:22 +01:00
Christophe Riccio
8b09606c7b Merge 0.9.6 branch 2015-01-09 23:17:32 +01:00
Christophe Riccio
d9290d7887 Fixed GTC_packing *pack*norm*x* build and added tests #292 2015-01-09 23:14:10 +01:00
Christophe Riccio
025a4c79ff Fixed bug #293 2015-01-09 19:55:11 +01:00
Christophe Riccio
3226580a36 Merge 0.9.6 branch 2015-01-09 19:52:47 +01:00
Christophe Riccio
1e0825028e Fixed Visual Studio natvis support for vec4 #288, Added Visual Studio natvis support for vec1, quat and dualqual types 2015-01-09 01:37:16 +01:00
Christophe Riccio
ed3d8e17e4 Fixed warnings in F2x11_1x10 packing function in GTC_packing #295 2015-01-08 23:50:06 +01:00
Christophe Riccio
54dbea6258 Fixed mat4x3 = mat2x3 * mat4x2 operator #297 2015-01-08 23:38:59 +01:00
Christophe Riccio
1dce8bf200 Removed assert for perspective with zFar < zNear #298 2015-01-08 22:53:21 +01:00
Christophe Riccio
07913880c4 - Fixed conflict with Xlib #define True 1 #293 2014-12-30 14:48:25 +01:00
Jonathon Racz
dd948d3cc2 Fixed inconsistency in templated value 2014-12-29 22:57:51 -05:00
Jonathon Racz
2d30a6e21a Fixed VS2010 templating issues with decompose function caused by ambiguous type conversions and constants. 2014-12-29 17:58:16 -05:00
Christophe Riccio
2336264f4e Added ARM instruction set detection 2014-12-20 17:16:52 +01:00
Christophe Riccio
2ddfbd23c6 Merge 0.9.6 changes 2014-12-19 23:55:34 +01:00
Christophe Riccio
fc8b4404f0 Fixed faceforward build #289 2014-12-19 23:54:25 +01:00
Christophe Riccio
d5753fe37a Added display of GLM version with other GLM_MESSAGES 2014-12-19 21:05:05 +01:00
Christophe Riccio
4340f3fa6f Fixed C++ language restriction using GLM_FORCE_CXX** 2014-12-10 21:29:41 +01:00
Christophe Riccio
635f607b86 All 32 bits VC version doesn't support 64 bit intrinsics 2014-12-10 09:51:51 +01:00
Christophe Riccio
bc76648f8e VC2015 still doesn't fully support C++11 2014-12-10 09:48:00 +01:00
Christophe Riccio
2117c53dbf Fixed conflict between GTX_compatibility and GTC_quaternion #286 2014-12-10 09:39:23 +01:00
Christophe Riccio
c556770a32 Fixed C++98 only build 2014-12-10 02:52:30 +01:00
Christophe Riccio
5331b67ad0 Clean up GLM_MESSAGES compilation log to report only detected capabilities 2014-12-10 02:27:13 +01:00
Christophe Riccio
abcc46012a Added GLM_LANG_CXX14_FLAG and GLM_LANG_CXX1Z_FLAG language feature flags, Added C++14 detection 2014-12-10 01:55:26 +01:00
Christophe Riccio
e4ccd06e29 Second set of fixes for Android #284 2014-12-09 23:54:03 +01:00
Christophe Riccio
c02d031eaf Fixed merge 2014-12-09 10:57:21 +01:00
Christophe Riccio
2ac05f11e0 Merge branch '0.9.6' 2014-12-08 23:55:23 +01:00
Christophe Riccio
ff006034df Fixed unsupported _BitScanForward64 and _BitScanReverse64 in VC10, Fixed Visual C++ 32 bit build #283 2014-12-08 23:49:14 +01:00
Christophe Riccio
459fe3a3fe Fixed Android build issue, STL C++11 is not supported by the NDK #284 2014-12-08 23:21:59 +01:00
Christophe Riccio
c1180c804c New organization idea for SIMD support 2014-12-08 22:29:12 +01:00
Christophe Riccio
bcf1a72392 Fixed libc++ detection #284 2014-12-08 21:45:14 +01:00
Christophe Riccio
732b40c251 Fixed 64 bits integer GTX_string_cast to_string on VC 32 bit compiler 2014-12-05 18:09:48 +01:00
Christophe Riccio
f026e722ee Fixed missing explicit convertion when using integer log2 with *vec1 types 2014-12-03 23:23:24 +01:00
Christophe Riccio
38d99978ab Fixed C++11 explicit conversion operators detection #282 2014-12-03 21:48:41 +01:00
Christophe Riccio
6a1a673b41 Fixed C++11 explicit conversion operators detection #282 2014-12-03 14:55:47 +01:00
Christophe Riccio
28aba540ee Fixed scalar uaddCarry build error with Cuda #276 2014-12-01 20:27:56 +01:00
Christophe Riccio
540831cbe1 Updated version for 0.9.7 branch 2014-12-01 00:32:51 +01:00
Christophe Riccio
f680d14612 Updated version for next release 2014-12-01 00:30:02 +01:00
Christophe Riccio
7af5ec8959 Fixed build 2014-11-30 22:06:39 +01:00
Christophe Riccio
a1e34d02ff Merge branch 'master' of https://github.com/g-truc/glm 2014-11-30 17:00:21 +01:00
Christophe Riccio
0d73f61828 Deprecate GTX_bit 2014-11-30 16:59:49 +01:00
Christophe Riccio
a4faeceb99 Fixed warnings 2014-11-29 23:16:13 +01:00
Christophe Riccio
57262d1a67 Fixed dependences 2014-11-29 23:08:50 +01:00
Christophe Riccio
54c84606f4 Fixed CUDA compilation error #276 2014-11-29 22:58:00 +01:00
Christophe Riccio
ff3872c859 Reducing header dependences 2014-11-29 22:57:33 +01:00
Christophe Riccio
67964bfd0a Matching headers and implementations 2014-11-29 22:13:30 +01:00
Christophe Riccio
a290603a9c Fixed clang test 2014-11-29 21:16:20 +01:00
Christophe Riccio
7e81213fdd Fixed mod function specialization #281 Fixed bitscan detection 2014-11-29 18:47:58 +01:00
Christophe Riccio
9b250cc86f Fixed arch detection for Intel compiler 2014-11-29 02:43:06 +01:00
Christophe Riccio
1a2a121acb Merge pull request #279 from cjuniet/master
Fix MSVC intrinsics detection #279 #278
2014-11-29 02:19:59 +01:00
Christophe Riccio
be0c5da488 size_type and length_type for all types 2014-11-29 00:53:47 +01:00
Christophe Juniet
49b326b44a Fix MSVC intrinsics detection
MSVC and Clang support BitScanFoward and BitScanReverse only on
Windows.
2014-11-28 13:17:53 +01:00
Christophe Riccio
3ad3dbcd93 Added overview post code sample 2014-11-28 02:24:05 +01:00
Christophe Riccio
bdd723ed3b Updated deprecated compilers 2014-11-27 23:42:35 +01:00
Christophe Riccio
cdd36afdc1 Fixed build 2014-11-26 00:33:24 +01:00
Christophe Riccio
3f48ffefb0 Updated license 2014-11-26 00:27:12 +01:00
Christophe Riccio
c273be264c More fixes for doxygen 2014-11-25 01:08:52 +01:00
Christophe Riccio
3aa3da0727 Deleted dead files 2014-11-25 00:58:36 +01:00
Christophe Riccio
d276bf3b98 Doxygen fixes 2014-11-25 00:56:37 +01:00
Christophe Riccio
4f5bd21a5e Doxygen doc fixes 2014-11-25 00:16:03 +01:00
Christophe Riccio
3c0b3c4009 Merge pull request #275 from plasmacel/master
add explicit matrix conversion operators to quat #275
2014-11-24 21:37:20 +01:00
Christophe Riccio
e8fbcf76dd Optimizations of log2 for ivec4 2014-11-24 01:56:36 +01:00
plasmacel
017e97d554 Update quaternion.inl 2014-11-24 01:34:36 +01:00
plasmacel
36075c4994 Update quaternion.hpp 2014-11-24 01:33:29 +01:00
plasmacel
4581d25ec9 Update quaternion.inl 2014-11-24 01:16:07 +01:00
plasmacel
3b3dcd7d03 Update quaternion.hpp 2014-11-24 01:10:21 +01:00
Christophe Riccio
117634c7ea Fixed GCC build issue on new alignment types. More simd stuff to vec4 2014-11-23 22:13:22 +01:00
Christophe Riccio
bddce172f7 Fixed Clang and LLVM detections 2014-11-23 21:14:08 +01:00
Christophe Riccio
97182990a7 Move GTC_type_aligned to GTX extensions 2014-11-23 21:00:17 +01:00
Christophe Riccio
7621a735a3 Move GTC_type_aligned to GTX extensions 2014-11-23 20:58:09 +01:00
Christophe Riccio
c79394b899 More tests and comments for type_aligned 2014-11-23 20:44:54 +01:00
Christophe Riccio
9b96b31f0e Fixed alignment on Visual C++ 2014-11-23 13:20:14 +01:00
Christophe Riccio
5d95353dd0 Added missing types 2014-11-23 13:15:24 +01:00
Christophe Riccio
411511ca71 Completed GTC_type_aligned #266 #257 2014-11-23 12:54:44 +01:00
Christophe Riccio
b062bd9ff2 First step to add GTC_type_aligned 2014-11-23 01:02:03 +01:00
Christophe Riccio
246609b453 Fix build 2014-11-22 23:26:18 +01:00
Christophe Riccio
011a056267 Added AVX2 detection for GLM tests 2014-11-22 22:31:44 +01:00
Christophe Riccio
34a98b5220 Fixed build 2014-11-22 20:33:36 +01:00
Christophe Riccio
3135560336 Updated built-in 2014-11-22 20:30:40 +01:00
Christophe Riccio
0bffce4f4b Optimized findMSB and findLSB 2014-11-22 20:14:48 +01:00
Christophe Riccio
20bdab33dd Branch free refract and reflect 2014-11-22 00:37:08 +01:00
Christophe Riccio
582ea579a3 Fixed sign for unsigned types #271 2014-11-22 00:03:39 +01:00
Christophe Riccio
38161f01f8 Further optimized glm::sign for signed and unsigned int #271 2014-11-21 23:43:48 +01:00
Christophe Riccio
f98f2b107a Merge branch 'GTC_integer' 2014-11-21 22:50:00 +01:00
Christophe Riccio
826ce5c0d2 Fixed multiline comment warning comment #273 2014-11-21 22:20:45 +01:00
Christophe Riccio
b944e3a990 Merge pull request #272 from plasmacel/master
optimized cot function implementation #272
2014-11-21 22:15:38 +01:00
Christophe Riccio
afd58dcdc5 Used std features within GLM without redeclaring 2014-11-21 22:13:04 +01:00
plasmacel
7e3dc0ae16 format fix 2014-11-21 04:30:56 +01:00
plasmacel
e637299192 implement cot as tan(pi/2 - angle) 2014-11-21 04:29:35 +01:00
Christophe Riccio
b0b84a3dc1 Optimized sign for vector types #271 2014-11-21 00:50:47 +01:00
Christophe Riccio
883d328fb8 Merge branch 'master' into GTC_integer 2014-11-20 23:39:07 +01:00
plasmacel
7def337781 Update func_common.inl 2014-11-20 15:33:28 +01:00
Christophe Riccio
4f4763600f Added log2 to GTC_integer 2014-11-19 23:09:02 +01:00
Christophe Riccio
5b911d1eb0 Fixed float comparison warnings #270 2014-11-19 01:12:24 +01:00
Christophe Riccio
88894045af Added integer log2 test 2014-11-19 00:40:45 +01:00
Christophe Riccio
2d50df61c3 Initial structure for GTC_integer 2014-11-17 23:56:41 +01:00
Christophe Riccio
3adf263341 Added GLM_FORCE_EXPLICIT_CTOR to require explicit type conversions #269 2014-11-17 22:59:10 +01:00
Christophe Riccio
9c62eee507 Added GLM_FORCE_EXPLICIT_CTOR 2014-11-17 21:40:17 +01:00
Christophe Riccio
4e95519396 Fixed test with VC and disabled lang extension 2014-11-16 18:18:11 +01:00
Christophe Riccio
bcd33a89df Fixed build issue 2014-11-16 18:09:32 +01:00
Christophe Riccio
066bd1b1c1 Deleted unused file 2014-11-16 17:01:02 +01:00
Christophe Riccio
31cee181d1 Updated GTC extension list 2014-11-16 17:00:17 +01:00
Christophe Riccio
bc5fe52a44 Removed empty GTC_integer 2014-11-16 16:42:47 +01:00
Christophe Riccio
f8729cd4fa Fixed build on VC2010 2014-11-16 01:15:04 +01:00
Christophe Riccio
2d48d922bd Updated VC support compilers list 2014-11-16 01:12:18 +01:00
Christophe Riccio
8d9c4596b3 Added GLM_HAS_MAKE_SIGNED for C++11 support of make_(un)signed 2014-11-15 23:31:13 +01:00
Christophe Riccio
de5dd23d2f Updated make_signed and make_unsigned for Clang fixes 2014-11-15 23:12:20 +01:00
Christophe Riccio
18b8e2fd4a Fixed Clang warnings 2014-11-15 23:03:53 +01:00
Christophe Riccio
72cbc4c065 Fixed uaddCarray and updated tests #253 2014-11-15 22:31:08 +01:00
Christophe Riccio
b90c4c430e Added GLM_HAS_TRIVIAL_QUERIES define 2014-11-15 21:59:46 +01:00
Christophe Riccio
30e7eaeb86 Clean up 2014-11-15 21:37:59 +01:00
Christophe Riccio
45645988e9 Fixed uaddCarray #253. Fixed GCC build errors. 2014-11-15 21:32:56 +01:00
Christophe Riccio
5960196ce8 Clean up white spaces, fix build with VC15 2014-11-15 20:36:53 +01:00
Christophe Riccio
6eb5529395 Clean up 2014-11-15 20:11:38 +01:00
Christophe Riccio
372d75dbe8 Clean up 2014-11-15 19:16:58 +01:00
Christophe Riccio
991427f671 Clean up 2014-11-15 19:15:34 +01:00
Christophe Riccio
1dea9c5e34 Clean up 2014-11-15 19:13:25 +01:00
Christophe Riccio
85a6c8fc08 Avoid useless initialization 2014-11-15 19:00:06 +01:00
Christophe Riccio
6a50a87a75 Clean up 2014-11-15 18:58:59 +01:00
Christophe Riccio
0b39c3b911 Clean up 2014-11-15 18:54:29 +01:00
Christophe Riccio
9914308726 Clean up 2014-11-15 18:45:13 +01:00
Christophe Riccio
0b8ca1a5b6 Added a CMake option to execute GLM performance tests. Made quat and dualquat trivially constructible #263 2014-11-15 00:05:52 +01:00
Christophe Riccio
cfce5f436c Merge more precision for fastCos and fastSin #264 2014-11-14 21:28:58 +01:00
Christophe Riccio
c1f47f4c7d Fixed distance function return type #267 2014-11-14 21:03:14 +01:00
Christophe Riccio
c36f3630eb Fixed glm::mask function and tests 2014-11-14 02:01:46 +01:00
Christophe Riccio
a604ebdaa5 Fixed build 2014-11-13 00:08:13 +01:00
Christophe Riccio
2df3bf71cc Merge branch 'trivial' into bitfield 2014-11-12 23:11:32 +01:00
Christophe Riccio
062ee19ac7 Fixed bitfieldInsert and bitfieldExtract 2014-11-12 22:48:15 +01:00
Christophe Riccio
f09888a090 Reverse #257, breaking many vec4 types size (i8vec4, u16vec4 etc) 2014-11-12 21:20:17 +01:00
Christophe Riccio
ee84420f6c All *mat* types are copyable #263 2014-11-10 01:16:48 +01:00
Christophe Riccio
838bdee3c3 All *vec* types are copyable #263 2014-11-10 00:04:47 +01:00
Mathias Labeyrie
72a5de2320 branchless wrapAngle 2014-11-05 13:57:32 +01:00
Mathias Labeyrie
b38a8b4e5a rename three_half_pi() => three_over_two_pi() 2014-11-05 13:51:16 +01:00
Mathias Labeyrie
710e13a8e6 Much more precise fastCos and fastSin
fastCos and fastSin had a max error of ~0.2 on [-pi pi].
The updated version is ~0.000007.
2014-11-05 11:12:52 +01:00
Mathias Labeyrie
b0c1777b57 More constants related to pi 2014-11-05 11:12:36 +01:00
Christophe Riccio
a2a6037ba5 More std trivial experiments #263 2014-11-04 01:06:16 +01:00
Christophe Riccio
931e72b456 Initial std trivial experiments #263 2014-11-04 00:52:16 +01:00
Christophe Riccio
6f3765d281 First draft of GTC_round 2014-11-04 00:06:20 +01:00
Christophe Riccio
377d5a4046 Optimized bitCount function 2014-11-02 23:48:02 +01:00
Christophe Riccio
afb1f6d152 Optimized bitfieldReverse 2014-11-02 20:48:59 +01:00
Christophe Riccio
41c00872a1 Fixed GCC build 2014-11-01 23:35:10 +01:00
Christophe Riccio
8a882ffdf1 Clean up old workaround 2014-11-01 13:44:34 +01:00
Christophe Riccio
7fb56a2daa Clean up dead code 2014-11-01 03:06:30 +01:00
Christophe Riccio
f2996fc3fd Clean up dead code 2014-11-01 03:03:36 +01:00
Christophe Riccio
23d2735e03 Updated GTX_multiple 2014-11-01 03:00:42 +01:00
Christophe Riccio
4b4b6f6cac Removed macros 2014-11-01 01:44:37 +01:00
Christophe Riccio
86eae996e4 Removed VECTORIZE_VEC for GTX 2014-11-01 00:21:10 +01:00
Christophe Riccio
1cd48f1523 Use template instanciation 2014-10-31 01:52:38 +01:00
Christophe Riccio
c5776a725e Merge branch 'master' into vectorize 2014-10-31 01:33:12 +01:00
Christophe Riccio
fc253a0e5b Fixed Visual C++ 10 build 2014-10-31 01:29:38 +01:00
Christophe Riccio
1331e156cb Fixed non C++11 build 2014-10-31 01:26:00 +01:00
Christophe Riccio
08b9197c6a Fixed build 2014-10-30 23:46:13 +01:00
Christophe Riccio
5f60ff6d78 Fixed build 2014-10-30 23:38:44 +01:00
Christophe Riccio
97e4fd1025 Code style clean up 2014-10-29 10:30:48 +01:00
Christophe Riccio
abb5299e08 Fixed warnings with -pedantic 2014-10-29 10:28:25 +01:00
Christophe Riccio
9fe8bc1f66 Fixed build 2014-10-29 08:30:18 +01:00
Christophe Riccio
445a388817 Merge 2014-10-29 08:18:53 +01:00
Christophe Riccio
e8923c9bca Fixed bad matrix-vector performance in Cuda #257, #258 2014-10-29 00:42:59 +01:00
Christophe Riccio
dced21e745 Added multiple 'sign' implementations for integers, unit tests and performancetests. 2014-10-29 00:18:41 +01:00
Christophe Riccio
44382faf59 Improve mask implementation to support any integer and vector types 2014-10-28 20:28:26 +01:00
Christophe Riccio
a88d8935be Updated ceilPowerOfTwo for signed int support 2014-10-27 23:02:47 +01:00
Christophe Riccio
3420d691f5 Added findLSB tests, faster ceilPowerOfTwo 2014-10-27 20:47:00 +01:00
Christophe Riccio
031eb13341 Added powerOfTwo functions 2014-10-27 19:13:16 +01:00
Christophe Riccio
0de2f5c587 Added powerOfTwo functions 2014-10-27 19:07:23 +01:00
Christophe Riccio
f09d1fd3d4 Fix build 2014-10-27 13:44:30 +01:00
Christophe Riccio
097c1f7b90 Updated GTC_integer 2014-10-26 20:34:10 +01:00
Christophe Riccio
d3b368b65c Added GTC_integer, deprecated GTX_bit 2014-10-26 19:22:19 +01:00
Christophe Riccio
69274e740c Promoted bitfieldRotate[Right|left] and bitfieldFill[zero|one] 2014-10-26 17:31:49 +01:00
Christophe Riccio
8dd3ec02ea Removed bitRevert, duplicated of bitfieldReverse 2014-10-26 16:56:31 +01:00
Christophe Riccio
45c4fbeb65 Fixed build 2014-10-26 00:54:36 +02:00
Christophe Riccio
087d6292e3 Added GTC_bitfield extension, promoted GTX_bit 2014-10-26 00:22:08 +02:00
Christophe Riccio
0c522117c8 Opimization of mask, bitfieldInsert, bitfieldExtract and bitCount 2014-10-25 21:16:49 +02:00
Christophe Riccio
eb915ed808 Fixed frac and added more roundEven tests 2014-10-25 14:30:43 +02:00
Christophe Riccio
f70ee7ef28 Vectorize many common functions 2014-10-25 00:08:10 +02:00
Christophe Riccio
50cead0793 Vectorize outerProduct 2014-10-24 22:14:17 +02:00
Christophe Riccio
cb8250c20b Fixed unitilized constructor on MacOSX 2014-10-24 21:30:11 +02:00
Christophe Riccio
bf9e4458b6 Added not function 2014-10-24 21:22:24 +02:00
Christophe Riccio
72a2f49834 More integer vectorization 2014-10-24 02:46:59 +02:00
Christophe Riccio
0274cb6e58 Fix build 2014-10-23 22:17:58 +02:00
Christophe Riccio
3344c8e9a0 Fixed build error 2014-10-22 16:03:44 +02:00
Christophe Riccio
7cd21032d3 Fixed Clang compiler detection 2014-10-22 16:01:55 +02:00
Christophe Riccio
44a734d93a Fixed build 2014-10-22 15:58:13 +02:00
Christophe Riccio
679c765a07 vectorize bitfieldExtract 2014-10-21 03:08:32 +02:00
Christophe Riccio
2179695e02 Added usubBorrow tests 2014-10-21 01:40:42 +02:00
Christophe Riccio
fcfc56d5e3 Vectorization of usubBorrow and umulExtended, simplified vector relational code 2014-10-21 01:32:45 +02:00
Christophe Riccio
c23cb8cd59 Added GLM_NEVER_INLINE 2014-10-20 21:34:56 +02:00
Christophe Riccio
4fc68ffe49 Replace function instanciations with macros by templates 2014-10-20 03:26:59 +02:00