Commit Graph

2686 Commits

Author SHA1 Message Date
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
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
Christophe Riccio
47a6947736 Make detail::functor1 capable to return a different argument value_type than the argument value_type 2014-10-20 02:22:53 +02:00
Christophe Riccio
bf08a0e234 Replace function instanciations with macros by templates 2014-10-20 02:03:48 +02:00
Christophe Riccio
0042517167 Replace function instanciations with macros by templates 2014-10-20 00:34:59 +02:00
Christophe Riccio
0acc67df40 Hide into detail namespace SIMD internal 2014-10-19 18:28:53 +02:00
Christophe Riccio
790f520488 Clean up coding style 2014-10-19 18:15:03 +02:00
Christophe Riccio
f2383340cf Clean up coding style 2014-10-19 17:09:47 +02:00
Christophe Riccio
bcd07b50f3 - Added GLM_FORCE_NO_CTOR_INIT 2014-10-19 03:33:14 +02:00
Christophe Riccio
0813facc58 Updated compiler detection code 2014-10-18 22:43:15 +02:00
Christophe Riccio
d298b34c19 Add detail namespace for number_of_elements 2014-10-18 13:23:05 +02:00
Christophe Riccio
14d86e5718 Removed unsupported compiler defines 2014-10-18 13:20:05 +02:00
Christophe Riccio
327c7917fb Fixed cases of unspecialized simd 2014-10-18 02:34:20 +02:00
Christophe Riccio
8a1bf4410b Completed GTC_vec1 2014-10-15 02:53:46 +02:00
Christophe Riccio
6d1610ce0d Fixed swizzle operators with anonymous unions code path 2014-10-13 22:48:11 +02:00
Christophe Riccio
19e239d466 Fixed core_setup_message test with Visual C++ 2014-10-12 20:57:41 +02:00
Christophe Riccio
85037a164f Fixed GLM_FORCE_SIZE_FUNC and added test #245 2014-10-12 20:50:50 +02:00
Christophe Riccio
b2ce1a726b Clean up formatting for components and swizzle code 2014-10-12 19:58:46 +02:00
Christophe Riccio
093b8042f7 Fixed build 2014-10-12 17:24:02 +02:00
Christophe Riccio
857e7f5075 Fixed build 2014-10-12 02:52:19 +02:00
Christophe Riccio
893de94bb1 Fixed build 2014-10-12 02:51:34 +02:00
Christophe Riccio
e6a890454d Fixed lack of consistency of quat and dualquat constructors 2014-10-12 02:32:32 +02:00
Christophe Riccio
284ba46dae Fixed spaces 2014-10-12 02:32:04 +02:00
Christophe Riccio
8cb9328e11 Additional fix for GLM_FORCE_SIZE_FUNC #245 2014-10-12 02:11:02 +02:00
Christophe Riccio
d06db1133d Updated GTX_associated_min_max with vec1 support 2014-10-12 02:05:27 +02:00
Christophe Riccio
c2d542562e Fixed GLM_FORCE_SIZE_FUNC support overlook #245. Added uninitiallized constructor to quaternion. Fixed lack of conscistency or quaternion constructors with other types. Various uninitilized constructor optimizations 2014-10-12 01:24:28 +02:00
Christophe Riccio
2df7addc05 Fixed build errors #250 2014-10-11 21:53:53 +02:00
Christophe Riccio
b3b3069491 Updated preprocessor options 2014-10-11 21:04:12 +02:00
Christophe Riccio
75939a7960 Fixed GTX_string_cast to support for integer types #249 2014-10-10 01:21:04 +02:00
Christophe Riccio
ca4ed31fb6 Fixed *vec1 scalar constructor 2014-10-06 23:35:26 +02:00
Christophe Riccio
3556f4ad85 Clean up 2014-10-06 23:06:34 +02:00
Christophe Riccio
291708ce07 Added GLM_FORCE_SIZE_FUNC to replace .length() by .size() #245 2014-10-05 22:12:25 +02:00
Christophe Riccio
03a01880b0 Clean up move and initialiazer lists experiments 2014-10-05 20:06:35 +02:00
Christophe Riccio
f9484a6e9f - Moved template types from 'detail' to 'glm' namespace #239, #244 2014-10-05 19:37:07 +02:00
Christophe Riccio
38399875f4 Merge pull request #238 from SiliconKiwi/patch-1
Closest point algorithm can be easily extended to support 2d points #238
2014-10-05 16:09:10 +02:00
Christophe Riccio
0684a5e2c6 GTX_range is only available for C++11 compilers #240 2014-10-05 14:42:17 +02:00
Christophe Riccio
7ab7d4beb8 Merge pull request #240 from Jaxan/range
Range support #240
2014-10-05 14:24:19 +02:00
Christophe Riccio
a00fc3fdf4 Enable only GLM_GTX_scalar_multiplication for C++11 compiler #242 2014-10-05 13:26:02 +02:00
Christophe Riccio
36af05b775 Merge pull request #242 from Jaxan/scalars
Scalar multiplication #242
2014-10-05 12:11:04 +02:00
Christophe Riccio
1e389f8efa Fixed implicit conversion from another tvec2 type to another tvec2 #241 2014-10-05 10:34:19 +02:00
Joshua Moerman
62ac07815c Adds scalar multiplication for all types 2014-09-22 10:03:18 +02:00
Joshua Moerman
77c704e210 Adds range support 2014-09-19 16:27:23 +02:00
Joshua Moerman
72a6f35a8e Fixes typo 2014-09-19 15:08:26 +02:00
Christophe Riccio
a08aca94f3 Progress on vec1 support 2014-09-16 02:31:07 +02:00
SiliconKiwi
b5409fb728 Update closest_point.inl 2014-09-16 09:11:34 +12:00
SiliconKiwi
ad85092433 Update closest_point.hpp
Algorithm works fine with 2d points as well...
2014-09-16 09:09:39 +12:00
Christophe Riccio
ec513f4466 Added GTX_common with isdenomal #223 2014-09-07 20:53:35 +02:00
Christophe Riccio
cccf2af0a2 Added vec3 slerp (#237) 2014-09-07 20:06:59 +02:00
Christophe Riccio
0d42f4a320 Added vec3 slerp #237 2014-09-07 19:56:24 +02:00
Christophe Riccio
4649717f45 Fixed GCC build #228 2014-09-07 18:32:00 +02:00
Christophe Riccio
3d399aaaca Remove useless std::move, #219 2014-09-07 17:14:39 +02:00
Christophe Riccio
0613b5c0f1 Limited extended integer type redifinition (#233) 2014-09-07 01:17:20 +02:00
Christophe Riccio
bfa893b957 Fixed signed integer and float linearRand results #230 2014-09-07 00:57:21 +02:00
Christophe Riccio
5f7862ebec Improved linearRand: support precision and integers (#230) 2014-09-06 21:52:51 +02:00
Christophe Riccio
e419448539 Fixed compile problems with glm::max( vec, int ) #232 2014-09-06 02:24:50 +02:00
Christophe Riccio
ac3c2e37f1 Rely on STL functions for GLM functions using the same prototype #233 2014-09-06 01:45:13 +02:00
Christophe Riccio
4a701c6760 Limited extended integer type redifinition (#233) 2014-09-01 04:27:55 -04:00
Christophe Riccio
90acd7236d Merge branch '0.9.5' 2014-08-31 22:28:21 -04:00
Christophe Riccio
041276c93d Fix 'nextafter*' for android build issue. #217 2014-08-31 22:25:40 -04:00
Christophe Riccio
a614e5da63 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2014-08-31 22:18:39 -04:00
Christophe Riccio
eabeb0471b Merge branch '0.9.6' 2014-08-31 18:37:14 -04:00
Christophe Riccio
67c62d8b1c Merge branch '0.9.6' of https://github.com/g-truc/glm into 0.9.6 2014-08-31 18:12:53 -04:00
Christophe Riccio
3b7aadc2e3 Added initial commit for GLM_GTX_matrix_decompose #227 2014-08-31 18:12:38 -04:00
Christophe Riccio
f916339ca7 Rely on C++11 to implement isinf and isnan 2014-08-04 01:18:34 +02:00
Christophe Riccio
96ef6ae9ba Fixed infinite loop in isfinite function with GCC #221 2014-08-04 01:00:49 +02:00
Christophe Riccio
2b747cbbad Removed last references to GLM_FORCE_RADIANS 2014-08-04 00:10:12 +02:00
Christophe Riccio
fa6bec2f3d Added swizzle contructor tests 2014-08-03 23:40:45 +02:00
Christophe Riccio
a0743f94aa Added full tvec1 support to tvec2 2014-07-29 02:42:18 +02:00
Christophe Riccio
d722b398c9 Added scalar conversion constructor 2014-07-28 22:08:09 +02:00
Christophe Riccio
666475a84c Fixed VC14 compiler warnings 2014-07-18 00:59:07 +02:00
Christophe Riccio
cff845c2b4 Use pragma once 2014-07-14 01:48:27 +02:00
Christophe Riccio
7659e901c9 Fixed merge with 0.9.5 2014-06-28 21:26:24 +02:00
Christophe Riccio
d84fa89cb8 Fixed missing value_type for dual quaternion, Fixed return type of dual quaternion length 2014-06-28 21:08:53 +02:00
Christophe Riccio
9a3f42279b - Fixed std::nextafter not supported with C++11 on Android #213 2014-06-28 20:56:12 +02:00
Christophe Riccio
7459161364 Updated revision fornext release 2014-06-28 20:45:45 +02:00
Christophe Riccio
6f59e64a55 Use C++ cast 2014-06-22 02:03:31 +02:00
Christophe Riccio
24cd06552c Fixed GLM_GTX_io coding style 2014-06-21 16:23:06 +02:00
Christophe Riccio
694416701a Replaced C casts by C++ casts 2014-06-21 15:42:10 +02:00
Christophe Riccio
9b6eecc739 Fixed corner cases in exp and log functions for quaternions #199 2014-06-21 15:38:49 +02:00
Christophe Riccio
08ff93925f Fixed std::nextafter not supported with C++11 on Android #213 2014-06-21 15:07:03 +02:00
Christophe Riccio
2b38221f80 Fixed build 2014-06-21 14:02:51 +02:00
Christophe Riccio
b69356cadb Resolve aliasing issues #152, #212 2014-06-21 07:41:30 -04:00
Christophe Riccio
16124f0742 Removed useless references 2014-06-21 07:25:52 -04:00
Groove
b025413a2d Resolve aliasing issue 2014-06-21 07:04:55 -04:00
Christophe Riccio
f32cab2842 Remove useless references 2014-06-21 13:01:54 +02:00
Christophe Riccio
f310f941c6 Fixed strict aliasing issues #212 2014-06-21 12:14:39 +02:00
Christophe Riccio
103a74f7e1 clean up 2014-06-21 11:53:28 +02:00
Christophe Riccio
3651530ff0 Fixed build 2014-06-21 11:50:42 +02:00
Christophe Riccio
7097e4c7c8 Fixed tweakedInfinitePerspective #208 and added user-defined epsilon to tweakedInfinitePerspective 2014-06-20 22:13:06 +02:00
Christophe Riccio
ae026e64d3 Merge 0.9.5 2014-06-20 20:10:12 +02:00
Christophe Riccio
7fe8a1944c Fixed fastDistance ambiguity #215 2014-06-20 01:09:50 +02:00
Christophe Riccio
c440b9515a Merge io for GLM types #144 2014-06-15 22:52:23 +02:00
Christophe Riccio
a1a861a4a6 Merge pull request #210 from moushkka/0.9.5
Fixed linear interpolation when cosTheta is close to 1 in quaternion slerp #210
2014-06-12 19:27:22 +02:00
Christophe Riccio
c506b43d49 Quaternion vector rotation error. #209 2014-06-12 00:29:56 +02:00
Christophe Riccio
ea45a7b966 Fixed orientate3 function #207 2014-06-11 22:47:37 +02:00
Christophe Riccio
c3c180559a Fixed instruction set detection with Clang #158 2014-06-11 16:56:16 +02:00
Joel Nises
e610e9446e fixed bug in quaternion slerp 2014-06-05 17:48:53 +02:00
Florian Euchner
f8fa1513fa Fix missing @endcond 2014-05-24 17:07:52 +02:00
Christophe Riccio
4da58d88d4 Optimized Quaternion vector rotation #205 2014-05-23 23:09:32 +02:00
Christophe Riccio
a2f4df2b1d Fixed builtin GLM_ARCH_SSE4 #204 2014-05-23 22:23:27 +02:00
Christophe Riccio
7b03f18e32 Merge pull request #201 from dachziegel/0.9.5
added GLM_FUNC_QUALIFIER to be able to use in CUDA #201
2014-05-06 23:21:27 +02:00
Christophe Riccio
affd405b37 Fixed glm::isinf and glm::isnan for with Android NDK 9d #191, take 2 2014-05-06 22:45:18 +02:00
Christophe Riccio
e04ded9e39 Fixed glm::isinf and glm::isnan for with Android NDK 9d #191 2014-05-05 23:08:49 +02:00
dachziegel
d19766fcbf added GLM_FUNC_QUALIFIER to be able to use in CUDA 2014-05-05 13:45:36 +02:00
Christophe Riccio
842cea8747 Merge 0.9.5 2014-05-04 21:07:05 +02:00
Christophe Riccio
a2b70690c1 Added test gor issue #199 2014-05-04 17:34:34 +02:00
Christophe Riccio
d77bfa1a70 Fixed GTX_color_space - saturation #195 2014-05-04 17:20:40 +02:00
Christophe Riccio
0cbef584e3 Merge pull request #189 from rleigh-dundee/cmake-install
cmake: Several fixes to the build system #189
2014-05-04 16:51:43 +02:00
Christophe Riccio
9a3d7a115c Fixed build error #190 2014-05-04 16:47:06 +02:00
Christophe Riccio
e5ee35323a Fixed non-utf8 character #196 2014-05-04 16:34:46 +02:00
jan p springer
9ecc30c5dd added: missing value_type typedef 2014-04-15 18:37:34 +01:00
Roger Leigh
34bd28e8c6 cmake: Don't build tests when not testing 2014-04-15 10:46:45 +01:00
jan p springer
37e5868200 fixed: warning wrt. strict aliasing on gcc 4.8.2/clang3.3 2014-04-14 00:13:20 +01:00
jan p springer
ae691ce39a commented out already declred types (in glm/fwd.hpp) 2014-04-14 00:12:38 +01:00
jan p springer
478dc697ff fixed: compile problems w/ non-existent header files 2014-04-14 00:11:25 +01:00
Christophe Riccio
10778448ef Fixed merge 2014-04-02 01:31:36 +02:00
Christophe Riccio
6c22a0b82f Updated version for 0.9.5.4 2014-04-02 01:23:19 +02:00
Christophe Riccio
682979ddd8 Fixed next_float for double and fixed ULP tests 2014-04-01 23:58:41 +02:00
Christophe Riccio
90ad883d9e Added glm.g-truc.net code samples 2014-04-01 22:38:43 +02:00
Christophe Riccio
a5d2a63ef3 - Added workaround for a CUDA compiler bug (#186, #185) 2014-04-01 01:20:03 +02:00
Christophe Riccio
e33136538d - Fixed eulerAngle*** not consistent for right-handed coordinate system (#173) 2014-03-31 23:50:15 +02:00
David Reid
04d9fa2d45 Fix simd_quat build. 2014-03-21 18:49:27 +10:00
Christophe Riccio
3f327d5e70 Fixed usubBorrw 2014-03-16 12:33:00 +01:00
Christophe Riccio
00e860eeee Fixed missing bitfieldInterleave definisions 2014-03-16 11:53:58 +01:00
Christophe Riccio
0b73091c7f Fixed aliasing warnings 2014-03-16 11:15:56 +01:00
Christophe Riccio
658d7e2788 Fixed strict aliasing warnings in GCC 4.8.1 / Android NDK 9c (#152) 2014-03-16 03:08:56 +01:00
Christophe Riccio
693c1ddbc8 Merge 0.9.5 branch 2014-03-16 02:59:57 +01:00
Christophe Riccio
4b9e2d4028 Fixed warnings 2014-03-16 02:53:47 +01:00
Christophe Riccio
899f388921 Fixed CUDA issues (#169, #168, #183, #182) 2014-03-16 02:39:36 +01:00
Christophe Riccio
efd4087b1c Fixed int used instead of glm::length_t 2014-03-15 22:33:25 +01:00
Christophe Riccio
db09ecfc41 Fixed bitfieldInterleave for 4 components #175 2014-03-15 22:24:43 +01:00
Christophe Riccio
0d8d5af8dd Fixed CUDA_VERSION not being declared #182 2014-03-15 21:59:22 +01:00
Christophe Riccio
3c562d534f Merge branch '0.9.6' of https://github.com/g-truc/glm into 0.9.6 2014-03-15 21:49:18 +01:00
Christophe Riccio
ea87e50c59 Merge branch '0.9.5' into 0.9.6 2014-03-15 21:45:47 +01:00
Christophe Riccio
eaf3cf3056 Added missing GLM_FUNC_DECL 2014-03-15 21:45:28 +01:00
Christophe Riccio
2e90c3e117 Merge pull request #183 from dachziegel/0.9.6
added GLM_FUNC_DECL to avoid nvcc warnings #183
2014-03-15 19:52:27 +01:00
Christophe Riccio
19d2919ec3 Fixed version #179 2014-03-15 19:49:26 +01:00
dachziegel
9fddf6225b include <cuda.h> to make sure CUDA_VERSION is defined 2014-03-15 11:29:01 +01:00
dachziegel
2536c4c6b6 added GLM_FUNC_DECL to avoid nvcc warnings 2014-03-15 11:04:12 +01:00
Christophe Riccio
ce431012c9 Fix merge 2014-02-25 21:00:25 +01:00
Miguel Ángel Pérez Martínez
7cf0e87526 Added trigonometric.hpp dep to matrix_transform_2d.inl 2014-02-20 21:58:11 -03:00
Miguel Ángel Pérez Martínez
1644912f7d Added GTX_matrix_transform_2d 2014-02-20 21:51:33 -03:00
Christophe Riccio
016cce7bf1 Fixed GTX_raw_data code dependency 2014-02-19 02:10:36 +01:00
Christophe Riccio
43691702e1 Fixed GTX_raw_data code dependency 2014-02-19 02:09:09 +01:00
Christophe Riccio
13920db617 Fixed instruction set detection with GCC 2014-02-14 01:37:35 +01:00
Christophe
3459fcfbc1 Fixed instruction set detection on GCC 2014-02-13 21:02:11 +01:00
Christophe Riccio
e606edf43b Added instruction set auto detection with Visual C++ using _M_IX86_FP - /arch compiler argument 2014-02-09 16:25:36 +01:00
Christophe Riccio
2b17a90859 Fixed declaration and definition mismatch 2014-02-08 20:49:34 +01:00
Christophe Riccio
7ce6df4078 Fixed sqrt ambiguity 2014-02-08 20:21:24 +01:00
Christophe Riccio
31ec3eed97 Clean up initializer list code. 2014-02-08 19:08:09 +01:00
Christophe Riccio
4e444fed19 Fixed GLM_GTC_constants description brief (#162) 2014-02-08 14:16:23 +01:00
Christophe Riccio
a8fd81850f Tentative fix for strict aliasing warning in GCC 4.8.1 / Android NDK 9c (#152) 2014-02-08 14:10:00 +01:00
Christophe Riccio
98a0d9e00e Merge pull request #163 from patzy/0.9.5
Fix dot product clamp range for vector angle functions. (#163)
2014-02-08 13:45:22 +01:00
Christophe Riccio
6aa34be6ad Fixed GLM_FORCE_RADIANS with <glm/ext.hpp> build error (#165) 2014-02-08 13:43:32 +01:00
Christophe Riccio
a310855d23 Fixed undefined reference to fastInverseSqrt (#161) 2014-02-08 13:34:40 +01:00
Christophe Riccio
1d981dd344 Fixed initializer list ambiguity (#159, #160) 2014-02-08 12:40:34 +01:00
Morgan Veyret
32e57ce8ff Fix dot product clamp range for vector angle functions. 2014-02-01 21:05:44 +01:00
Christophe Riccio
638d49b549 Added static assert to test the argument 'a' type of 'mix' function 2014-01-18 03:26:51 +01:00
Christophe Riccio
49cc8e83e4 Merge 2014-01-18 03:19:46 +01:00
Christophe Riccio
926c8d159c Fixed mix function link error 2014-01-18 03:15:54 +01:00
Christophe Riccio
d3b8b2b64e Added move contructors and assignment operators (#141) 2014-01-14 22:51:04 +01:00
Christophe Riccio
6a3e1e9c35 Updated message 2014-01-14 20:32:10 +01:00
Christophe Riccio
66efbcc597 Merge branch '0.9.5' into 0.9.6 2014-01-14 09:27:28 +01:00
Christophe Riccio
14c1c91f77 Clean up 2014-01-14 09:27:17 +01:00
Christophe Riccio
dd272c52ee Fixed non power of two matrix products 2014-01-13 23:41:11 +01:00
Christophe Riccio
c3e4881833 Fixed warnings with the Android NDK 9c (#156) 2014-01-12 22:48:57 +01:00
Christophe Riccio
022a6f3294 Merge 0.9.5 2014-01-11 23:52:32 +01:00
Christophe Riccio
9a3781d99a Started GLM 0.9.5.2 2014-01-11 23:51:12 +01:00
Christophe Riccio
8a5603342c Merge 0.9.5 2014-01-11 23:49:08 +01:00
Christophe Riccio
6335627796 Fixed build 2014-01-11 23:23:21 +01:00
Christophe Riccio
01ac9e9b33 Fixed build 2014-01-11 23:21:54 +01:00
Christophe Riccio
9f81728602 Fixed outerProduct return type (#155) 2014-01-11 22:35:19 +01:00
Christophe Riccio
aeba3c6fe7 Quiet most GLM_FORCE_RADIANS messages 2014-01-11 21:12:53 +01:00
Christophe Riccio
3394af0cf2 Fixed build on GCC 2014-01-11 19:45:40 +01:00
Christophe Riccio
f2bce9c8fa Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2014-01-11 16:44:34 +01:00
Christophe Riccio
90a249b5ff Optimized matrix inverse and division code (#149) 2014-01-11 16:44:15 +01:00
Tom Cumming
14a7c56abd Ray plane intersection function 2014-01-07 10:54:00 +00:00
Christophe Riccio
efdfa577ee defaultp is an enum, alias of highp (#150) 2014-01-06 00:48:10 +01:00
Christophe Riccio
ccb25c84c7 Update copyright year 2014-01-04 22:32:28 +01:00
Christophe Riccio
bd8836e53b Merge branch '0.9.5' into 0.9.6 2014-01-04 22:29:45 +01:00
Dustin Biser
00f99d392c Remove unncessary divisions for mat inverses 2014-01-04 15:11:16 -05:00
Christophe Riccio
aa26672da1 Fixed inverse link error when using namespace glm; (#147) 2014-01-04 16:34:11 +01:00
Christophe Riccio
6f096fbb31 Fixed vector and matrix queries 2014-01-04 14:57:59 +01:00
Christophe Riccio
06ac77dad4 Fixed declaration and definision mismatches (#148) 2014-01-04 13:55:37 +01:00
Christophe Riccio
9edd8aacf0 Remove is_vector 2014-01-04 13:47:30 +01:00
Christophe Riccio
b96a26e9e2 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2014-01-04 13:43:08 +01:00
Christophe Riccio
aed7317408 Fixed declaration and definision mismatches (#148) 2014-01-04 13:42:49 +01:00
Christophe Riccio
19ad72840f Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2014-01-04 13:27:24 +01:00
Christophe Riccio
6ed8c3dbb3 Added vectorized implementation of fast inversesqrt 2014-01-04 13:27:06 +01:00
Christophe Riccio
c6896064ef Fixed rotate function declaration for quat 2014-01-04 12:54:27 +01:00
Christophe Riccio
4f2d7a97e0 Merge 2014-01-01 14:05:48 +01:00
Christophe Riccio
9b57315681 Fixed mismatch of GTC_packing declaration and definition prototypes 2013-12-28 19:14:11 +01:00
Christophe Riccio
775c6136fc Fixed error 'inverse' is not a member of 'glm' from glm::unProject (#146) 2013-12-27 19:23:44 +01:00
Christophe Riccio
78d487b482 Added ULP comparison between lowp and highp for inversesqrt 2013-12-27 02:20:53 +01:00
Christophe Riccio
8a023f7767 Removed GTX_int_10_10_10_2, replaced by GTC_packing functions 2013-12-27 01:32:39 +01:00
Christophe Riccio
d252dd243b Added possible static_cast conversion of GLM types (#72) 2013-12-27 00:49:53 +01:00
Christophe Riccio
1b36eb7603 Removed GLM_FORCE_RADIANS 2013-12-26 20:26:31 +01:00
Christophe Riccio
0d5deadf02 Removed GLM_FORCE_RADIANS, now it's the default behaviour 2013-12-26 19:15:48 +01:00
Christophe Riccio
6d6c56f211 Merge branch '0.9.5' into 0.9.6 2013-12-26 18:59:45 +01:00
Christophe Riccio
1909f512e7 Deprecated degrees, display a message for each function using it. 2013-12-26 18:58:44 +01:00
jan p springer
39179ba1ad un/formatted() usage to un/formatted 2013-12-26 15:15:53 +00:00
Christophe Riccio
d01630079c Fixed Visual C++ vec4 simd specification code path 2013-12-26 13:39:04 +01:00
Christophe Riccio
5f1bb47bf2 Merge branch '0.9.5' into 0.9.6 2013-12-26 13:15:20 +01:00
Christophe Riccio
07a1abdfb3 Added vec4 SSE2 specializations 2013-12-26 13:03:26 +01:00
Christophe Riccio
66ff530367 Merge branch '0.9.6' of https://github.com/g-truc/glm into 0.9.6 2013-12-26 11:42:58 +01:00
Christophe Riccio
d9f5e07641 Concept prof for vec4 SIMD specialication 2013-12-26 11:42:38 +01:00
Christophe Riccio
6b2ecaaf42 Clean up 2013-12-26 02:46:34 +01:00
Christophe Riccio
7fc5d21bbf Fixed build 2013-12-26 01:24:04 +01:00
Christophe Riccio
d68fd2d97e Fixed space characters 2013-12-26 00:32:09 +01:00
Christophe Riccio
13676679ab Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-12-26 00:25:39 +01:00
Christophe Riccio
5775879cfd Merge pull request #145 from jsb/0.9.5
angle and orientedAngle sometimes return NaN values
2013-12-25 15:25:08 -08:00
Christophe Riccio
0de006a82c Updated version for next release 2013-12-26 00:20:08 +01:00
Christophe Riccio
ddd1efd5a7 Removed deprecated files 2013-12-26 00:06:15 +01:00
Christophe Riccio
792e5ff74f Fixed ext.hpp 2013-12-25 23:32:35 +01:00
Christophe Riccio
fd256dfaa8 Updated GLM manual with per feature headers. Fixed io. 2013-12-25 23:21:46 +01:00
Christophe Riccio
e9cb71e8b6 Fixed io build 2013-12-25 17:56:03 +01:00
Christophe Riccio
48fcbd6ec4 Fixed warnings on GCC 2013-12-25 17:44:44 +01:00
Christophe Riccio
4ca881697d Fixed build with GCC 4.7 C++11 2013-12-25 16:02:00 +01:00
Christophe Riccio
7fd1cdc477 Fixed build with C++98 compilers 2013-12-25 15:34:38 +01:00
Christophe Riccio
edbe66cb00 Fixed build on MacOS 2013-12-25 07:41:45 +01:00
Christophe Riccio
590c2780d9 Refactored outerProduct code 2013-12-25 07:11:52 +01:00
Christophe Riccio
c03ebcc688 Refactored transpose function 2013-12-25 06:30:52 +01:00
Christophe Riccio
9b5bec81f2 Factorize glm::inverse code for matrices 2013-12-25 05:58:11 +01:00
Christophe Riccio
dde5178b84 Fixed warnings 2013-12-25 05:55:54 +01:00
Christophe Riccio
18d67da79c Reduced dependencies of GTX_component_wise 2013-12-25 05:32:47 +01:00
Christophe Riccio
9f8112f93a Reduced dependencies of GTX extensions. Removed some deprecated code. 2013-12-25 04:16:08 +01:00
Christophe Riccio
950eaa45cb Reduced dependencies for GTC extensions 2013-12-24 13:45:14 +01:00
Christophe Riccio
6f7eb97b87 Move content of core directory into detail directory. Reduced dependencies to glm.hpp. 2013-12-24 10:41:59 +01:00
Christophe Riccio
0a3b2bf11f Added headers for including subset of functions 2013-12-24 09:24:03 +01:00
Christophe Riccio
510abedf2b Added glm::length and removed col_size and row_size 2013-12-24 09:14:51 +01:00
Christophe Riccio
dc2b2cd5f6 _inverse is now private 2013-12-24 07:22:02 +01:00
Christophe Riccio
aab47b3587 Improved GLM messages enabled with GLM_MESSAGES 2013-12-24 06:57:21 +01:00
Christophe Riccio
ca2463d5f2 Added per feature headers and added length_t and GLM_FORCE_SIZE_T_LENGTH 2013-12-24 06:43:25 +01:00
Christophe Riccio
5ef31a6e18 Added per feature headers 2013-12-24 06:19:45 +01:00
Janis Born
56bd959f9e fix vector angle functions possibly returning NaN 2013-12-19 16:16:28 +01:00
Christophe Riccio
9f5d2be3da Fixed GTX_wrap 2013-12-18 19:54:39 +01:00
Christophe Riccio
420822704d Removed useless GTX extensions 2013-12-18 19:19:14 +01:00
Christophe Riccio
aa318f6a43 Fixed GTX_mixed_product build 2013-12-18 19:16:42 +01:00
jan p springer
0e3cebf23a removed boost dependencies 2013-12-18 10:34:06 +00:00
jan p springer
623cdaa552 reimplemented io support for basic types 2013-12-17 22:37:34 +00:00
Christophe Riccio
bbecc80903 Merge pull request #142 from bernstein/0.9.5
Remove includes of deleted half_float.hpp
2013-12-16 15:02:42 -08:00
Christophe Riccio
3b8a199f1b Fixed glm::multiple warning with unsigned int genType 2013-12-16 23:52:28 +01:00
Andreas Bernstein
8de3c56ddc Remove includes of deleted half_float.hpp 2013-12-15 21:45:55 +01:00
Christophe Riccio
eb56539a76 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-12-15 19:56:12 +01:00
Christophe Riccio
0640bcaab0 Fixed inline 2013-12-15 19:55:13 +01:00
Christophe Riccio
29c3b4e484 Merge pull request #139 from regnirpsj/0.9.5
0.9.5: minor compile fixes, op+=/op*= for glm::quat, op<< for glm types
2013-12-10 16:44:30 -08:00
jan p springer
0f66a02c2a added: op<< for glm types 2013-11-22 23:48:58 +00:00
jan p springer
de2f27a87a fixed: type (GLM_SWIZZL vs GLM_SWIZZLE) 2013-11-22 23:36:51 +00:00
jan p springer
e299af614f added: quat::op+=(quat) and quat::op*=(quat) 2013-11-22 21:46:30 +00:00
Ed Preston
0ee6673470 Fixed missing precision aualifier in template
Fixed missing precision aualifier in template to remove compiler
errors. (AppleClang - Xcode 5)
2013-11-15 22:11:22 -05:00
Christophe Riccio
dadab89566 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-11-10 13:47:52 +01:00
Christophe Riccio
ffbcd7f6bd updated comments 2013-11-10 13:47:13 +01:00
Christophe Riccio
70903c39d3 Fixed merge 2013-10-28 13:34:21 +01:00
Christophe Riccio
fbb54649b7 Added test files and fixed build errors for experimental extensions. 2013-10-27 22:38:22 +00:00
Christophe Riccio
2e72af3f6d Added test files for all GTX extensions 2013-10-27 18:25:03 +00:00
Sebastien Lussier
84b740d36e Added missing precision template params int GTX compatibility 2013-10-23 00:22:19 -04:00
Christophe Riccio
0e31538c26 Deprecated some GTX functions 2013-10-11 01:10:15 +02:00
Christophe Riccio
02c3ce21e8 More CUDA coverage, deprecated GTX_1010102 extension 2013-10-11 00:21:27 +02:00
Christophe Riccio
086706caa5 Improved static assert messages 2013-10-10 01:29:18 +02:00
Christophe Riccio
66bc06771c usubBorrow and uaddCarry are better implemented as template specialization 2013-10-10 01:14:39 +02:00
Christophe Riccio
d4046da22e Fixed umulExtended and imulExtended implementations for vector types (#76) 2013-10-10 00:51:29 +02:00
Christophe Riccio
d1fe2d26bf Fix metge 2013-10-09 23:54:54 +02:00
Christophe Riccio
cbfc4a366f Merge pull request #127 from mackron/buildfix
Remove #include of missing file.
2013-10-09 14:49:36 -07:00
Christophe Riccio
73281f1978 Improve CUDA coverage to all GTC extensions. Fixed missing constructors #120 2013-10-09 23:33:39 +02:00
Christophe Riccio
29b11937f4 Fixed Visual C++ language feature detection 2013-10-07 23:53:30 +02:00
David Reid
dea65c8c23 Remove #include of missing file. 2013-10-07 15:34:04 +10:00
Dustin Biser
cfd0bd6e13 Fixed assert error typo in quaternion.inl
Changed v to l, as unknown variable v was causing compile errors in user code.
2013-10-05 16:27:01 -04:00
Dustin Biser
6881e1bb90 Refactored glm/gtc/quaternion mat3_cast
- Factored out minus signs.  Previous commit was incorrect.
2013-10-05 15:34:03 -04:00
Christophe Riccio
e8f1feb423 Fixed exact match of initializer lists 2013-10-05 21:06:21 +02:00
Christophe Riccio
4acd5b087d Added assert for initilizer lists to match sizes 2013-10-05 21:03:53 +02:00
Christophe Riccio
eb59cb9af6 Fixed initializer test implementation, simplified packing implementation 2013-10-05 20:06:56 +02:00
Christophe Riccio
b47a0a212f Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-10-05 19:12:22 +02:00
Christophe Riccio
cc3fcda9f8 Simplify implementations 2013-10-05 19:12:03 +02:00
Christophe Riccio
e13e147799 Uses a C++ cast instead of a C cast 2013-10-05 14:07:38 +02:00
Christophe Riccio
d3b8b25dd4 Added missing assert for sqrt 2013-10-05 14:05:28 +02:00
Dustin Biser
78fed634b7 Modified quaternion mat3_cast for faster results
- Make method more cache coherent
- Reduce number of multiplications
2013-10-04 22:08:08 -04:00
Christophe Riccio
258361ccd4 Added C++11 initalizer lists to quaternions 2013-10-01 02:00:27 +02:00
Christophe Riccio
9b1f079856 Added C++ 11 initializer list for matrix types 2013-10-01 01:12:21 +02:00
Christophe Riccio
81ed43373f Fixed mat4 initializer list contructors 2013-09-30 03:50:40 +02:00
Christophe Riccio
812ff4fcc8 Initializer list experiment 2013-09-30 02:36:04 +02:00
Christophe Riccio
b51fe09cb9 Fixed build 2013-09-30 02:05:13 +02:00
Christophe Riccio
f911117407 Replace glm::detail::type traits by std::numerical_limits traits 2013-09-30 01:57:05 +02:00
Christophe Riccio
f228d42910 Fixed template parameter name 2013-09-30 01:09:57 +02:00
Christophe Riccio
f6277af56f Replaced detail::type by std::numerical_limits 2013-09-30 01:06:54 +02:00
Christophe Riccio
5dc52c722c Added mat4 initializer experiment 2013-09-30 00:43:48 +02:00
Christophe Riccio
71855943e0 Added initializer lists 2013-09-29 19:44:59 +02:00
Christophe Riccio
5d7c896a3f Fixed build on Visual C++ 2005 2013-09-24 01:21:55 +02:00
Christophe Riccio
3b3c28a227 Added missing include for VC2005 2013-09-23 09:48:39 +02:00
Christophe Riccio
1e69dfe30e Added a quation constructor taking two axis 2013-09-22 23:37:55 +02:00
Christophe Riccio
b6f5b4121d Fixed merge 2013-09-19 21:46:51 +02:00
Christophe Riccio
843cc7bd61 Fixed eulerAngleY rotation orientation 2013-09-19 21:33:29 +02:00
Christophe Riccio
df152fa9db Updated version for next release 2013-09-18 00:28:36 +02:00
Christophe Riccio
08c95429fe Fixed build on GCC 2013-09-17 23:56:46 +02:00
Christophe Riccio
da67a79222 Removed invalid *= operators for non square matrix 2013-09-17 23:10:39 +02:00
Christophe Riccio
579ab2b7d2 Fixed const ref issue for vector types. Backport from GLM 0.9.5 branch #116 2013-09-17 23:02:04 +02:00
Christophe Riccio
0a9162e189 Fixed const ref issue for matrix types. Backport from GLM 0.9.5 branch #116 2013-09-17 22:52:37 +02:00
Christophe Riccio
55c242c15c Added GCC49 detection 2013-09-17 22:51:04 +02:00
Christophe Riccio
da6e485aad Fixed B /= B.y bug for all assignment operators of matrix classes. #116 2013-09-17 22:27:29 +02:00
Christophe Riccio
b258af3e67 Fixed B /= B.y bug for all assignment operators of vector classes. #116 2013-09-17 21:37:40 +02:00
Christophe Riccio
aa0b2a5e28 Fixed ldexp and frexp implementations 2013-09-17 01:16:00 +02:00
Christophe Riccio
dddcbe58e6 Factorized float to uint and co function code. 2013-09-17 01:06:45 +02:00
Christophe Riccio
4707333a58 Added std::round test 2013-09-16 03:14:44 +02:00
Christophe Riccio
d37d3539ed - Fixed ldexp implementation
- Increased assert coverage
- Increased static_assert coverage
- Replaced GLM traits by STL traits when possible
- Allowed including individual core feature
2013-09-16 03:03:49 +02:00
Christophe Riccio
cd0519d24b Optimized header inclusion of swizzle operator code. Not included when not enabled 2013-09-16 00:43:24 +02:00
Christophe Riccio
8eea3c7645 Remove tref* 2013-09-16 00:39:19 +02:00
Christophe Riccio
0a23b0a796 Added default template arguments to vector and matrix types 2013-09-15 21:00:14 +02:00
Christophe Riccio
b72ce6addc Swizzle operators are disabled again by default... :/ 2013-09-15 20:44:33 +02:00
Christophe Riccio
1d9e6dc95c Enabled swizzle operator by default, removed GLM_SWIZZLE and add GLM_SWIZZLE_RELAX for Visual C++ lang extension implementation. 2013-09-15 17:55:05 +02:00
Christophe Riccio
5d66caa7da Removed vector type functions named swizzle 2013-09-15 14:45:29 +02:00
Christophe Riccio
6838815f9f Factorized fastInversesqrt code 2013-09-15 14:39:59 +02:00
Christophe Riccio
4bd84e1a0c Added low precision specializations of inversesqrt 2013-09-15 13:36:05 +02:00
Christophe Riccio
741756f17d Added comment on implementation details 2013-09-15 12:44:11 +02:00
Christophe Riccio
1a7dfa03ea Restore value_type member to vectors 2013-09-15 12:41:43 +02:00
Christophe Riccio
79405910bb Fixed superfluous up normalization in glm::lookAt() #114 2013-09-15 04:17:10 +02:00
Christophe Riccio
ba1ccbaba2 Fixed merge 2013-09-15 03:57:12 +02:00
Christophe Riccio
fadbc78307 Reorder slow functions... still to be tested. 2013-09-15 03:31:38 +02:00
Christophe Riccio
cc02b86fb1 Fixed merge 2013-09-15 03:30:20 +02:00
Christophe Riccio
bb9cc43a6d Updated CMake instruction set selection 2013-09-15 03:09:10 +02:00
Christophe Riccio
08ada74f36 More precise C++ features detection 2013-09-11 01:06:11 +02:00
Christophe Riccio
5c84e480bf Fixed warnings generated by GLM_COMPONENT* #113 2013-09-10 00:01:25 +02:00
Christophe Riccio
c038e80e9f Optimized GTC packing functions 2013-09-09 15:16:14 +02:00
Christophe Riccio
cd186dadb3 Optimized packing and unpacking functions 2013-09-08 17:56:18 +02:00
Christophe Riccio
804078f690 Fixed test against GLM_COMPILER_GCC31 and GLM_COMPILER_VC2005 that doesn't exist in GLM 0.9.5 #111 2013-09-08 15:32:30 +02:00
Christophe Riccio
c9f623e717 Fixed glm::orientation with GLM_FORCE_RADIANS defined #112 2013-09-08 15:23:13 +02:00
Christophe Riccio
966c049ce6 Fixed Snorm2x16 packing 2013-09-08 03:45:30 +02:00
Christophe Riccio
f9b944bd31 Fixed an overload resolution bug generating chains of convertions. 2013-09-08 03:14:31 +02:00
Christophe Riccio
0ff1026dbb Removed value_type and size_type 2013-09-08 02:30:16 +02:00
Christophe Riccio
d3f0262a27 Fixed .length() that should return a int and not a size_t 2013-09-08 00:25:26 +02:00
Christophe Riccio
b9266c07b0 Using C++ casts 2013-09-08 00:22:17 +02:00
Christophe Riccio
f511121559 Merge nohalf 2013-09-06 02:17:09 +02:00
Christophe Riccio
e413381fad Merge 2013-09-06 02:14:15 +02:00
Christophe Riccio
16b9c79acc Added implicit conversion of types with different precision qualifier 2013-09-02 00:16:41 +02:00
Christophe Riccio
635d2d0eca Fixed GTC_packing build 2013-09-01 18:22:47 +02:00
Christophe Riccio
8e955736ac Removed GTC_swizzle 2013-08-31 12:00:10 +02:00
Christophe Riccio
36a5f1cc20 Fixed merge 2013-08-31 11:53:05 +02:00
Christophe Riccio
0464c836cb Fixed merge 2013-08-31 11:50:30 +02:00
Christophe Riccio
7673080359 Clean up unused defines 2013-08-28 11:12:21 +02:00
Christophe Riccio
3948f7d46e Merge branch '0.9.5' into nohalf 2013-08-28 11:06:29 +02:00
Christophe Riccio
35b0d2afd8 Fixed a Visual C++ 10 bug regarding declaration of templates 2013-08-28 11:06:11 +02:00
Christophe Riccio
4ed278b9c7 Fixed merge 2013-08-28 10:57:51 +02:00
Christophe Riccio
c6062115c6 Removed l-value swizzle operators 2013-08-28 00:13:02 +02:00
Christophe Riccio
4b7862b314 Fixed issues with ref types for l-value swizzle operators 2013-08-27 13:50:55 +02:00
Christophe Riccio
b3d70c635b Bring back CXXMS and CXX98 code pass for swizzle operators 2013-08-27 12:15:53 +02:00
Christophe Riccio
bc72fafdd9 Removed multiple component selection code 2013-08-27 11:35:58 +02:00
Christophe Riccio
6e82d7ba31 Remove unsupported compiler detection 2013-08-27 11:05:06 +02:00
Christophe Riccio
1de93021bd Updated compiler detection 2013-08-27 10:50:33 +02:00
Christophe Riccio
4dd2b6893e Removed multiple code path for vector components 2013-08-27 10:49:04 +02:00
Christophe Riccio
22ab3bd59d Merge branch '0.9.5' into nohalf 2013-08-27 10:39:34 +02:00
Christophe Riccio
5be36e0ddc Merge branch 'packing' of https://github.com/g-truc/glm into packing 2013-08-27 10:38:39 +02:00
Christophe Riccio
0330485171 Merge branch '0.9.5' into packing 2013-08-27 10:16:55 +02:00
Christophe Riccio
80f6c06c78 Fixed merge 2013-08-27 10:16:33 +02:00
Christophe Riccio
b1230f2adc Fixed build 2013-08-26 11:14:46 +02:00
Christophe Riccio
0abec19bc1 Added missing documentation, missing 4x16 half packing functions, added initial tests 2013-08-26 08:28:17 +02:00
Christophe Riccio
fb13e7bf8a Added unpack 111110 implementation, missing inf and NaN code path 2013-08-26 07:38:34 +02:00
Christophe Riccio
6fd6cf2c8c Fixed packing implementation function names, added missing (un)PackUnom3x10_1_2 implementations, fixed rounding and clamping on (un)packSnom3x10_1x2 implementations 2013-08-25 22:50:48 +02:00
Christophe Riccio
5645369d56 Fixed packing implementation function names 2013-08-25 22:30:52 +02:00
Christophe Riccio
65d29dddaa Completed GTC_packing documentation 2013-08-25 22:26:10 +02:00
Christophe Riccio
44f9db1c3b Added documentation for GTC+packing 2013-08-25 00:02:03 +02:00
Christophe Riccio
965b641722 Added documentation for GTC+packing 2013-08-24 23:38:36 +02:00
Christophe Riccio
59cc657ada Added documentation for GTC_packing 2013-08-23 00:34:39 +02:00
Christophe Riccio
da95e96fcf Fixed build on Clang and C++11 2013-08-22 23:24:18 +02:00
Christophe Riccio
1807881509 Added packXNorm documentation 2013-08-21 00:14:02 +02:00
Christophe Riccio
9464e5b590 Added error for unsupported compiler versions 2013-08-20 23:25:38 +02:00
Christophe Riccio
da38a6e58c Better compiler detection in CMake. Language detection for Clang 2013-08-20 23:07:04 +02:00
Christophe Riccio
53bd892a88 Added 1x8 packing functions. Add documentation for half packing functions. 2013-08-19 00:36:56 +02:00
Christophe Riccio
75a4068c82 Merge branch '0.9.5' into nohalf 2013-08-18 21:55:11 +02:00
Christophe Riccio
79822f932d Merge branch '0.9.5' into packing 2013-08-18 21:54:41 +02:00
Christophe Riccio
eb9fde1429 Redefined highp_int to int following GLM 0.9.5 conventions 2013-08-18 21:53:11 +02:00
Christophe Riccio
1ab7271e7d Fixed is_int and is_uint code duplication with GCC and C++11 #107 2013-08-18 21:33:13 +02:00
Christophe Riccio
eb07c880c3 Merge branch '0.9.4' of https://github.com/g-truc/glm into 0.9.4 2013-08-18 21:12:25 +02:00
Christophe Riccio
caf8f991ca Fixed detection to select the last known compiler if newer version #106 2013-08-18 21:07:47 +02:00
Christophe Riccio
d0e382592a Fixed C++0X on VisualC++ 2012+ 2013-08-18 19:53:03 +02:00
Christophe Riccio
3091725e92 Merge branch '0.9.5' into nohalf 2013-08-18 19:28:58 +02:00
Christophe Riccio
8f3907400d Merge branch '0.9.5' into packing 2013-08-18 19:27:15 +02:00
Christophe Riccio
c93ff0a6aa Fixed merge 2013-08-18 19:25:18 +02:00
Christophe Riccio
4570daf7d2 Fixed merge 2013-08-18 14:06:38 +02:00
Christophe Riccio
25a5c21a24 Initial build with half types removed 2013-08-14 00:55:47 +02:00
Christophe Riccio
54a395abd9 Added Visual C++ 2013 detection 2013-08-13 23:22:16 +02:00
Christophe Riccio
b592d9ff83 Added WINCE detection #92 2013-08-12 23:05:29 +02:00
Christophe Riccio
1951e24cfc Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-08-12 22:45:30 +02:00
Christophe Riccio
bcbffbea58 Fixed merge conflicts 2013-08-12 22:44:31 +02:00
Christophe Riccio
5b525ced24 Back port fix for issue #99 2013-08-12 22:32:39 +02:00
Christophe Riccio
a105876133 Added GTC_packing implementation 2013-08-11 02:16:47 +02:00
Christophe Riccio
cf14790806 Added packF11F11F10 implementation 2013-08-10 19:52:59 +02:00
Christophe Riccio
573712405b Added declaration for new GTC_packing extension 2013-08-09 00:01:02 +02:00
Jonathan Armond
e841c1dbe0 Add missing non-const value_ptr for quat 2013-07-15 12:06:54 +01:00
Christophe Riccio
2d983ed9cf Added WINCE detection 2013-07-15 10:18:32 +02:00
Christophe Riccio
5d151a1036 Merge pull request #96 from tszirr/0.9.4
fix: subscript swizzles in cuda device code #96
2013-07-14 11:40:11 -07:00
Jacob Parker
1a189b3400 remove register specifier, deprecated in C++11 2013-07-14 20:20:45 +02:00
Jacob Parker
df192a6bcc remove register specifier, deprecated in C++11 2013-07-14 13:25:03 -04:00
tszirr
968c892f92 Revert "fix: no implicit vector copy"
Reason: Wrong branch
This reverts commit 2d88860244.
2013-07-12 15:44:02 +02:00
tszirr
861d6d1933 fix: swizzled operations in cuda code 2013-07-12 15:29:48 +02:00
tszirr
d0ddbc217d Merge https://github.com/tszirr/glm into 0.9.4 2013-06-24 16:07:01 +02:00
tszirr
2d88860244 fix: no implicit vector copy 2013-06-24 11:45:19 +02:00
tszirr
5a48614f57 fix: component declaration order -> debug display order! 2013-06-21 17:17:34 +02:00
tszirr
b016594ac3 fix: function-local static arrays unsupported in cuda device code 2013-06-17 10:49:02 +02:00
tszirr
58dc29a860 fix: subscript swizzles in cuda device code 2013-06-14 16:38:58 +02:00
Christophe Riccio
dbb0e5a312 Removed __declspec(align(16)) committed by mistake #91 2013-06-13 16:58:09 +00:00
Christophe Riccio
5f0c0a6f21 Fixed merge 2013-06-13 16:53:22 +00:00
Christophe Riccio
4688f896f9 Fixed language detection on GCC when the C++0x mode isn't enabled #95 2013-06-13 16:50:27 +00:00
Christophe Riccio
119b36c4f2 Updated revision number for GLM 0.9.4.5 release 2013-06-13 16:41:39 +00:00
Christophe Riccio
fa2cca847f Fixed use of intrinsics in pure mode #92 2013-06-13 16:37:39 +00:00
Christophe Riccio
9f1e0cd388 Fixed use of intrinsics in pure mode #92 2013-06-13 16:37:00 +00:00
Christophe Riccio
5b7154468c Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-06-06 21:46:26 +00:00
Christophe Riccio
c1e150e6ec Added assets in perspective 2013-06-06 00:47:36 +00:00
Felix Ungman
065d9848f7 Fixed operator*(mat4x4, vec4)
Calculate Add0, Add1, and Add2 using operator+ (instead of *)
2013-06-03 12:58:44 +02:00
Christophe Riccio
74d1f84e32 Fixed merge 2013-05-28 03:50:41 +02:00
Christophe Riccio
f4f7a71964 Back ported resolution for issue #71 for znear == 0 bug into branch 0.9.4 2013-05-28 03:47:26 +02:00
Christophe Riccio
149df8e3db Added assert on input values for glm::perspective 2013-05-27 18:29:04 +00:00
Christophe Riccio
cf41c03c94 Fixed merge 2013-05-27 14:54:02 +00:00
tszirr
216ad4c34d Add more missing GLM_FUNC_QUALIFIERs 2013-05-27 15:07:22 +02:00
tszirr
e166850954 Fix missing return statement in swizzle assignment operator 2013-05-27 14:59:16 +02:00
tszirr
eb4cd987f1 Added missing GLM_FUNC_DECL specifiers 2013-05-27 14:55:08 +02:00
tszirr
fa77d41ab9 Fix broken _GLM_SWIZZLE4_4_MEMBERS 2013-05-27 14:34:41 +02:00
Christophe Riccio
129efd75a9 Back ported extended swizzle fix for issue #84 2013-05-26 09:59:39 +00:00
Christophe Riccio
edc5365189 Added more missing swizzle operators. #84 2013-05-26 09:57:04 +00:00
Christophe Riccio
1ac4dd648a Merge branch 'master' into 0.9.4 2013-05-26 09:37:46 +00:00
meejah
3352b45222 Add a missing swizzle, for .xwww 2013-05-22 10:45:30 -06:00
Christophe Riccio
056e053b3f Fixed merge 2013-05-16 14:36:51 +00:00
Christophe Riccio
b95a53095b Added assert in inversesqrt to detect division by zero. #61 2013-05-16 14:36:04 +00:00
Christophe Riccio
ef15d06104 Updated doxygen references 2013-05-12 15:51:11 +02:00
Christophe Riccio
0a54eb99b1 Fixed compatibility type, using precision qualifier 2013-05-12 15:50:49 +02:00
Christophe Riccio
01a98e97c1 Fixed perspective with zNear == 0 (#71) 2013-05-12 15:36:29 +02:00
Christophe Riccio
1c68cee29b Clean up code test for branch compatibility on all platforms 2013-05-12 11:40:25 +02:00
Christophe Riccio
9841d2a2b4 Removed SSE tests 2013-05-11 22:40:02 +02:00
Christophe Riccio
929b521381 Added embedded SSE opetimizations in mat4 code 2013-05-11 00:08:55 +02:00
Christophe Riccio
66e3e52592 Fixed increment and decrement operators for matrix types 2013-05-10 23:08:30 +02:00
Christophe Riccio
6487ed1c34 Added assert to row and column functions 2013-05-10 21:52:23 +02:00
Christophe Riccio
1b3d5cd378 Fixed space characters 2013-05-10 21:37:20 +02:00
Christophe Riccio
a2583caa0f Added vector type operator declarations 2013-05-10 14:03:54 +02:00
Christophe Riccio
a319cff426 Removed scalar functions 2013-05-10 12:36:10 +02:00
Christophe Riccio
28d8e7f251 Fixed increment and decrement operators tests 2013-05-10 01:44:13 +02:00
Christophe Riccio
4a93e0ab70 Fixed explicit empty constructors for specialized half classes 2013-05-09 16:06:59 +02:00
Christophe Riccio
1839858465 Fixed missing typename 2013-05-09 13:46:56 +02:00
Christophe Riccio
691f04e14f Fixed post in/decrement operators 2013-05-08 21:52:21 +02:00
Christophe Riccio
28c6bba18c Refacted GTC_angle 2013-05-07 01:20:00 +02:00
Christophe Riccio
929f140b1e Added GTC_angle extension files 2013-05-07 01:05:45 +02:00
Christophe Riccio
b2e55904b8 Fixed dual quat built on GCC 2013-05-07 01:02:52 +02:00
Christophe Riccio
5338aaac9e Added half literals 2013-05-07 01:01:56 +02:00
Christophe Riccio
49fbfa051c Optimized radians and degrees functions 2013-05-06 20:35:13 +02:00
Christophe Riccio
13f27821b9 Completed GTX_multiple for negative values, issue #79 2013-05-06 18:00:06 +02:00
Christophe Riccio
e3da5f952c Fixed merge 2013-05-06 15:34:37 +02:00
Christophe Riccio
092ccbe64f Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-05-05 21:36:41 +02:00
Christophe Riccio
56564badb5 Added tests for issue #72 2013-05-05 21:36:22 +02:00
Christophe Riccio
0d3883c204 Merge pull request #75 from mackron/quat_simd
SIMD Quaternions
2013-05-05 09:16:35 -07:00
Christophe Riccio
c795562f67 Renamed gentype::null into gentype::_null for Tizen, #78 2013-05-05 18:06:42 +02:00
Robert Ancell
f0d4080fe3 Fix glm::higherMultiple and glm::lowerMultiple and assoicated test cases. Does not fix the specialized versions of these functions 2013-05-03 16:52:06 -07:00
Christophe Riccio
281a391b4d Fixed swizzle build on Visual C++ compiler 2013-05-01 01:54:48 +02:00
Dave Reid
e0cfd7d672 Attempt a small optimization in operator*(fquatSIMD, fvec4SIMD). No big improvement. 2013-04-24 15:00:03 +10:00
Dave Reid
c08ea7656b Reorganize operator* to makes things a bit clearer. 2013-04-24 14:46:20 +10:00
Dave Reid
1eb88e4bc1 Cleanup. 2013-04-24 14:06:28 +10:00
Dave Reid
c1006718b3 Add fastMix() and fastSlerp() implementations.
These have stricter pre-conditions than standard mix() and slerp()
  - 1) Input quaternions must be unit length.
  - 2) The interpolation factor (a) must be in the range [0, 1]

None of these restrictions should be too bad. The reason for these is that it uses fastAcos()
and fastSin(), both of which have a limited allowable range.

In my contrived tests, I observed about a 10x improvement over the standard versions. This is
mostly because of the faster acos/sin operations. The fastSin(__m128) implementation also helps
here because it can do four fastSin() operations simultaneously using SSE (mix() and slerp()
each need three).
2013-04-24 13:55:38 +10:00
Dave Reid
d07496460a Add the ability to convert a SIMD quat to a standard mat4. 2013-04-24 09:54:28 +10:00
Dave Reid
942bf08fe3 Add the ability to convert standard mat4s and mat3s to SIMD quats. 2013-04-24 09:39:22 +10:00
Dave Reid
13837e1079 Remove the SSE3 implementation in operator*(fquatSIMD, fquatSIMD).
The SSE2 version is now running faster than the SSE3 version.
2013-04-24 08:51:17 +10:00
Dave Reid
197b6c96d8 Improve efficiency of operator*(fquatSIMD, fquatSIMD) in SSE4 mode.
Now only requires 3 shuffle, 4 mul and 4 dpps.
2013-04-24 07:58:41 +10:00
Dave Reid
d23da666c5 Merge branch '0.9.5' of https://github.com/g-truc/glm into quat_simd 2013-04-24 07:33:10 +10:00
Christophe Riccio
8c7828e6f7 Fixed merge 2013-04-23 16:40:07 +02:00
Christophe Riccio
3c7989486e Fixed literals in dual quaternion implementation 2013-04-23 16:39:15 +02:00
Dave Reid
7563a8bc4d Add initial implementation of SIMD optimized quaternions.
A few things here can probably be improved by people a lot smarter then
me, but for the most part things are generally faster.

A few notes:
 - A fquatSIMD can be converted to a fmat4x4SIMD using mat4SIMD_cast().
 - A tquat<float> can be converted to a fquatSIMD using quatSIMD_cast().
 - Some functions are virtually the same as their scalar counterparts
   because I've just not been able to get them faster.
 - Only the basic functions are implemented. Future plans include fast,
   approximate normalize, length and mix/slerp functions.
2013-04-23 15:36:12 +10:00
Dave Reid
6a7ccdb530 Fix another compilation error. 2013-04-23 14:18:05 +10:00
Dave Reid
b6d994f638 Compilation fixes due to missing P template parameters. 2013-04-23 10:01:50 +10:00
Dave Reid
5519b86003 Fix fvec4SIMD and fmat4x4SIMD compilation errors. 2013-04-23 09:19:57 +10:00
Dave Reid
30dca2d0c7 Fix an ambiguity error with clamp(). 2013-04-23 09:09:37 +10:00
Christophe Riccio
161c6c474b Added library builds 2013-04-22 22:28:00 +02:00
Christophe Riccio
f1967b5fb3 Removed GTX_ocl_type, issue #64 2013-04-19 21:53:31 +02:00
Christophe Riccio
a67c7594bc Clarified comments in GTC_epsilon, issue #69 2013-04-19 21:44:49 +02:00
Christophe Riccio
85ae145cf5 Fixed merge 2013-04-19 21:38:57 +02:00
Christophe Riccio
e72f18997c Fixed GTX_multiple for negative values, issue #51 2013-04-19 21:30:52 +02:00
Christophe Riccio
604405e941 Fixed equal operator on quat 2013-04-17 18:24:02 +02:00
Christophe Riccio
54e9d54579 Fixed tests and mat type typedefs 2013-04-17 12:26:34 +02:00
Christophe Riccio
abbb0fc7cb Added component wise comparison operators for quaternion 2013-04-17 11:16:54 +02:00
Christophe Riccio
d4043ea49a Added all precision types for GTC_type_precision 2013-04-16 21:58:26 +02:00
Christophe Riccio
296e3d7007 Fixed half precision implementation 2013-04-15 11:04:24 +02:00
Kristian Lein-Mathisen
867db84ca5 Fixed mat2x4 value-type constructor
#include <glm/glm.hpp>
#include <iostream>
using namespace std;
int main() {
    // creating two should-be identical matrices
  glm::mat2x4 A((int)1);
  glm::mat2x4 B((float)1);

  float* Aptr = (float*)&A;
  float* Bptr = (float*)&B;
  for(int i = 0 ; i < 8 ; i++) cout << Aptr[i] << " ";  cout << endl;
  for(int i = 0 ; i < 8 ; i++) cout << Bptr[i] << " ";
}

output before patch:
1 0 0 0 0 1 0 0
1 0 0 0 0 0 0 0
output after patch:
1 0 0 0 0 1 0 0
1 0 0 0 0 1 0 0
2013-04-14 23:30:30 +02:00
Christophe Riccio
c14e2d7fbc Added precision template parameter 2013-04-10 13:46:27 +02:00
Christophe Riccio
d2c0cf0a93 Fixed space characters 2013-04-02 01:50:12 +02:00
Christophe Riccio
4b4f3fbbaa Fixed space characters and improved forward declaration, including extensions 2013-04-01 23:02:26 +02:00
Christophe Riccio
9e5e056229 Clean up 2013-04-01 13:06:15 +02:00
Christophe Riccio
5bb22ed2ee Added txt files to the project solution 2013-04-01 13:05:43 +02:00
Christophe Riccio
589e7cda6b Added forward declarations (glm/fwd.hpp) for faster compilations, issue #56 2013-03-31 11:41:53 +02:00
Christophe Riccio
afb7779baf Added forward declarations (glm/fwd.hpp) for faster compilations, issue #56 2013-03-31 03:35:10 +02:00
Christophe Riccio
ea09100144 Added forward declarations (glm/fwd.hpp) for faster compilations, issue #56 2013-03-31 03:33:24 +02:00
Christophe Riccio
39cf417691 Added initial implementation for forward declarations: int and float scalar types, #56 2013-03-31 01:16:13 +01:00
Christophe Riccio
6a96cd819a Fixed dual quaternion build on Clang, fixed space characters #49 2013-03-31 00:48:28 +01:00
Christophe Riccio
78d3e5ca66 Updated readme 2013-03-27 02:33:59 +01:00
Christophe Riccio
e7dc01fc06 Fixed slerp, linear interpolation when cosTheta is close to 1, #65 2013-03-26 00:28:29 +01:00
Christophe Riccio
7739e9c3e3 Fixed merge 2013-03-20 01:49:22 +01:00
Christophe Riccio
dab66f81e5 Fixed mix function for bool and bvec* type third parameter, issue #59 2013-03-17 14:03:37 +01:00
Christophe Riccio
356e70e653 Autodetect C++ version using __cplusplus value, issue #62 2013-03-17 12:59:59 +01:00
Christophe Riccio
e7a5e50fc8 Fixed merge 2013-03-16 18:16:36 +01:00
Christophe Riccio
003c547e43 Fixed isnan and isinf on Android with Clang, issue #54 2013-03-16 01:34:37 +01:00
Christophe Riccio
8ed5f541ff Resolved issue #58 2013-03-16 01:24:29 +01:00
Christophe Riccio
4d71624067 Added file headers so that the files are no longer empty. #57 2013-03-16 01:20:26 +01:00
Christophe Riccio
6c4ae0d241 Fixed space characters 2013-03-10 19:34:21 +01:00
Christophe Riccio
cc60e7d230 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-02-22 15:54:20 +01:00
Christophe Riccio
5c44c6e9fc Merge branch '0.9.4' into 0.9.5 2013-02-22 10:49:00 +01:00
Christophe Riccio
a2be7bbc43 Merge pull request #52 from msomeone/0.9.5
Removed erroneous include "./gtc/dual_quaternion.hpp". Now correctly inc...
2013-02-22 01:38:59 -08:00
Christophe Riccio
f37af51426 Fixed API for euclian, only need a vec2 parameter 2013-02-22 10:17:25 +01:00
Maksim Vorobiev
2afa70aedf Removed erroneous include "./gtc/dual_quaternion.hpp". Now correctly including "./gtx/dual_quaternion.hpp" 2013-02-22 08:29:27 +03:00
Christophe Riccio
982bb5ce5d Added rotation function, issue #22 2013-02-22 01:08:33 +01:00
Christophe Riccio
7b57810a34 Merge branch '0.9.4' into 0.9.5 2013-02-21 22:57:27 +01:00