Commit Graph

1635 Commits

Author SHA1 Message Date
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
Christophe Riccio
18a8efde62 Resolve issue #39, exp, squad and intermediate functions 2013-02-21 22:57:14 +01:00
Christophe Riccio
1e3cb00fe5 Completed bit interleaving for 3 and 4 values 2013-02-21 21:35:21 +01:00
Christophe Riccio
3e3736769c Fixed intrinsics build 2013-02-21 11:36:50 +01:00
Christophe Riccio
78118204f6 Merge branch '0.9.4' into 0.9.5 2013-02-20 16:22:07 +01:00
Christophe Riccio
2a4434786e Updated date 2013-02-20 16:21:56 +01:00
Christophe Riccio
eafe125d95 Updated readme for GLM 0.9.4.3 2013-02-20 16:08:01 +01:00
Christophe Riccio
39d3bc1d40 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2013-02-20 16:03:58 +01:00
Maksim Vorobiev
50c870ea96 Moved all dual quaternion functionality from GTC space to GTX. 2013-02-20 17:57:17 +03:00
Christophe Riccio
c64e53e42f Fixed conflict 2013-02-20 15:56:24 +01:00
Christophe Riccio
af77fb3118 Fixed conflict 2013-02-20 15:53:35 +01:00
Christophe Riccio
efcecbd81a Clang detection for GLM_INLINE 2013-02-20 15:46:10 +01:00
Maksim Vorobiev
23a84732ef Merge branch 'master' into 0.9.5 2013-02-20 17:26:09 +03:00
Maksim Vorobiev
c73dc4a05f Added dual quaternion functionality 2013-02-20 15:39:40 +03:00
Dave Reid
389ca19d61 Fix a Clang compilation error.
The issue here is that GLM_DEPRECATED, GL_ALIGN, etc is being left undefined with the Clang build.
2013-02-15 08:32:56 +10:00
Christophe Riccio
c868666c79 Fixed merge 2013-02-14 11:38:40 +01:00
Christophe Riccio
0df4b94c4b Fixed CUDA warnings and errors, #43 2013-02-14 01:08:24 +01:00
Christophe Riccio
fc77c7a54e Fixed documentation warnings, issue #46 2013-02-14 00:55:22 +01:00
Christophe Riccio
acbc578c3e Merge branch '0.9.4' into 0.9.5 2013-02-10 20:48:51 +01:00
Christophe Riccio
e359439b86 Updated unpackHalf2x16 implementation 2013-02-10 20:47:38 +01:00
Christophe Riccio
5de63682f2 Merge branch '0.9.4' of https://github.com/g-truc/glm into 0.9.5 2013-02-10 19:25:38 +01:00
Christophe Riccio
bd7125c50b Added bit interleave for 3 and 4 integers 2013-02-10 19:25:11 +01:00
Christophe Riccio
6799127ec6 Fixed any and all for scalars 2013-02-04 19:17:47 +01:00
Christophe Riccio
59b9a780e9 Added GTX_scalar_relational implementation and tests 2013-02-04 19:04:32 +01:00
Christophe Riccio
c57a000791 Added bitfieldInterleave implementation 2013-02-01 23:55:25 +01:00
Christophe Riccio
920ca0a242 Experiments to add bitfieldInterleave 2013-02-01 20:53:32 +01:00
Christophe Riccio
1cebfa7bda Improved Intel Compiler detection 2013-02-01 00:45:24 +01:00
Christophe Riccio
db5a610882 Display Intel compiler detected 2013-02-01 00:05:52 +01:00
Christophe Riccio
4286b02686 Merge pull request #42 from mackron/perspective-fix
Fix a bug in glm::perspective(). Pull request #42
2013-01-31 14:59:33 -08:00
Christophe Riccio
ba71f8befe Fixed lang message 2013-01-31 23:38:13 +01:00
Christophe Riccio
5d22aabe70 Anonymous structure in unions are only supported by Visual C++, not C++ 11 2013-01-31 23:25:34 +01:00
Dave Reid
e6b8f7a40e Fix a bug in glm::perspective() where a degrees-to-radians conversion is being performed twice. 2013-02-01 07:30:38 +10:00
Christophe Riccio
fee63c9b0f Fixed message display 2013-01-31 21:17:19 +01:00
Christophe Riccio
d7ed4387e0 Fixed C++ 11 detection 2013-01-31 20:45:47 +01:00
Christophe Riccio
d52a388000 Refactoring of integer and float details, use of C++11 integer types when available. 2013-01-31 18:02:47 +01:00
Christophe Riccio
b5607d0018 Fixed merge 2013-01-31 15:01:48 +01:00
Corentin Wallez
0be0a2cb41 Fix a warning in func_integer.inl
The lack of parenthesis triggered -Wshift-op-parentheses in Clang 3.2
2013-01-30 08:06:14 +00:00
Christophe Riccio
a4aa39f9bd Fixed 0x2013 dash character in comments that cause issue in Windows 2013-01-23 02:27:59 +01:00
Christophe Riccio
43a9e450fd Fixed mix for vec4 SSE implementation, issue #33 2013-01-23 02:18:43 +01:00
Christophe Riccio
37e380ca9b Fixed packDouble2x32 on XCode 4.5, issue #37 2013-01-23 01:49:42 +01:00
Christophe Riccio
a33a2b2c42 Fixed merge 2013-01-23 00:56:56 +01:00
Christophe Riccio
e7173dd156 Fixed compAdd, issue #40 2013-01-23 00:55:09 +01:00
Christophe Riccio
9a625f4d5b Fixed SIMD support for Intel compiler on Windows, issue #32 2013-01-07 23:37:59 +00:00
Christophe Riccio
6c855a892d Updated revision number for GLM 0.9.4.2 release 2013-01-07 23:29:29 +00:00
Christophe Riccio
115c7fc64a Added specific code path to isnan and isinf for CUDA, issue #35 2013-01-07 23:24:27 +00:00
Christophe Riccio
a7feb46c1a Fixed build 2013-01-04 14:26:18 +00:00
Christophe Riccio
889a7594d9 Fixed bug #34, GLM_FORCE_RADIANS not working on glm::perspective 2013-01-02 00:05:07 +00:00
Christophe Riccio
9926506c7f Added assert to ensure lerp is used in the correct range of value 2012-12-23 12:34:55 +01:00
Christophe Riccio
cd043f2ee2 Fixed GCC warnings 2012-12-23 01:26:20 +01:00
Dave Reid
dc9a2486d6 Fix a -Wswitch-default warning in GCC.
The default case should never actually be met. I've added an assert(false) statement here for sanity.
2012-12-22 11:57:19 +10:00
Christophe Riccio
ad36b36b5b Updated mix and lerp documentation 2012-12-22 01:32:33 +01:00
Christophe Riccio
29805391bd Added tests for slerp function 2012-12-22 00:32:07 +01:00
Christophe Riccio
b78d53d0ac Merge branch '0.9.4' of https://github.com/g-truc/glm into 0.9.4 2012-12-21 23:05:38 +01:00
Christophe Riccio
912d1b1e81 Added slerp, lerp and mix functions for quaternions. Added, fixed and clarified documentation. 2012-12-21 23:05:10 +01:00
Christophe Riccio
6f22430bbc Resolved quaternion slerp interpolation, implemented by mix function 2012-12-21 02:21:21 +01:00
Dave Reid
7b6fb9f635 Fix GCC warnings. 2012-12-21 10:48:10 +10:00
Dave Reid
f206f39c3a Fix MinGW compilation error. 2012-12-21 10:38:46 +10:00
Christophe Riccio
d694c0d19d Merge branch '0.9.4' of https://github.com/g-truc/glm into 0.9.4 2012-12-21 00:17:51 +01:00
Christophe Riccio
82832839c2 Resolved issue #24, incorrect assert messages for step and smoothstep 2012-12-21 00:17:23 +01:00
Dave Reid
18c616528a Add missing implementations of fmat4x4SIMD unary operators. 2012-12-21 08:33:14 +10:00
Dave Reid
c6c8dd15f2 Add missing implementation of fmat4x4SIMD binary operators. 2012-12-21 08:28:34 +10:00
Dave Reid
a4ea111417 Add a new constructor to fmat4x4SIMD that takes a __m128[4]. This is used in a future commit. 2012-12-21 08:19:36 +10:00
Dave Reid
60c3d3c943 Improve const-correctness in instrinsic_matrix.inl. 2012-12-21 08:12:30 +10:00
Dave Reid
3681cd3523 Add support for doing an identity initialization in the default constructor of fmat4x4SIMD().
This is disabled by default and enabled with GLM_SIMD_ENABLE_DEFAULT_INIT. It makes toggling between SIMD and non-SIMD builds a bit easier.
2012-12-21 07:55:39 +10:00
Dave Reid
efff3add87 Add support for doing a (0.0, 0.0, 0.0, 0.0) initialization in the default constructor of fvec4SIMD().
This is disabled by default, but enabled with GLM_SIMD_ENABLE_DEFAULT_INIT. This makes toggling between SIMD and non-SIMD builds a bit easier.
2012-12-21 07:49:49 +10:00
Dave Reid
87c90590be Add support for x,y,z,w accessors to fvec4SIMD.
This is done via a union. It must be enabled with GLM_SIMD_ENABLE_XYZW_UNION. A nameless struct/union warning in VC (C4201) is explicitly disabled with the "pragma warning(push/pop)" system.

Allowing xyzw access makes it much easier to toggle between SIMD and non-SIMD builds.
2012-12-21 07:40:03 +10:00
Christophe Riccio
560b474008 Fixed quat slerp using mix function when cosTheta close to 1 2012-12-20 18:13:04 +01:00
Christophe Riccio
0b41846700 Fixed speeling 2012-12-20 11:16:12 +01:00
Christophe Riccio
c19dda3797 Fixed quaternion interpolation when cosTheta is close to zero 2012-12-20 00:37:28 +01:00
Christophe Riccio
443f62bb08 Fixed issue #19, fixed -0.0 with half 2012-12-16 21:54:54 +01:00
Christophe Riccio
739ab3529c Resolved issue #4, added GLM_GTX_rotate_normalized_axis 2012-12-14 00:14:02 +01:00
Christophe Riccio
8a291a9dc2 Fixed bug #14, fixed constexpr 2012-12-13 23:08:41 +01:00
Christophe Riccio
841f91e830 Fixed bug #15, added missing roll, pitch and yaw functions; Fixed half implicit conversions 2012-12-13 22:48:20 +01:00
Christophe Riccio
931b7bcdd6 Fixed issue #18 glm::clamp and NaN's 2012-12-13 11:26:59 +01:00
Christophe Riccio
a7fb9f31fd Fixed bug #13, ICC built on Linux 2012-12-10 14:07:33 +01:00
Christophe Riccio
c7fa6d745a Revert previous change trying to fix bug #13: Break the build on Windows... 2012-12-09 00:40:25 +01:00
Christophe Riccio
7e0288359f Tentative of fixing bug #13, nextafter on Intel compiler 2012-12-07 11:22:13 +01:00
Christophe Riccio
b8f30c5ad3 Fixed bug #11, added missing quat based epsilonEqual and epsilonNotEqual definitions 2012-11-15 15:37:28 +01:00
Christophe Riccio
47b610c6d3 Clean up doxygen documentation 2012-11-15 15:29:41 +01:00
Christophe Riccio
4b18cc7051 Clean up doxygen documentation... was exposing implementation details 2012-11-14 12:16:10 +01:00
Christophe Riccio
2f8f070597 Fixed GTC_epsilon with Clang 2012-11-14 12:02:24 +01:00
Christophe Riccio
0b745d4e1c Clean up space characters 2012-11-13 17:57:42 +01:00
Christophe Riccio
7b60ef7ab4 Merge branch 'master' of https://github.com/g-truc/glm into 0.9.4 2012-11-13 17:55:19 +01:00
Christophe Riccio
214c56cd45 Updated doxygen documentation 2012-11-13 17:54:11 +01:00
Christophe Riccio
7778013575 Fixed space characters 2012-11-13 13:19:11 +01:00
boromisp
1683e78f58 Fixed the line-sphere intersection
The original implementation had the same mistakes than the ray-sphere
intersection.
Added two new 'out' parameters to return both intersection ponits.
Changed the implementation to the geomethric method.
2012-11-11 23:53:10 +01:00
boromisp
ed12134f34 Fixed the original ray-sphere intersection
Changed the original analytic method to a geometrical.

The errors in the original intersection calculation:
The function has a sphere center parameter, but ignores it and assumes
that the sphere is in the origo.
It calculates the length of the ray direction vector, but later on uses
this vector as a unit vector.
The position calculation is simply wrong. It multiplies the direction
vector with the radius of the sphere instead of the calculated
intersection distance.

The quadratic equation solving could be improved too:
There should be an early exit for negative discriminant.
The naive implementation sould be changed to a floating-point
specialized one.
2012-11-11 23:41:11 +01:00
boromisp
3a3c1fd8e8 Added new ray-sphere intersection
This version uses a geometric method (usually faster) and doesn't
calculate the intersection position and normal, only the distance.
2012-11-11 23:09:12 +01:00
Christophe Riccio
4fff9b4367 Added matrix inverse tests and clean up space characters 2012-11-09 03:39:43 +01:00
Christophe Riccio
c9a0b87c7b Fixed spaces 2012-11-09 01:24:22 +01:00
Christophe Riccio
a69de771a0 Fixed merge 2012-11-09 01:24:04 +01:00
Christophe Riccio
4d3af10700 Fixed space characters 2012-11-08 15:00:50 +01:00
Christophe Riccio
669ace8067 Fixed space character 2012-11-08 14:34:22 +01:00
Christophe Riccio
bfec0e2388 Fixed epsilon for half types 2012-11-06 02:26:31 +01:00
Christophe Riccio
1fb8bec873 Fixed abs function for half based types 2012-11-06 01:23:14 +01:00
Christophe Riccio
9d9a625493 Renamed equalEpsilon function into epsilonEqual and added tests 2012-11-05 19:39:22 +01:00
Christophe Riccio
16876bef5a Fixed merge 2012-11-04 21:57:19 +01:00
Christophe Riccio
1dda2390e5 Fixed warnings on MacOS X 2012-11-04 14:26:54 +01:00
Tim Howard
e2bc911f00 Fixed component swapping in tmat2x2::_inverse().
NB: glm::detail::tmat2x2::_inverse() incorrectly swaps all components instead of only main diagonals:

	A = ⌈a  b⌉
	    ⌊c  d⌋

(using standard representation). _inverse() on A incorrectly gives the order

	⌈ d  -c⌉
	⌊-b   a⌋

(swaps both diagonals) where it should be

	⌈ d  -b⌉
	⌊-c   a⌋

(I am leaving out division by the determinate for clarity).

Also, glm::inverse() in `glm/core/func_matrix.inl` is correct for 2x2 matrices and shows the mistake of _inverse().
The unit tests do not appear to test division of a mat2 by a mat2 (where this could arise).
2012-10-22 17:23:03 -04:00
Christophe Riccio
1ded040f23 Merge branch 'master' into 0.9.4 2012-10-18 12:16:52 +02:00
Christophe Riccio
af2debfd43 Fixed spaces 2012-10-18 12:12:32 +02:00
Jakob Progsch
476abb8be0 removed \ from commented out out macro on line 564 to avoid compiler warnings for multiline comments 2012-10-18 11:56:54 +02:00
Christophe Riccio
c899d63725 Fixed Clang and LLVM GCC detection 2012-10-13 18:26:04 +02:00
Christophe Riccio
b9d9ae4ec5 updated CLang version detection 2012-09-23 15:30:17 +01:00
Christophe Riccio
8b5e63375f updated CLang version detection 2012-09-23 15:27:47 +01:00
Christophe Riccio
3fc42c9e9e Simplify Compilation build model detection 2012-09-20 17:31:32 +02:00
Christophe Riccio
8aa2eafc36 Added experiment in comment to auto detect the instruction set 2012-09-20 16:35:10 +02:00
Christophe Riccio
8c4ea6ebb2 Fixed isnan on GCC 2012-09-20 12:28:12 +02:00
Christophe Riccio
c6d87a9458 Added compiler detection 2012-09-20 11:40:15 +02:00
Christophe Riccio
1eac545656 Fixed Intel compiler detection 2012-09-20 10:28:39 +02:00
Christophe Riccio
b012c80771 Fixed isnan for Intel compiler 2012-09-20 10:17:03 +02:00
Christophe Riccio
b1ecabdd28 Fixed GTX_matrix_interpolation, issue #9 2012-09-19 19:14:45 +02:00
Christophe Riccio
7e3f00d034 Added missing test files 2012-09-19 15:34:23 +02:00
Christophe Riccio
c2eea6da26 Removed floor_log2, comment that isnan and isinf are not working on MinGW 2012-09-18 01:52:16 +02:00
Christophe Riccio
56738ee5cb Added idea for SSE2 implementation of findMSB 2012-09-13 02:14:41 +02:00
Christophe Riccio
8a7d6080d1 Fixed findMSB generic path 2012-09-13 00:43:46 +02:00
Christophe Riccio
a2ba0ea86f Merge branch '0.9.3' of https://github.com/Groovounet/glm into 0.9.4 2012-09-12 15:59:17 +02:00
Joonas Sarajärvi
ad3422f6aa Better fix glm::findMSB for GCC >= 4.0
The previous fix only worked correctly for values where
the most significant enabled bit was the only enabled bit.

This change changes the implementation back to using clz,
but so that the result is changed with additional arithmetics.

There is still at least one known limitation with regards
to acceptable input types, but this is documented in the code.
2012-09-12 15:17:21 +03:00
Joonas Sarajärvi
daa51e42bb Fix glm::findMSB for GCC >= 4.0
Before this fix, the GCC specific MSB function returned the number
of leading zero bits in the parameter value. With this change,
the number of trailing zero bits is returned instead.

I am not entirely sure if this fix is correct, because I could not
find a clear reference about what findMSB in GLSL is really
supposed to return with some concrete input value.
At least the result is now consistent with the GLM_ARCH_PURE
implementation of glm::findMSB.
2012-09-12 01:59:13 +03:00
Joonas Sarajärvi
da530ac46e Fix integer version of glm::log2 for GCC
This pretty much reverts the fix done in commit
1ed0e3865b

This temporarily breaks log2 for GCC in cases where GLM_FORCE_PURE
is not defined. The workaround introduced in commit
1ed0e3865b seems to rely
on getting invalid results from the nlz function.

Broken nlz is caused by a broken findMSB function for GCC.

A fix for the findMSB function should be available in a nearby
separate commit.
2012-09-12 01:51:02 +03:00
Christophe Riccio
1822f9dd04 Added Intel compiler support 2012-09-11 02:30:28 +02:00
Christophe Riccio
e8cbc50343 Fixed SSE detection on Visual C++ 2012-09-06 20:05:11 +02:00
Christophe Riccio
88cbbebac6 Merge branch 'master' into 0.9.4 2012-09-06 18:45:15 +02:00
Ed Hutchins
311c64c3d3 Fixed SSE detection 2012-09-05 14:48:02 -07:00
Christophe Riccio
2f3dd90aca Merge branch '0.9.3' into 0.9.4 2012-09-05 23:45:12 +02:00
Christophe Riccio
72a01d3432 Experiment to do 2012-08-22 18:22:06 +01:00
Christophe Riccio
09a8d5a621 Fixed warning from #123 comments 2012-07-01 11:32:55 +01:00
Christophe Riccio
35995e40f0 Merge branch '0.9.3' into 0.9.4 2012-06-30 01:11:36 +01:00
Christophe Riccio
ac8ec9b97c Fixed SSE includes with GCC 2012-06-30 01:05:45 +01:00
Christophe Riccio
9bd19663c1 Fixed #186, fixed warning 2012-06-28 19:45:28 +01:00
Christophe Riccio
3ab80ffe6d Fixed #187, fixed bitfieldExtract for vector based type 2012-06-28 19:40:42 +01:00
Christophe Riccio
a979cb483e Updated readme for GLM 0.9.3.4 release 2012-06-28 19:15:57 +01:00
Christophe Riccio
e26b0587b2 Deleted VIRTREV_xstream 2012-06-28 17:01:02 +01:00
Christophe Riccio
4797b4922a Fixed comflict 2012-06-20 15:13:19 +01:00
Christophe Riccio
ba6807b754 Added SSE4 and AVX2 detection, most changes from d9dc21328f 2012-06-03 02:17:36 +01:00
Christophe Riccio
b88c550a10 Updated version for next release 2012-06-03 01:11:35 +01:00
Christophe Riccio
fa0cc7a319 Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.4 2012-05-20 11:14:42 +01:00
Christophe Riccio
ac0c938442 Fixed VC warning 2012-05-09 22:39:17 +01:00
Christophe Riccio
40622b0e79 Fixed merge 2012-05-08 21:01:40 +01:00
Christophe Riccio
ff3ad788df Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.3 2012-05-08 20:58:01 +01:00
Christophe Riccio
34dc3a6ef6 Fixed matrixCompMult function for none square matrix 2012-05-02 13:07:55 +01:00
Christophe Riccio
77eabf703a Merge branch '0.9.3' into 0.9.4 2012-05-02 13:07:06 +01:00
Christophe Riccio
05426e7398 Fixed matrixCompMult function for none square matrix 2012-05-02 13:06:00 +01:00
Christophe Riccio
a5fdf3c1bf Fixed ticket #182, isnan and isinf conflicts 2012-04-30 22:23:08 +01:00
Christophe Riccio
928ed30fe0 Fixed namespace issue with stream operators 2012-04-23 15:41:18 +01:00
Christophe Riccio
4989ad5a97 Fixed android detection #180 2012-04-23 14:58:46 +01:00
Christophe Riccio
958bb6f6ca Fixed GTX_compatibility on Android r7 2012-04-19 11:29:57 +01:00
Christophe Riccio
ac768ea12b Added an alias (slerp) for mix with quaternions 2012-04-14 15:33:44 +01:00
Christophe Riccio
80a4a7973c Merge branch '0.9.3' into 0.9.4 2012-04-14 14:49:59 +01:00
Christophe Riccio
874a675bb9 Fixed nextafter for float on Intel compiler 2012-04-14 14:45:27 +01:00
Christophe Riccio
535f67e45e Ticket #176, workaround for Intel compiler which has a bug with lookAt 2012-04-14 14:32:30 +01:00
Christophe Riccio
6a4677c30e Promoted GTX_epsilon, GTX_ulp, fixed build, removed deprecation warning at build time 2012-04-07 02:30:26 +01:00
Christophe Riccio
b2f0f4d3f9 Move noise, random and ulp test to GTC tests 2012-04-07 00:36:15 +01:00
Christophe Riccio
cb017c5bca Promoted angle axis interaction with quaternion 2012-04-06 21:04:46 +01:00
Christophe Riccio
5454f224b8 Fixed merge 2012-04-06 16:38:28 +01:00
Christophe Riccio
a2833dcb3c Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.3 2012-04-06 13:53:14 +01:00
Christophe Riccio
17563f9a28 Fixed perspectiveFov 2012-04-06 13:52:43 +01:00
Christophe Riccio
7373e7b8da Promote eulerAngles to GTC quaternion extension 2012-04-01 18:19:09 +01:00
Christophe Riccio
fa84c6d1b0 Added length implementation 2012-03-31 11:19:20 +01:00
Christophe Riccio
81efafa976 Merge branch '0.9.3' into 0.9.4 2012-03-16 21:55:54 +00:00
Christophe Riccio
8537e33b8d Fixed ticket 169, parameter not used for mat division 2012-02-19 22:43:40 +00:00
Christophe Riccio
edccfa24b9 Fixed Clang version defines, ticket #170 2012-01-26 01:25:20 +00:00
Christophe Riccio
f267b6ea18 Promote GTC_constants 2012-01-25 18:54:28 +00:00
Christophe Riccio
fb3a41995a Ticket #137, added constexpr support 2012-01-25 18:36:04 +00:00
Christophe Riccio
080dc2dd82 Promoted GTX_reciprocal 2012-01-25 16:43:35 +00:00
Christophe Riccio
100b2202dd Added GLM_FORCE_RADIANS 2012-01-25 16:37:09 +00:00
Christophe Riccio
ebd1ba8bf6 Merge branch '0.9.3' into 0.9.4 2012-01-25 15:53:41 +00:00
Christophe Riccio
18a500a0f5 Getting GLM 0.9.3.1 release ready 2012-01-25 12:56:50 +00:00
Christophe Riccio
359312f503 Fixed warnings 2012-01-25 12:04:47 +00:00
Christophe Riccio
db150c6bda Fixed merge 2012-01-24 14:49:46 +00:00
Christophe Riccio
80e9c0ed64 Fixed language detection 2012-01-24 14:36:47 +00:00
Christophe Riccio
dd8cecbbbc Fixed platform detection 2012-01-24 13:56:15 +00:00
Christophe Riccio
64e06fa57a Merge branch '0.9.3' into 0.9.4 2012-01-24 12:07:52 +00:00
Christophe Riccio
afad865399 Removed detail implementation 2012-01-24 12:04:23 +00:00
Christophe Riccio
0fc7aeeed8 Added a message for undetected C++ compiler 2012-01-24 12:02:27 +00:00
Christophe Riccio
9b600406e0 Hide _inverse from doxygen #164 2012-01-23 10:37:45 +00:00
Christophe Riccio
89fcd31730 Fixed typo #166 2012-01-23 10:07:37 +00:00
Christophe Riccio
347ed18259 Fixed ticket #165: Nacl compatibility 2012-01-23 10:00:32 +00:00
Christophe Riccio
8197773bf5 Fixed warning on GCC 2012-01-14 15:09:20 +00:00
Christophe Riccio
b19f609f51 Merge branch '0.9.3' into 0.9.4 2012-01-11 20:38:04 +00:00
Christophe Riccio
5eac74c4da Fixed ticket #163, missing inlines 2012-01-11 17:37:44 +00:00
Christophe Riccio
9a394874c3 Promote and deprecate extensions 2012-01-10 20:43:20 +00:00
Christophe Riccio
c26057d07b Merge branch '0.9.3' into 0.9.4 2012-01-10 10:40:00 +00:00
Christophe Riccio
953c80a1d6 Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2012-01-09 11:21:48 +00:00
Christophe Riccio
88d3927558 Updated copyright date 2012-01-09 11:20:01 +00:00
Christophe Riccio
1ed0e3865b Fixed log2 in GCC 2012-01-08 22:36:49 +00:00
Christophe Riccio
8711720b91 Fixed ticket #141, strict aliasing warning 2012-01-08 14:08:07 +00:00
Christophe Riccio
aebcd7ec3f Fixed bug #161, perspectiveFov was written with a left handed coord system. 2012-01-08 13:53:28 +00:00
Christophe Riccio
040ea3ce7e Fixed conflict with Boost, ticket #158 2012-01-08 13:13:18 +00:00
Christophe Riccio
099a37205d Fixed ticket #160, using isnan for isinf impl 2011-12-31 01:59:13 +00:00
Christophe Riccio
1625a495a8 Fixed model, 32/64bits detection on MacOS X 2011-12-18 20:05:02 +00:00
Christophe Riccio
7833ec3369 Merge branch '0.9.3' of ssh://g-truc.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2011-12-17 18:56:22 +00:00
Christophe Riccio
de3305ccef Fixed ticket #157, conflict with WinGDI.h 2011-12-17 18:55:30 +00:00
Christophe Riccio
6102b97b09 Updated doxygen 2011-12-16 23:28:05 +00:00
Christophe Riccio
828005e4fb Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2011-12-16 23:27:04 +00:00
Christophe Riccio
6493ae6784 Updated version 2011-12-12 14:53:45 +00:00
Christophe Riccio
ee00387d2d Promoted the ULP extension 2011-12-12 14:53:30 +00:00
Christophe Riccio
f9e622cd57 Higher conrehence of doxygens types 2011-12-12 11:39:18 +00:00
Christophe Riccio
5969ae0060 Improved doxygen /see references 2011-12-12 11:19:11 +00:00
Christophe Riccio
9a2665d329 Updated documentation reference 2011-12-12 10:54:09 +00:00
Christophe Riccio
331cf5affa Uniformalized see also in doxigen 2011-12-11 12:36:22 +00:00
Christophe Riccio
538ba67fb8 Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2011-12-09 03:14:03 +00:00
Christophe Riccio
f18ad6bf2e Updated doxygen documentation 2011-12-07 14:50:15 +00:00
Christophe Riccio
a3b5034d4e Updated constants list 2011-12-07 12:37:22 +00:00
Christophe Riccio
59b0d3ae00 Updated doxygen documentation 2011-12-07 12:22:28 +00:00
Christophe Riccio
85a187761d Updated documentation and refactoring of GTC_type_ptr code 2011-12-07 10:28:56 +00:00
Christophe Riccio
00d08369f8 Updated compiler version support 2011-12-06 14:54:47 +00:00
Christophe Riccio
e65267468a Improved man pages 2011-12-06 13:42:35 +00:00
Christophe Riccio
7ff95df5e6 Fixed ticket #153, vector and matrix queries 2011-12-06 12:22:43 +00:00
Christophe Riccio
dd244d8d25 Fixed MinGW roundEven bug 2011-12-05 18:08:43 +00:00
Christophe Riccio
888c298192 Fixed build 2011-11-22 22:28:18 +00:00
Christophe Riccio
665a0861f0 Added Unix platform detection 2011-11-22 22:27:44 +00:00
Christophe Riccio
e03c9687d8 Merge branch '0.9.2' into 0.9.3 2011-11-22 18:55:54 +00:00
Christophe Riccio
128c307142 Fixed outerProduct 2011-11-22 18:55:03 +00:00
Christophe Riccio
04958c1564 Added Chrone Native Client support 2011-11-22 18:34:09 +00:00
Christophe Riccio
d09501b7b0 Added epsilon constant and improved queries... still probably broken, need extra test 2011-11-22 17:52:53 +00:00
Christophe Riccio
64da6d3da3 Remove value_size() from vectors 2011-11-22 16:36:09 +00:00
Christophe Riccio
66408cfc4b Fixed ticket #149, misleading call to row_size in the code 2011-11-22 16:24:02 +00:00
Christophe Riccio
d26c9df71d Fixed outerproduct ticket #150 2011-11-22 16:08:21 +00:00
Christophe Riccio
369e929910 Fixed ticket #147 refract for scalar 2011-11-14 18:13:18 +00:00
Christophe Riccio
390498ef87 Fixed refract for double based types 2011-11-14 17:48:39 +00:00
Christophe Riccio
c516145130 Fixed ticket #144 < instead of <= 2011-11-14 12:24:40 +00:00
Christophe Riccio
7f153a2b62 Fixed modf 2011-11-14 11:55:03 +00:00
Christophe Riccio
f2454e61f8 Fixed Android build 2011-10-25 16:29:01 +01:00
Christophe Riccio
173b009d1f Fixed isnan and isinf on Android 2011-10-25 15:02:11 +01:00
Christophe Riccio
a11aa14e86 Added platform detection 2011-10-25 14:15:17 +01:00
Christophe Riccio
bfa79b2a67 Merge branch '0.9.2' into 0.9.3 2011-10-25 13:52:16 +01:00
Christophe Riccio
6525d84e3b Fixed android build 2011-10-25 13:51:36 +01:00
Christophe Riccio
91966f0775 Merge branch '0.9.2' into 0.9.3 2011-10-24 18:15:07 +01:00
Christophe Riccio
cd1569c543 Added product declarations 2011-10-24 18:14:51 +01:00
Christophe Riccio
83f278f922 Fixed doxygen errors 2011-10-24 17:11:09 +01:00
Christophe Riccio
859833fa62 Fixed doxygen error 2011-10-24 15:47:31 +01:00
Christophe Riccio
499e5291e4 Merge branch '0.9.2' into 0.9.3 2011-10-24 00:42:34 +01:00
Christophe Riccio
25b4a14df2 Added missing none squared products 2011-10-24 00:42:24 +01:00
Christophe Riccio
e298ecfe1a Fixed swizzle functions 2011-10-23 00:19:53 +01:00
Christophe Riccio
66a8720bc0 Fixed condition to enable half vector specialization 2011-10-22 22:18:16 +01:00
Christophe Riccio
671ebd40eb Fixed GCC 4.2.4 build 2011-10-22 02:49:28 +01:00
Christophe Riccio
6c00ffa1b4 Fixed roundEven implementation, tests are now passing 2011-10-20 18:13:07 +01:00
Christophe Riccio
774bd01b92 Added link to roundEven what about 2011-10-20 14:16:39 +01:00
Christophe Riccio
5050bfacf7 Fixed setup options 2011-10-20 14:03:08 +01:00
Christophe Riccio
ee15fe5289 Clean up setup 2011-10-20 12:14:24 +01:00
Christophe Riccio
7533265233 Updated style, typo, removed old swizzle macro 2011-10-20 12:00:51 +01:00
Christophe Riccio
d43e671dcd Fixed ln_ten constant 2011-10-20 11:30:05 +01:00
Christophe Riccio
7cbda2e1e2 Added GLM_SUPPORT_SWIZZLE_OPERATOR macro 2011-10-20 11:28:23 +01:00
Christophe Riccio
9db0d3525a Fixed language detection on GCC 2011-10-19 23:45:59 +01:00
Christophe Riccio
a7611bfdf3 Fixed vector half type code broken in a previous merge 2011-10-19 22:49:14 +01:00
Christophe Riccio
840aefa52e Test change 2011-10-19 22:40:11 +01:00
Christophe Riccio
cc8fa8a9c1 Removed dependence with a deprecated extension 2011-10-19 19:02:46 +01:00
Christophe Riccio
1e7923e7b9 Fixed compiler setup options 2011-10-19 19:00:44 +01:00
Christophe Riccio
212e1a1f07 Fixed swizzle functions for single component name mode of vector types 2011-10-19 16:51:50 +01:00
Christophe Riccio
4843f8ffb9 Added swizzle operator from generated functions for non C++11 compiler 2011-10-19 16:49:28 +01:00
Christophe Riccio
9e735277ad Added explicit swizzle functions 2011-10-18 16:27:20 +01:00
Christophe Riccio
b4206636b7 Merge branch '0.9.3' into swizzle 2011-10-18 14:52:46 +01:00
Christophe Riccio
85f2429d0e Fixed vec1 definition 2011-10-18 14:52:17 +01:00
Christophe Riccio
6acbd8582c Added individual swizzle function preprocessor commands 2011-10-18 14:29:31 +01:00
Christophe Riccio
f4b1844b9a Merge branch '0.9.3' into swizzle 2011-10-18 14:15:36 +01:00
Christophe Riccio
be97b8b213 Added vec1 types 2011-10-18 14:14:48 +01:00
Christophe Riccio
1882f16c97 Added GL_NV_gpu_shader5 types 2011-10-18 12:35:13 +01:00
Christophe Riccio
b056a22498 Improved pure code path 2011-10-18 11:21:34 +01:00
Christophe Riccio
911df15e8a Fixed build 2011-10-18 11:02:20 +01:00
Christophe Riccio
12192d9232 Merge branch '0.9.3' into swizzle 2011-10-17 16:26:04 +01:00
Christophe Riccio
8877e038e5 Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2011-10-17 16:16:14 +01:00
Christophe Riccio
e7df27c8ca Updated documentation, fixed typos 2011-10-17 16:13:57 +01:00
Christophe Riccio
d3fd7dfa14 Fixed build, simplify template declaratons 2011-10-14 23:36:21 +01:00
Christophe Riccio
560512f270 Merge branch '0.9.3' into swizzle 2011-10-14 17:43:51 +01:00
Christophe Riccio
13e16886a3 Improve template paramter documentation 2011-10-14 17:43:06 +01:00
Christophe Riccio
9843d38b67 Improved documentation 2011-10-14 17:05:47 +01:00
Christophe Riccio
177e0158b7 Improve documentation 2011-10-14 16:45:48 +01:00
Christophe Riccio
143b7f81d4 Fixed merge 2011-10-14 14:28:38 +01:00
Christophe Riccio
e93b6eb518 Merge branch '0.9.3' into swizzle 2011-10-14 14:08:15 +01:00
Christophe Riccio
8d843a448a Vectorize and reformatting 2011-10-14 14:07:53 +01:00
Christophe Riccio
7e9ca13cde Vectorized 2011-10-14 13:19:15 +01:00
Christophe Riccio
86be6440e3 Vectorize and reformat 2011-10-14 13:15:11 +01:00
Christophe Riccio
dc7d8f5c0c Merge branch '0.9.3' into swizzle 2011-10-14 12:57:25 +01:00
Christophe Riccio
bc15b98730 Reformatting 2011-10-14 12:56:51 +01:00
Christophe Riccio
6f6d161afb Vectorized 2011-10-14 12:48:09 +01:00
Christophe Riccio
6eba3a9db9 Added more vectorize functions 2011-10-14 12:41:45 +01:00
Christophe Riccio
e6fded40dc Vectorize 2011-10-14 11:16:13 +01:00
Christophe Riccio
d070f7cf77 Added semi-automatic vectorizer 2011-10-14 02:42:15 +01:00
Christophe Riccio
fe41daa938 Fixed merge 2011-10-13 21:15:31 +01:00
Christophe Riccio
c54e4902b9 Fixed static assert 2011-10-13 19:29:36 +01:00
Christophe Riccio
f84a38e4b3 Updated error message for unsuported log2 types 2011-10-13 19:16:41 +01:00
Christophe Riccio
742013f6d3 Added integer log2 implementation with compute_log2 class 2011-10-13 19:07:54 +01:00
Christophe Riccio
c004d95bdf Added log2 meta programming implementation 2011-10-13 18:59:25 +01:00
Christophe Riccio
dd02a9afd0 Fixed merge 2011-10-13 18:44:16 +01:00
Christophe Riccio
620861973e Added float_or_int_trait 2011-10-13 18:42:45 +01:00
Christophe Riccio
0add256545 Merge branch '0.9.3' into swizzle 2011-10-13 18:36:52 +01:00
Christophe Riccio
16ef34f9c5 Added log2 for int types 2011-10-13 18:36:44 +01:00
Christophe Riccio
70efce771d Updated date 2011-10-13 12:44:17 +01:00
Christophe Riccio
6277440507 Fixed removed namespace still present 2011-10-13 12:26:11 +01:00
Christophe Riccio
c4af12634b Merge branch '0.9.3' into swizzle 2011-10-13 11:46:09 +01:00
Christophe Riccio
8864136e87 Fixed log2 2011-10-11 20:05:08 +01:00
Christophe Riccio
3c2882439f Added nlz, improved int log2, optimized findMSB with intrinsics 2011-10-11 19:15:41 +01:00
Christophe Riccio
09ee14ad4c Added uint log2 and deprecate GTX_unsigned_int 2011-10-11 15:31:16 +01:00
Ben
bcc8926ebf Add additional swizzle constructors 2011-10-05 11:14:59 -07:00
Christophe Riccio
b5c8d9e812 Fixed merge 2011-10-04 14:20:30 +01:00
Christophe Riccio
5d574ff4f2 Fixed merge 2011-10-03 16:07:05 +01:00
Christophe Riccio
e3da53946e Merge branch '0.9.2' into 0.9.3 2011-10-03 12:40:19 +01:00
Christophe Riccio
8df8569563 Added () operator for swizzling 2011-10-03 12:39:56 +01:00
Christophe Riccio
30e2682230 Merge branch '0.9.2' into 0.9.3 2011-10-02 01:29:07 +01:00
Christophe Riccio
e8ee34e397 Added constructor taking partial swizzle operation parameter 2011-10-02 01:26:35 +01:00
Christophe Riccio
4779a6d990 Merge branch '0.9.2' into 0.9.3 2011-09-30 16:21:49 +01:00
Christophe Riccio
d75db9b8e4 Fixed ticket #111, missing swizzle operations 2011-09-30 16:16:55 +01:00
Christophe Riccio
b7c11b1e6a Added GLM_GTX_constants extension 2011-09-30 15:36:55 +01:00
Christophe Riccio
264054d59d Fixed merge 2011-09-30 15:05:43 +01:00
Christophe Riccio
ac8552d296 Fixed /W4 VC warnings 2011-09-30 14:37:49 +01:00
Christophe Riccio
3def64b49b Fixed matrix division 2011-09-30 14:14:21 +01:00
Christophe Riccio
2438ec04b1 Ticket #129, fixed -Wsign-conversion warnings 2011-09-30 13:57:09 +01:00
Christophe Riccio
35b352168a Fixed revision number 2011-09-30 13:47:38 +01:00
Christophe Riccio
0c0473350f Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2011-09-30 10:16:54 +01:00
Christophe Riccio
5fa3eb9e69 Fixed merge 2011-09-29 16:58:31 +01:00
Christophe Riccio
5431212c55 Fixed /W4 warnings 2011-09-29 16:49:50 +01:00
Christophe Riccio
9cdf63331e Added noise2, noise3 and noise4 draft implementation 2011-09-28 10:27:43 +01:00
Christophe Riccio
9c8930e630 Promoted noise extension to GTC 2011-09-27 10:22:29 +01:00
Christophe Riccio
0abdaee9b4 typo 2011-09-26 02:20:23 +01:00
Christophe Riccio
283f7882da Merge branch '0.9.3' into swizzle 2011-09-25 05:17:41 +01:00
Christophe Riccio
97e07f6660 Typo / style 2011-09-25 05:09:34 +01:00
Christophe Riccio
ca88ff50dd Fixed build 2011-09-25 02:25:26 +01:00
Christophe Riccio
387854dbe3 Fixed and tested disk and ball rands 2011-09-24 23:51:49 +01:00
Christophe Riccio
695b058096 Fixed and tested circular and spherical rands 2011-09-24 23:36:42 +01:00
Christophe Riccio
1d05f79eb8 C++11 tests 2011-09-24 23:25:09 +01:00
Christophe Riccio
156235e574 Merge branch '0.9.3' into swizzle 2011-09-24 13:56:54 +01:00
Christophe Riccio
a1789110e7 Fixed build 2011-09-24 13:56:36 +01:00
Christophe Riccio
2912e726be Fixed build on G++ 2011-09-24 13:40:55 +01:00
Christophe Riccio
1e8802fa47 Replace spaces by tabs 2011-09-24 13:14:15 +01:00
Christophe Riccio
1eb86ac921 Fixed merge 2011-09-24 13:09:47 +01:00
Christophe Riccio
42cfff00a1 Merge branch '0.9.3' into swizzle 2011-09-23 20:39:46 +01:00
athile
1245dc51f3 Merge branch '0.9.3' of git://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math 2011-09-23 14:10:59 -04:00
athile
124923154b Fix swizzle size defect and further clean-up 2011-09-23 14:08:52 -04:00
athile
6d83744b39 Simplify swizzling implementation into one swizzle class 2011-09-23 13:37:07 -04:00
athile
44bd721a41 Swizzle clean-up 2011-09-23 11:51:21 -04:00
Christophe Riccio
c7e5c17898 Added disk and ball rand implementations 2011-09-23 09:59:13 +01:00
Christophe Riccio
5f52e6a82f Added spherical and circular rand implementations 2011-09-23 09:14:25 +01:00
athile
a762f19861 Further swizzle work. 2011-09-22 14:56:39 -04:00
Christophe Riccio
3aefc82e95 Added linearRand implementation 2011-09-22 09:58:57 +01:00
athile
6dee4eabc4 WIP swizzle. Note: glm::dot() now working for swizzled vec3, but mysteriously not for vec2 or vec4. 2011-09-21 20:09:34 -04:00
athile
2851081b66 Incremental work on improving swizzles. 2011-09-21 16:49:42 -04:00
Christophe Riccio
1caa95f895 Merge branch '0.9.3' into swizzle 2011-09-21 21:38:22 +01:00
Christophe Riccio
dd2de8b20d Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3 2011-09-21 21:11:44 +01:00
Christophe Riccio
a18a7dfac9 Added new GTC API for random 2011-09-21 21:10:51 +01:00
athile
73d5e729c1 WIP swizzles 2011-09-21 14:39:50 -04:00
Christophe Riccio
b2b664e9d9 Updated simplex3d implementation 2011-09-21 19:37:10 +01:00
athile
fe9a5562c1 Binary operators for swizzle/vec combinations 2011-09-21 12:42:35 -04:00
athile
5d3c6fb4ca Start implementation for swizzle operaators. operator+ and operator- have been added. 2011-09-21 12:19:27 -04:00
athile
24879d4580 Sync up to branch 0.9.3 2011-09-21 11:25:30 -04:00
Christophe Riccio
c02178c7f9 Fixed merge 2011-09-21 11:34:49 +01:00
Christophe Riccio
64453fd44e Fixed half vectors on VC + MS lang ext 2011-09-21 10:53:10 +01:00
Christophe Riccio
cec8665d16 Fixed ticket #128, bitfield based on vec types 2011-09-21 10:50:54 +01:00
Christophe Riccio
c998734914 Restore MS version of hvec* 2011-09-21 09:01:04 +01:00
athile
6022ff616e Swizzle updates to handle non-POD types (e.g. hvec3) correctly 2011-09-20 22:21:15 -04:00
athile
f09aa1c177 First pass at adding swizzling members. 2011-09-20 20:17:52 -04:00
Christophe Riccio
bf698ec3e6 Clean up half old cast operators and added counter ops tests 2011-09-20 18:11:46 +01:00