Commit Graph

2471 Commits

Author SHA1 Message Date
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
Christophe Riccio
e9febd9ee7 Fixed log from GTX_lob_base build error with tests #470, #471 2016-01-01 14:30:14 +01:00
Christophe R
d94b0b7971 Merge pull request #467 from svenstaro/patch-2
Fix wrong docs #467
2016-01-01 12:50:59 +01:00
Stephen Hill
47a2a6adfb Fixed various 'X is not defined' warnings 2015-12-23 12:19:13 -05:00
Stephen Hill
89cecd373a Fixed 'GLM_COMPILER_VC2005 is not defined' warning
This GLM compiler version isn't defined, so I just removed the legacy functions.
2015-12-23 12:18:14 -05:00
Stephen Hill
22467f00f8 Fixed "Declaration shadows a field" warning 2015-12-23 12:16:31 -05:00
Sven-Hendrik Haase
816b6b8c34 Fix wrong docs
The function this function is a helper of is using radians. In fact, glm is using radians everywhere!
2015-12-23 01:24:48 +01:00
humbletim
8c55a64fdd Fixed ldexp compilation error 2015-12-19 19:22:33 -05:00
sippeangelo
014a7f8404 This fixes #461 2015-12-16 16:03:37 +01:00
Christophe R
78f686b4be Merge pull request #455 from Karanlos/master
frustumLH compile error fix. #455
2015-12-06 19:59:17 +01:00
jan p springer
71f2b2f422 Merge remote-tracking branch 'upstream/master' 2015-12-02 20:13:33 +00:00
Adrian Krupa
8fd8c56074 Fixed frexp compilation error 2015-11-29 20:53:04 +01:00
Erik Sejersen
2edd8b8d44 frustumLH compile error fix. 2015-11-23 00:52:38 +01:00
Christophe R
0d2fd871af Merge pull request #447 from Karanlos/master
More right and left handed projection matrix support plus support for glClipControl GL_ZERO_TO_ONE #447
2015-11-22 11:43:21 +01:00
Sven-Hendrik Haase
16aba1a937 Fix docs 2015-11-22 06:48:23 +01:00
Christophe Riccio
254ea0ee24 Tentative fix for ICC errors #449 2015-11-21 11:27:09 +01:00
Erik Sejersen
8200f815bf Added left and right handedness to more projection functions and added a define for glClipControl GL_ZERO_TO_ONE 2015-11-17 14:52:50 +01:00
Christophe R
3a960f2afb Merge pull request #436 from taketwo/add-const
Add const qualifier in extractEulerAngleXYZ() #436
2015-11-17 11:01:49 +01:00
Christophe R
376732e5ae Merge pull request #437 from svenstaro/patch-1
Fix unintentional backface culling in triangle intersect #437
2015-11-17 10:58:15 +01:00
Laurie
f66c5ef004 Fixed build by adding missing scope 2015-11-07 09:08:37 +00:00
jan p springer
2547d14240 fixed: ostream operators 2015-10-29 17:56:08 +00:00
jan p springer
554999eedc merge upstream/master 2015-10-29 13:44:26 +00:00
Sven-Hendrik Haase
a75e38fb40 Remove old commented code 2015-10-23 15:58:43 +02:00
Christophe Riccio
0af2e05b1b Merge 0.9.7 branch 2015-10-22 00:32:47 +02:00
Christophe Riccio
627d36fd47 Updated GLM version 2015-10-22 00:31:15 +02:00
Christophe Riccio
85e88a366d Cygwin GCC doesn't have a C++11 STL library 2015-10-22 00:27:10 +02:00
Sven-Hendrik Haase
96b7850cab Fix unintentional backface culling in triangle intersect
This also fixes #194. The backface culling is unintentional because it is not documented anywhere and we can't give the triangle a normal so just assume the general case.
2015-10-20 04:05:58 +02:00
Sergey Alexandrov
e05935c7bd Add const qualifier in extractEulerAngleXYZ() 2015-10-18 17:41:19 +02:00
Christophe Riccio
32fc69ee11 - Added unary + operator #435 2015-10-17 04:11:52 +02:00
Christophe Riccio
5cd49977e6 Fixed build 2015-10-15 04:38:26 +02:00
Christophe Riccio
a257beb5de Added missing bvec* && and || operators 2015-10-15 04:28:08 +02:00
Christophe Riccio
560dcdbec0 Added 8bit pack and unpack to GTC_packing 2015-10-12 01:03:01 +02:00
Christophe Riccio
bb9ce516b0 Added 16bit pack and unpack to GTC_packing 2015-10-11 23:02:42 +02:00
Christophe Riccio
92a6c207bc Fixed build on C++98 compiler 2015-10-11 22:01:02 +02:00
Christophe Riccio
7f4d8c38c9 Fixed (un)packHalf 2015-10-11 21:20:37 +02:00
Christophe Riccio
04c8f05a34 Added (un)packUnorm and (un)packSnorm to GTC_packing 2015-10-10 03:04:32 +02:00
Christophe Riccio
65c8f8fcf0 Added (un)packHalf 2015-10-10 01:54:54 +02:00
Christophe Riccio
8508e099d0 Fixed compScale test 2015-10-08 23:49:43 +02:00
Christophe R.
143c4c336a Merge pull request #429 from JesseTG/jtg/static-const
Add GLM_STATIC_CONST_MEMBERS #429
2015-10-07 22:28:49 +02:00
Jesse Talavera-Greenberg
e55eb1e08b Removed ambiguity in fmat4x4 constructor 2015-10-07 16:12:45 -04:00
Jesse Talavera-Greenberg
08bf6e78c9 Renamed comp (X|Y|Z|W) template parameters in fvec4SIMD to (X|Y|Z|W)_ 2015-10-07 16:11:23 -04:00
Christophe Riccio
8814ae50c9 Fixed GTX_extended_min_max filename typo #386 2015-10-07 21:49:33 +02:00
Christophe Riccio
045e5bee1a Improved GTC_reciprocal documentation 2015-10-07 21:41:05 +02:00
Christophe Riccio
8e3e6108d5 Improved GTC_random linearRand documentations 2015-10-07 21:35:28 +02:00
Christophe Riccio
1329c64f9b Updated GLM version 2015-10-07 21:28:53 +02:00
Christophe Riccio
d0c57e7afd Revert 2015-10-07 21:06:01 +02:00
lucasb-eyer
5e994bcf39 dummy.cpp CRLF->LF 2015-10-07 20:39:20 +02:00
Christophe Riccio
a4ed6568be Fixed GTC_matrix_inverse affineInverse #192 2015-10-07 20:38:38 +02:00
Christophe Riccio
e37fe66d5e Fixed GTC_packing unpackUnorm3x10_1x2 #414 2015-10-07 20:38:20 +02:00
Christophe Riccio
06ad5a2cd4 Fixed GTC_packing unpackUnorm3x10_1x2 #414 2015-10-07 20:37:30 +02:00
Sebastian Rettenberger
6789d897d2 Fix floorMultiple/ceilMultiple for float 2015-10-07 20:34:02 +02:00
Christophe R.
5ddeedc02c Merge pull request #425 from arkana-fts/master
dummy.cpp CRLF->LF #425
2015-10-07 00:31:27 +02:00
Christophe Riccio
79ceca230f Fixed compScale 2015-10-06 01:51:52 +02:00
Jesse Talavera-Greenberg
5eb7ad5d47 Add IDENTITY constants for quat and simdQuat
- Why the hell am I not studying for the test I have tomorrow
2015-10-05 19:32:19 -04:00
Jesse Talavera-Greenberg
57e6ea071d Add simdMat4 static constants
- Tests, too
2015-10-05 19:31:17 -04:00
Jesse Talavera-Greenberg
ef320a2a2f Simplify the static const definitions for vectors and quaternions
- DRY, baby!
2015-10-05 19:30:16 -04:00
Jesse Talavera-Greenberg
9604a7549f Add IDENTITY and ZERO constants for all matrices
- Tests, too
2015-10-05 19:26:30 -04:00
Jesse Talavera-Greenberg
d1cdb46cfb Wrap tquat's, simdQuat's and simdVec4's static constants in GLM_STATIC_CONST_MEMBERS
- Also, fixed indentation
2015-10-05 18:27:07 -04:00
Jesse Talavera-Greenberg
5df08dfc78 Wrap tvec4's static constants in GLM_STATIC_CONST_MEMBERS
- Fix the indentation, too
2015-10-05 18:25:01 -04:00
Jesse Talavera-Greenberg
8be318970c Wrap tvec3's static constants in GLM_STATIC_CONST_MEMBERS
- Fixed the indentation, too
2015-10-05 18:24:31 -04:00
Jesse Talavera-Greenberg
4552ec737e Wrap tvec2's static constants in GLM_STATIC_CONST_MEMBERS 2015-10-05 18:23:18 -04:00
Jesse Talavera-Greenberg
5a60b3986b Wrap tvec1's static constants in GLM_STATIC_CONST_MEMBERS 2015-10-05 18:22:43 -04:00
lucasb-eyer
91ae754aa5 dummy.cpp CRLF->LF 2015-10-05 23:16:38 +02:00
Jesse Talavera-Greenberg
a92ed0cdf5 Add static constants to quat, simdVec4, and simdQuat
- No tests, though
2015-10-02 18:36:27 -04:00
Jesse Talavera-Greenberg
02b011651b Add static constants to vec4
- Tests, too
2015-10-02 18:34:53 -04:00
Jesse Talavera-Greenberg
25bd7014b0 Add static constants for vec3
- Tests, too
2015-10-02 18:34:17 -04:00
Jesse Talavera-Greenberg
b42a46d246 Add static constants for vec2
- Tests, too
2015-10-02 18:33:14 -04:00
Jesse Talavera-Greenberg
b8ff59a61b Add static constants for vec1
- Tests, too
2015-10-02 18:32:39 -04:00
Christophe Riccio
daaf86dcef Fixed build 2015-10-01 23:59:20 +02:00
Christophe Riccio
d23d909e6d Added type to identify matrix, vector and quaternion at compile time 2015-10-01 23:09:06 +02:00
Christophe Riccio
fa18ca7c2e Fixed GTC_matrix_inverse affineInverse #192 2015-10-01 22:20:30 +02:00
Christophe Riccio
a77d311119 Added packF3x9_E1x5 and unpackF3x9_E1x5 to GTC_packing for RGB9E5 #416 2015-10-01 00:43:37 +02:00
Christophe Riccio
7f6e60864a Fixed GTC_packing unpackUnorm3x10_1x2 #414 2015-09-29 01:25:02 +02:00
Christophe Riccio
cb5a2a86ca Fixed GTC_packing unpackUnorm3x10_1x2 #414 2015-09-28 23:47:40 +02:00
Christophe Riccio
bc326abd50 Fixed merge 2015-09-28 19:27:53 +02:00
Christophe Riccio
26f1065429 Added compScale 2015-09-28 19:23:16 +02:00
Christophe Riccio
26590ecb0b Added compScale 2015-09-28 11:30:54 +02:00
Christophe R.
518937965d Merge pull request #413 from TUM-I5/master
Fix floorMultiple/ceilMultiple for floating point values #413
2015-09-28 11:17:33 +02:00
Christophe Riccio
12f0ca520d Fixed build 2015-09-25 03:20:54 +02:00
Christophe Riccio
10e28738cc Updated GLM revision 2015-09-25 03:16:59 +02:00
Christophe Riccio
a9ab80d5fd Added compNormalize function to GTX_component_wise 2015-09-25 03:14:11 +02:00
Christophe Riccio
998feff87e Added GTX_float_normalize 2015-09-25 02:39:41 +02:00
Sebastian Rettenberger
de9e62f0a4 Fix floorMultiple/ceilMultiple for float 2015-09-23 12:03:15 +02:00
Christophe Riccio
8f39bb8730 Removed unused func_noise.* files #398 2015-09-06 22:30:17 +02:00
Christophe Riccio
a93d09be34 Fixed builtin bitscan never being used #392 2015-09-06 22:06:26 +02:00
Christophe Riccio
d8d954fca0 - Fixed builtin bitscan always used even when GLM_FORCE_PURE requested #392 2015-09-06 22:02:54 +02:00
Daniel Limberger
1c6eff28fc rename scalar parameters in vec1, vec2, vec3, and vec4 2015-09-04 16:15:35 +02:00
Christophe Riccio
d7b01eb9ad Updated revision number for upcoming release 2015-08-31 22:55:00 +02:00
Christophe Riccio
e7bae9891a Improved coding style consistency 2015-08-31 22:50:24 +02:00
Christophe Riccio
bf30816e36 - Added to_string for quat and dual_quat in GTX_string_cast #375 2015-08-31 22:34:14 +02:00
Christophe Riccio
d8f7b080d0 Fixed build 2015-08-31 22:25:12 +02:00
Christophe Riccio
3356896a3a Fixed build 2015-08-31 22:21:03 +02:00
Christophe Riccio
1d266efe20 - Improved constexpr for constant functions coverage #198 2015-08-31 22:14:45 +02:00
Christophe Riccio
f92c1219ed Fixed non-identity quaternions for equal vectors #234 2015-08-31 21:56:34 +02:00
Christophe Riccio
f28708265d Merge branch 'master' of https://github.com/g-truc/glm 2015-08-31 18:57:07 +02:00
Christophe Riccio
c10df14b58 Fixed strict alignment warnings #235 #370 2015-08-31 18:55:45 +02:00
Christophe R.
7a8b532519 Merge pull request #393 from morganbengtsson/master
Update matrix_decompose.hpp #393
2015-08-31 18:18:23 +02:00
Christophe Riccio
2f4338269d Fixed reliability issue of GLM_HAS caps #377 2015-08-31 18:14:54 +02:00
Christophe Riccio
6aabe5a07d Fixed warnings 2015-08-31 18:13:46 +02:00
Christophe Riccio
debed28149 Fixed link errors on compilers not supported default function #377 2015-08-31 18:01:51 +02:00
Morgan Bengtsson
497da9a7cd Update matrix_decompose.hpp
Changed documentation to show correct include file.
2015-08-28 22:13:05 +02:00
Christophe R
ebdd48fa6f Merge branch 'master' of https://github.com/g-truc/glm 2015-08-23 14:49:37 +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
Simon Krogmann
0092c91f42 Fix incorrect parenthesis
In VC++ 2013 this error led to a runtime exception when using
circularRand or linearRand while "Smaller Type Check" (/RTCc)
was enabled.
2015-08-09 19:08:41 +02:00
Christophe R
79f6d92c8a Added GLM_SIMD to enable automatic SIMD code generation for generic GLM types #235 #370 2015-08-09 10:50:29 +02:00
Nik Voss
d48a70d0da Fixed typo resulting in warnings when building with -Wpedantic. 2015-08-05 16:32:24 +02:00
Christophe Riccio
cedaed68f6 Updated version for final 0.9.7.0 release 2015-08-02 10:23:58 +02:00
Christophe Riccio
e0c4a71016 Clean up doxygen and source 2015-08-02 01:39:00 +02:00
Christophe Riccio
bc0f5317fd Updated documentation 2015-08-01 22:54:27 +02:00
Christophe Riccio
5437d49cf2 Renamed GTC_color to GTC_color_space 2015-08-01 21:55:28 +02:00
Christophe Riccio
d6ae2fd694 Fixed matrix conversions and added unit tests #371 2015-08-01 21:40:36 +02:00
Christophe Riccio
1e502c0919 Fixed decompose warnings #373 2015-08-01 11:35:57 +02:00
Christophe R.
37d4ca9c4c Merge pull request #368 from JesseTG/jtg/oops-sorry
Fixed some of my own metaprogramming-helper mistakes #368
2015-07-25 23:28:38 +02:00
Christophe Riccio
afa193704c Fixed interactions with GLM_FORCE_NO_CTOR_INIT and default functions #366 2015-07-25 23:23:59 +02:00
Christophe Riccio
53e494bea9 Removed GTX_multiple 2015-07-25 23:23:03 +02:00
Christophe Riccio
a56a40e1f2 Added support of defaulted functions to GLM types, to use them in unions #366 2015-07-25 21:31:51 +02:00
Jesse Talavera-Greenberg
f46249620a Add pure typedefs to the SIMD types 2015-07-25 14:28:24 -04:00
Jesse Talavera-Greenberg
a8659bb767 Remove unused value_size static methods in simdQuat and simdVec4
- They didn't even have implementations
2015-07-25 14:26:55 -04:00
Jesse Talavera-Greenberg
c2b4e2a5c0 Change the value_type of simdVec4 and simdQuat to a float
- Having it as __m128 didn't quite feel consistent with vec4/quat
2015-07-25 14:25:26 -04:00
Jesse Talavera-Greenberg
4aa385a37a Change dualquat::components to 2, not 8 2015-07-25 14:21:31 -04:00
Jesse Talavera-Greenberg
3400352e81 Reverse the mat::rows and mat::cols fields
- Oops, I mixed up the row_type and col_type typedefs
2015-07-25 14:20:04 -04:00
Jesse Talavera-Greenberg
25bad4c78e Fix wrong name for mat2::columns
- It should really be mat2::cols
2015-07-25 14:17:59 -04:00
Christophe R.
185ba74f6a Merge pull request #367 from plasmacel/master
std::hash specialization for glm::tdualquat #367
2015-07-25 01:39:49 +02:00
Christophe Riccio
f7751bfb06 Added support of defaulted functions to *vec* types #366 2015-07-25 01:24:03 +02:00
Thom de Villa
3b9e90c7b6 std::hash specialization for glm::tdualquat 2015-07-24 17:58:15 +02:00
Christophe Riccio
063c5c7367 Fixed quaternion pow #346 2015-07-24 02:11:55 +02:00
Christophe Riccio
f602c8e7ad Updated _MAYBE to follow GLM conventions 2015-07-24 02:02:24 +02:00
Christophe R.
1b9872138d Merge pull request #358 from JesseTG/jtg/preprocessor-cleanup
Simplify some preprocessor declarations #358
2015-07-24 01:52:26 +02:00
Dustin Biser
386357f612 Update norm.hpp
Fixed documentation typo for distance2 functions
"Returns the squared distance between p0 and p1, i.e., length(p0 - p1)"
changed to
"Returns the squared distance between p0 and p1, i.e., length2(p0 - p1)"
2015-07-22 11:31:45 -04:00
Jesse Talavera-Greenberg
9cc7dc1763 Simplify GLM_FORCE_EXPLICIT_CTOR declarations
- Instead of wrapping the declarations, use a macro for the keyword "explicit"
2015-07-20 20:18:24 -04:00
Jesse Talavera-Greenberg
c2078afc12 Simplify the constexpr declarations of the GLM_META_PROG_HELPERS
- No repetition
- Half the size
2015-07-20 20:15:45 -04:00
Jesse Talavera-Greenberg
6d1ddc8980 Define MAYBE macros for explicit and constexpr
- So we can wrap less code in macros
2015-07-20 20:11:33 -04:00
Christophe Riccio
ac21d7bdad Fixed use of libstdc++ with Clang #351 2015-07-19 17:59:21 +02:00
Christophe Riccio
9e2f6dfc7f Fixed Intel compiler build error on Linux #354 2015-07-19 17:38:41 +02:00
Christophe Riccio
76bd630bbd Fixed isfinite with C++98 compilers #343 2015-07-19 16:32:36 +02:00
Christophe Riccio
056d6bd95e fixed typo #344 2015-07-19 15:55:44 +02:00
Christophe Riccio
dcfddb75b8 Updated list of compiler versions 2015-07-19 02:36:53 +02:00
Christophe Riccio
9539174494 Fixed build 2015-07-19 02:07:55 +02:00
Christophe Riccio
02d7be8531 Improved packing code to give vectorization a chance 2015-07-19 01:20:20 +02:00
Christophe Riccio
6887df4d39 Merge branch 'fix-type-punning' of https://github.com/cneumann/glm into union 2015-07-19 01:08:04 +02:00
Christophe Riccio
c90f7b0973 Fixed build 2015-07-19 01:04:07 +02:00
Christophe Riccio
38c9cd6cba Added GLM_META_PROG_HELPERS #350 2015-07-19 00:25:33 +02:00
Jesse Talavera-Greenberg
38f63d3943 Add static rows, cols, prec, and components fields to all matrix types 2015-07-03 15:21:11 -04:00
Jesse Talavera-Greenberg
5d05c8c1f7 Correct component amounts for simqQuat and simdVec4 2015-07-03 15:00:37 -04:00
Jesse Talavera-Greenberg
a9c26d065b Add static components and prec members to all vector and quaternion types 2015-07-03 14:57:46 -04:00
Christophe Riccio
98a736bcf1 Merge pull request #341 from morganbengtsson/master
Fixed Small documentation mistake in intersect.hpp, plane instead of triangle. #341
2015-06-28 14:25:07 +02:00
Christophe Riccio
0141954756 Added mirror repeat 2015-06-27 20:12:27 +02:00
Christophe Riccio
ff1f50bb15 Added GTX_wrap 2015-06-27 19:36:03 +02:00
Christophe Riccio
08eedc6209 Added experiment for new fastCos. More sRGB tests. 2015-06-27 18:36:17 +02:00
Carsten Neumann
2ee6151a40 Use unions for type punning
Fixes #334
2015-05-18 12:20:55 -05:00
morgan
d69aa08187 Small documentation mistake in intersect.hpp, plane instead of triangle. 2015-05-16 12:29:37 +02:00
Christophe Riccio
ea36f44294 Fixed perspective fovy argument documentation #327 2015-05-01 23:46:09 +02:00
Christophe Riccio
303a523325 Fixed C++98 build 2015-05-01 20:49:58 +02:00
Christophe Riccio
df8cd22706 Fixed specifier removal by 'std::make_pair<>' #333 2015-05-01 20:01:07 +02:00
Christophe Riccio
7f291cdbeb Renamed readme.md 2015-05-01 15:05:16 +02:00
jan p springer
e590111375 added: 'operator<<(std::pair<tmat4x4<T,P>, tmat4x4<T,P>>)' routed to 'operator<<(std::pair<tmat4x4<T,P> const, tmat4x4<T,P> const>)' to avoid specifier removal by 'std::make_pair<>' and follow-up type-deduction problems; see [http://stackoverflow.com/questions/29985791/] 2015-05-01 13:42:56 +01:00
Christophe Riccio
e1c3c531dd Fixed warnings 2015-03-16 23:29:13 +01: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
Christophe Riccio
61e9b88db0 Merge pull request #320 from plasmacel/master
Add std::hash support for glm types (with precision support) #320
2015-03-15 22:49:29 +01:00
Christophe Riccio
a8203ac034 Fixed multi-line comment warning in g++. #315 2015-03-15 21:45:57 +01:00
Christophe Riccio
ee222f4bfc Merge pull request #315 from BryceMehring/master
Fixed multi-line comment warning in g++. #315
2015-03-15 21:40:17 +01:00
Christophe Riccio
14c3673b39 Merge pull request #311 from jzrake/master
Add functions eulerAngleXYZ and extractEulerAngleXYZ #311
2015-03-15 21:34:52 +01:00
Christophe Riccio
05eac3c8b2 Merge pull request #306 from jcajka/master
Fixed (u)int64 MSB/LSB handling on BE archs #306
2015-03-15 21:27:35 +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
BryceMehring
47116d8c28 Fixed multi-line comment warning in g++. 2015-02-22 14:32:55 -06:00
Aaron Cooper
982e395331 Accidentally changed spaces to tabs. Reverting that change. 2015-02-21 14:43:07 -05:00
Aaron Cooper
490cfbea3a Added left handed functions for perspective, perspectiveFov, and lookAt. 2015-02-21 14:39:45 -05:00
Christophe Riccio
dc86af5d29 Merge 0.9.6 2015-02-19 12:04:37 +01:00
Christophe Riccio
7e6b502639 Fixed default precision for quat and dual_quat type #312 2015-02-19 11:57:35 +01:00
plasmacel
b94aa556c5 add default precision to quat type 2015-02-19 11:51:41 +01:00
plasmacel
62658e8dce add default precision to quat type 2015-02-17 07:05:37 +01:00
Jonathan Zrake
d3313421c6 Add functions eulerAngleXYZ and extractEulerAngleXYZ 2015-02-15 14:39:02 -05:00
Christophe Riccio
6af33a31fd Merged 0.9.6 branch 2015-02-15 16:35:46 +01:00
Christophe Riccio
7b9c7008eb Updated version 2015-02-15 16:30:39 +01:00
Christophe Riccio
567157fc8c Updated version 2015-02-15 16:23:13 +01:00
Christophe Riccio
9a8cffd83a Fixed Android doesn't have C++ 11 STL #284 2015-02-15 15:33:14 +01:00
Christophe Riccio
042270d049 Added 'fmod' overload to GTX_common with tests, Removed integer specification for 'mod' in GTC_integer #308 2015-02-15 12:38:23 +01:00
Christophe Riccio
7844332816 Fixed memory corruption (undefined behaviour) #303 2015-02-14 13:56:48 +01:00
Christophe Riccio
f1d4c39622 Fixed memory corruption (undefined behaviour) #303 2015-02-14 01:11:10 +01:00
Christophe Riccio
594380dcb6 Merge 0.9.6 2015-02-14 00:52:30 +01:00
Christophe Riccio
49cf8d8964 Disable GLM_HAS_TRIVIAL_QUERIES 2015-02-14 00:51:10 +01:00
Christophe Riccio
7751bd4af4 Fixed MinGW32 build 2015-02-14 00:19:47 +01:00
Christophe Riccio
d33974afa6 Fixed warning 2015-02-13 23:24:12 +01:00
Pavel Krajcevski
2ba1ae95c2 Remove testing #ifdefs 2015-02-13 00:30:25 -08:00
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