Commit graph

3060 commits

Author SHA1 Message Date
Jeff Burnett
69b130c162 Fix uninitialized in constexpr warning
Matrix multiplication functions that were recently marked as 'constexpr'
in commit '1cc8e80e3ba140239196d9a4597a2ea8139a4aa5' can throw warnings
about an "uninitialized variable 'Result' in constexpr function".

Change-Id: I95396da9ac8a6e0dd1b6ae4e782f75446cfa70a3
2025-01-23 09:10:55 +01:00
christophe
af86309663 Fix missing newline 2025-01-22 21:40:13 +01:00
ZXShady
e54e16f3da Add C++17 structureed binding support
Add C++17 Structured Bindings support for vec,mat,quat types
2025-01-22 21:40:13 +01:00
steimich96
edc3607b39 Fixed nvcc compile warnings for default constructor 2025-01-22 12:00:05 +01:00
Christophe
44c0039c7c Revert "Fix a wrong macro for tdualquat ctor"
This reverts commit 9b15c54c8c.
2025-01-21 19:05:55 +01:00
christophe
abcc96b4b9 Fix macOS C.I. 2025-01-21 18:50:33 +01:00
christophe
303a9d79ed Fix C.I. failure 2025-01-21 17:42:41 +01:00
Christophe
9e6f0ec1f6 Disable GTX test failing on Ubuntu latest GCC 13.3.0 2025-01-21 17:42:41 +01:00
Marcin Konowalczyk
7a878c2372 link to newer version 2025-01-16 15:58:34 +01:00
Marcin Konowalczyk
e7d5bdafa7 updated paper link too 2025-01-16 15:58:34 +01:00
Marcin Konowalczyk
f27f0e0026 Update noise.inl 2025-01-16 15:58:34 +01:00
Christophe
18feaec455
Merge pull request #1311 from alusch/neon-compile-error
Fix build error with GLM_FORCE_INTRINSICS and NEON #1311
2025-01-05 12:56:26 +01:00
Christophe
5221557360
Merge pull request #1315 from gdh1995/fix/dahan_macro_name
Fix a wrong macro for tdualquat ctor #1315
2025-01-04 09:44:32 +01:00
Christophe
f6341a1feb
Merge pull request #1317 from Zuzu-Typ/fix-matrix-clip-space
Fixed infinitePerspective declarations and definitions
2025-01-04 09:39:24 +01:00
Christophe
5b295d8a45
Merge pull request #1312 from qbojj/patch-1
fix levels() calculation for scalars #1312
2025-01-04 09:37:56 +01:00
Christophe
3c18b0f815
Merge pull request #1328 from helynranta/fix-missing-functions
Fix module interface missing some gtx quaternion functions
2024-12-25 12:32:24 +01:00
Lassi Helynranta
3adb4236fe Fix module interface missing some gtx quaternion functions 2024-12-11 20:17:37 +02:00
Nikita Lutsenko
4006273cb3
Remove Android-specific detection of GLM_HAS_CXX11_STL
Android NDK starting from r18 has libcxx, and it's the only STL available. (reference: https://developer.android.com/ndk/guides/cpp-support#cs)

r18 is ~6 years old at this point.
This check dates to ~8 years ago (predating r18) and was important at that time.

Right now, it can be clearly stated that given the C++11 requirement stated in README for GLM, as well as (unless you are building with very outdated toolchain) - all modern Android is built with NDK toolchain that is newer than r18 - this check can be removed, and all the functionality can by default delegate to general detection for STL compatibility.
2024-10-29 16:53:18 -07:00
Zuzu-Typ
d03194c053 Fixed infinitePerspective declarations and definitions
+ infinitePerspectiveLH_ZO, RH_NO, etc. now have a declaration
+ infinitePerspectiveLH and RH now have a definition again.
2024-10-11 14:40:31 +02:00
gongdahan
9b15c54c8c Fix a wrong macro for tdualquat ctor 2024-10-08 11:09:42 +08:00
Janeczko Jakub
23551ae74e
fix levels() calculation for scalars 2024-09-09 02:27:13 +02:00
Adam Lusch
b30313ac30 Fix unused argument warning 2024-09-03 17:35:27 -05:00
Adam Lusch
437fe63665 Add missing template parameter 2024-09-03 17:35:11 -05:00
Forest Fox
45008b225e Fixed vec equality check function from the compute_vector_decl.hpp file 2024-04-21 20:20:02 +02:00
Tobias Markus
a2844eede8 Use [[deprecated]] when CXX standard is at least 14
Fixes #1269
2024-04-12 10:35:07 +02:00
Tom Kneiphof
0904870e37 Fix log2 func. qualifier 2024-04-08 14:50:51 +02:00
Laurent Caumont
4137519418 Simd improvement
- Add simd aligned_vec3 (and sse aligned_dvec3 - 2 x xmm)
- Fast packed_vec3 <=> aligned_vec3 and packed_vec4 <=> aligned_vec4 conversion
- Fast aligned_vec3 <=> aligned_vec4 conversion
- Optimized aligned_mat x aligned_mat and aligned_mat x aligned_vec
- Inverse aligned_mat3 simd version (actually slower than ssid on my computer even it has 30% less instruction ?)
2024-03-19 15:00:13 +01:00
Tom Kneiphof
ab913bbdd0 Add value_ptr method for vec1 types 2024-03-12 15:57:53 +01:00
Tom Kneiphof
05c93eeae0 Use value_ptr in packing.inl 2024-03-12 15:57:53 +01:00
Tom Kneiphof
08a11905cf Fix sign-compare warnings 2024-03-12 15:57:53 +01:00
Christophe
7a812397a2 Disable unit tests by default to avoid C.I. time out 2024-03-06 15:43:46 +01:00
Christophe
61caae4d05 Fix GTX_norm cyclic include 2024-03-06 10:58:47 +01:00
Aaron Brady
e009bcbe7c Update hash.hpp to detect msvc
this causes errors when building on windows with cl
2024-03-06 10:58:32 +01:00
Noah Hitz
49942a611c Fixed typos 2024-03-05 00:21:20 +01:00
Christophe
1f25000a30 Quicker unit tests 2024-02-28 11:45:24 +01:00
Christophe
3ac3589ed2 Fix GTX_number_precision build #1258 2024-02-28 11:45:24 +01:00
Christophe
adf31f555e Revert SIMD improv 7f2a5b89b3 2024-02-14 10:49:35 +01:00
Christophe
5d73e17e58 Added C++17 [[nodiscard]] support #1217 2024-02-10 17:09:18 +01:00
Christophe
1ac95994c4 Fixed SIMD smoothstep 2024-02-10 17:09:18 +01:00
Christophe
b101e8f3de Fixed SIMD implementation #1222 2024-02-09 14:19:23 +01:00
Christophe
90f2b025b1 Fixed EXT_matrix_transform inverted shear matrix multiple #1140 #1182 2024-02-08 20:42:33 +01:00
Christophe
9e72e5ae67 Fix and ignore warnings 2024-02-08 20:35:21 +01:00
Laurent Caumont
7f2a5b89b3 Simd improvement
- Add simd aligned_vec3 (and sse aligned_dvec3 - 2 x xmm)
- Fast packed_vec3 <=> aligned_vec3 and packed_vec4 <=> aligned_vec4 conversion
- Fast aligned_vec3 <=> aligned_vec4 conversion
- Optimized aligned_mat x aligned_mat and aligned_mat x aligned_vec
- Inverse aligned_mat3 simd version (actually slower than ssid on my computer even it has 30% less instruction ?)
2024-02-08 20:35:21 +01:00
Christophe
88a6ed6ee1 Visual C++: Enables /Wall 2024-02-08 15:15:31 +01:00
Christophe
4eb3fe1d7d fcomp: Fix build in C++98 mode 2024-02-07 14:20:28 +01:00
Maximilian Sackel
c9ca4dc77c Implementing fcompMin / fcompMax, closes g-truc/glm#1215 2024-02-07 14:20:28 +01:00
Christophe
31a5f56a7c Fix epsilon not declared in color_space.inl #1233 2024-02-06 20:37:11 +01:00
junjie020
dcb8496300 replace GLM_FORCE_QUAT_CTOR_XYZW to GLM_FORCE_QUAT_DATA_XYZW 2024-02-06 15:23:54 +01:00
Krzesimir Nowak
38edba1818 Avoid warnings about comparisons being always true
Depending on the signedness of length_t type we may either get
warnings comparison of unsigned expression in ‘>= 0’ being always true
or do insufficient checking by not checking if index is not negative.

Hide the index checking behind a macro that check the index properly.
2024-02-06 15:19:45 +01:00
Björn Wahlstrand
8ebe4b5e57 Fix compare that is always true 2024-02-03 20:06:18 +01:00