Commit Graph

4574 Commits

Author SHA1 Message Date
Christophe
949028f675
Merge pull request #1016 from brunotl/master
neon : fix "unused function" warning #1016
2020-07-09 10:33:29 +02:00
Christophe
5c285ad647
Merge pull request #1020 from r0mai/cpp14-clang
Support clang in C++1z mode #1020
2020-07-09 10:31:57 +02:00
Arthur Danskin
d2ebd5248e make GLM_FORCE_XYZW_ONLY work with GLM_SWIZZLE_FUNCTION 2020-06-29 19:59:41 -04:00
Arthur Danskin
3b3db0fc5a make GLM_CONFIG_XYZW_ONLY work with GLM_SWIZZLE_FUNCTION 2020-06-29 01:54:26 -04:00
Andras Kucsma
82e5f32f04 Support clang in C++1z mode
Certain older clang versions signal C++1z mode by defining
__cplusplus as 201406L. Support this as if it were C++14.

https://github.com/llvm/llvm-project/blob/llvmorg-3.6.2/clang/lib/Frontend/InitPreprocessor.cpp#L374
2020-06-25 15:06:19 +02:00
Daniel Scharrer
dfdeb9b284 Fix singularity in quaternion to euler angle roll conversion 2020-06-24 23:32:48 +02:00
Kevin Ring
4c79cd1781
Fix comment alignment. 2020-06-24 17:26:46 +10:00
Kevin Ring
c80fd556b6
Fix a typo in the manual, glm/geometry.hpp -> glm/geometric.hpp 2020-06-24 17:25:07 +10:00
Bruno de Lacheisserie
a584c01fb5 neon : fix "unused function" warning
static function in header file must have explicit inline specifier.
2020-06-07 12:09:55 +02:00
serkan3k
1f4ef63d00
Fixed typo in documentation
A typo in acos function description is changed.
2020-05-19 22:19:11 +03:00
Craig Bosma
f8bf087caa
Fix quaternion orientation in glm::decompose 2020-05-11 14:33:51 -05:00
Karol Kontny
e9ab34e0f0 Fixed warning when compiling with MSVS in SIMD mode 2020-05-11 15:26:46 +02:00
christophe
23e0701c04 Updated readme and GLM version 2020-05-02 19:00:56 +02:00
christophe
a44e293c40 Reading GLM version in CMake using REGEX on GLM header 2020-05-02 18:32:19 +02:00
Christophe
280ba02382
Merge pull request #1010 from C3NZ/master
Fix the readme example to successfully include `glm::pi` #1010
2020-05-01 10:54:06 +02:00
C3NZ
fc6966be28 [fix] readme to include glm::pi from scalar_constants.hpp and not constants.hpp, which seems to be where pi lives as of latest release. 2020-04-26 12:51:11 -07:00
Christophe
7574b172e9
Merge pull request #1009 from Zuzu-Typ/master
Fixed incorrect assertion for min and max #1009
2020-04-26 13:18:11 +02:00
Zuzu-Typ
b39c3550af Fixed assertion (min, max) 2020-04-23 11:07:14 +02:00
Zuzu-Typ
aa6a2757a5
Merge pull request #1 from g-truc/master
Update from master
2020-04-23 11:04:09 +02:00
Christophe
e944b22f20
Merge pull request #1008 from blat-blatnik/master
Better .natvis file #1008
2020-04-22 19:29:50 +02:00
blat-blatnik
ef44390073
Merge pull request #1 from blat-blatnik/better-natvis
Added features to the .natvis file
2020-04-17 00:37:08 +02:00
blat-blatnik
2cc2c3ae6e
Added features to the .natvis file
I've been using this natvis file in some personal projects that use GLM and I've found it to be very helpful when debugging GLM code.

vectors are displayed in the debugger like this:

glm::vec4 v(1, 2, 3, 4); // [1 2 3 4]

when expanding the view, the debugger will show each individual component, as well as the length of the vector, and hex RGBA code (for float vectors only), like this:

glm::vec4 v(0.5); // [0.5 0.5 0.5 0.5]

[len]   1
[rgba] #7F7F7F7F
x         0.5
y         0.5
z         0.5
w        0.5

Matrices are displayed in row major order when expanded in the debugger like this:

glm::mat4 m = glm::translate(glm::mat4(1), glm::vec3(1, 2, 3));
// [1 0 0 0] [0 1 0 0] [0 0 1 0] [1 2 3 1]

row 1   [1 0 0 1]
row 2   [0 1 0 2]
row 3   [0 0 1 3]
row 4   [0 0 0 1]
columns
  - col 1    [1 0 0 0]
  - col 2    [0 1 0 0]
  - col 3    [0 0 1 0]
  - col 4    [1 2 3 1]

Quaternions are displayed as: w + xi + yj + zk

glm::quat q(1, 2, 3, 4); // 1 + 2i + 3j + 4k

Dual quaternions are displayed as:

glm::dualquat dq(q, q); // [r: 1 + 2i + 3j + 4k] [d: 1 + 2i + 3j + 4k]
2020-04-17 00:35:24 +02:00
christophe
bf71a83494 Updated release date 2020-04-13 19:41:16 +02:00
christophe
b4c5bb6c1a Fixed singularity check for quatLookAt #770 2020-04-12 18:32:33 +02:00
christophe
8aa60bbeff Tentative fix of Clang warnings 2020-04-12 16:33:44 +02:00
christophe
c039ac6eb6 Tentative fix of version test 2020-04-12 16:14:42 +02:00
christophe
ecca935580 Updated readme 2020-04-12 16:09:31 +02:00
christophe
bf44be3105 Fixed invalid line 2020-04-12 16:04:40 +02:00
christophe
488be5b75a Merge branch 'master' of https://github.com/g-truc/glm 2020-04-12 15:59:27 +02:00
christophe
a3e188f946 Fixed grammar #990 2020-04-12 15:27:00 +02:00
Christophe
2a2008df33
Merge pull request #1003 from wojcikt/fix-cmake-config
Fix glmConfig-version.cmake using undefined variable #1003
2020-04-12 14:54:08 +02:00
Tomasz Wójcik
2c84530227 Fix glmConfig-version.cmake using undefined variable 2020-03-17 20:07:08 +01:00
Christophe Riccio
f4c6667347 Fixed unnecessary warnings from matrix_projection.inl #995 2020-03-05 23:46:36 +01:00
Christophe Riccio
2a65978348 Merge branch 'master' of https://github.com/g-truc/glm into matrix-int 2020-03-05 18:52:28 +01:00
Christophe
efbfecab63
Merge pull request #996 from Bargor/quaternion-slerp-multiple-spins
Quaternion slerp overload which interpolates with extra spins #996
2020-03-05 18:51:49 +01:00
Christophe
6b458cb173
Merge pull request #966 from Twinklebear/master
Add Simpler GLM CMake Config #966
2020-03-05 18:47:13 +01:00
Kontny Karol
31d01b525e Quaternion slerp overload which interpolates with extra spins
Signed-off-by: Karol Kontny <barolek@gmail.com>
2020-02-28 00:01:52 +01:00
Will Usher
739a16e6d1 fix travis as well 2020-02-19 09:10:57 -07:00
Will Usher
e6af446716 fix manual glm_DIR mention 2020-02-16 14:38:27 -08:00
Will Usher
681b8badcd Fix appveyor glm_DIR path 2020-02-16 14:37:37 -08:00
Will Usher
4d47b27333 Adjust cmake file paths to match make install for distribution 2020-02-16 14:33:59 -08:00
Will Usher
a331771ea8 Merge remote-tracking branch 'upstream/master' 2020-02-16 14:07:18 -08:00
Christophe Riccio
a4bf8867c2 Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests 2020-02-11 12:53:12 +01:00
Christophe Riccio
e8d758f746 Added integer matrix extensions and fixed build 2020-02-11 11:44:52 +01:00
Christophe Riccio
0d9abe3725 Added missing EXT extensions 2020-02-10 21:44:31 +01:00
Christophe Riccio
c4fd0b3aa3 Clean up integer matrix 2020-02-10 20:22:47 +01:00
Christophe Riccio
9e7a486c0e Added matrix integer extensions and tests 2020-02-10 19:06:30 +01:00
Christophe Riccio
684817db46 Clean up integer precision 2020-02-08 16:21:22 +01:00
Christophe Riccio
79d78bbdde Work on integer matrix 2020-02-07 17:45:02 +01:00
Christophe Riccio
6bd53cc9e5 Added files for EXT packing extensions 2020-02-07 15:20:42 +01:00