Commit Graph

2995 Commits

Author SHA1 Message Date
christophe
5bb1612f39 Remove invalid change 2023-12-21 17:18:08 +01:00
christophe
a5e720b0b1 GLM bumps to version 1.0.0 2023-12-21 17:15:50 +01:00
christophe
137a7e2d89 Enable alignof C++11 and onwards instead of CXXMS #1093 2023-12-21 16:17:56 +01:00
christophe
48516f31a7 Fix vec1 types redefinition 2023-12-21 16:16:52 +01:00
christophe
ec6e3d6cb5 Fix invalid namespaces 2023-12-21 16:16:52 +01:00
christophe
4681c5b347 Fix lib build dependent of test build 2023-12-21 15:20:01 +01:00
azhirnov
ed1059731f add infinitePerspectiveRH_ZO 2023-12-21 14:12:18 +01:00
azhirnov
9cb19aa43f Added infinitePerspectiveLH_ZO and tests
Renamed infinitePerspectiveLH -> infinitePerspectiveLH_NO
2023-12-21 14:12:18 +01:00
christophe
926e5d4b70 Add tau constant ##1153 2023-12-21 13:25:48 +01:00
christophe
85f2e6b998 Add tau constant ##1153 2023-12-21 13:25:48 +01:00
christophe
08f2fd1099 Fix C++20 2023-12-21 13:25:48 +01:00
christophe
edc5e624df Fix build 2023-12-21 13:25:48 +01:00
christophe
46818dccca fix: reinterpret_cast to explicit conversions #1123 2023-12-21 13:25:48 +01:00
christophe
f1bfe6cc95 Fix C++20 build 2023-12-21 13:25:48 +01:00
Christophe
c83236b044 cuda: Fix GTX_vec_swizzle 2023-12-21 00:49:14 +01:00
Christophe
2171a5b818 Fix intersectRayTriangle from GLM_GTX_intersect #1158 2023-12-21 00:47:13 +01:00
Christophe
c568980cf5 Revert broken vec4 SIMD 2023-12-20 22:33:20 +01:00
Christophe
edecbf1c59 Revert "Add support for non aligned SIMD for vec4"
This reverts commit 4e01e940de.
2023-12-20 22:33:20 +01:00
Christophe
2d38c41161 Fixes for tests build 2023-12-20 22:33:20 +01:00
Rafal Bielski
586a402397 Remove the SYCL hacks
This reverts PR #914 which introduced a hacky way to replace
all std namespace maths function calls with sycl namespace ones.

Presumably the original intention was to use GLM functions in SYCL
device code (e.g. on GPUs) and force it to use the maths implementations
optimised for the target device. However, this has been very limited
in scope since the start because GLM relies heavily on function pointers
which are illegal to use inside SYCL device code.

The hacky solution shadowing std namespace with glm::std is problematic
in many ways. One was that it required re-introducing all std symbols used
across GLM codebase back to glm::std. The list of these symbols is difficult
to maintain over time without extensive CI testing and unsurprisingly it got
broken. Any code just including (some of) GLM headers now no longer compiles
with SYCL compilers even if GLM is only used on the host side (CPU code).

Remove this hack to allow SYCL programs using GLM on the host side to compile.

The original hack was tested against the ComputeCpp compiler which is now
phased out in favour of Intel's DPC++. Remove also the mention of ComputeCpp
from README. The statement about "any C++11 compiler" still covers the host
code compilation with DPC++.
2023-11-09 11:37:13 +01:00
Laurent Caumont
1b0f61e285 Add support for non aligned SIMD for vec4
It is used as default configuration for Visual Studio 64 bits compilation (needs Language Extension).
code changes:
- add new qualifiers:
  unaligned_simd_highp
  unaligned_simd_mediump
  unaligned_simd_lowp
- add use_simd and replace is_aligned
(code for ARM NEON is added but not tested)
2023-11-08 09:30:26 +01:00
Christophe
d46ce89c74
Merge pull request #1148 from Vadmeme/master
Made GLM_FORCE_QUAT_DATA_XYZW be supported by most major functions #1148
2023-08-18 15:13:52 +02:00
Christophe
65c16d5da1
Merge pull request #1146 from stephen-hqxu/cuda-constexpr-abs
Fix: CUDA compiler error on constexpr abs function #1146
2023-08-18 15:09:10 +02:00
Christophe
ae668c4e7f
Merge pull request #1144 from stephen-hqxu/cuda-default-function
Revert and fix: Follow-up improvement for #1107 #1144
2023-08-18 15:08:02 +02:00
Christophe
db0f79de12
Merge pull request #1137 from tetrisplusplus/fix_glm_gtx_matrix_query_isOrthogonal
fix: isOrthogonal for a zero matrix #1137
2023-08-18 15:04:55 +02:00
Christophe
99fe1c8f7d
Merge pull request #1142 from thp/recompose
gtx_matrix_decompose: Add glm::recompose() #1142
2023-08-18 14:55:41 +02:00
Christophe
13b40e378a
Merge pull request #1147 from marksheppard/fix
Fix Clang 15 test build errors #1147
2023-08-18 14:52:55 +02:00
Christophe
684822982b
Merge pull request #1150 from fsmoke/gcc-warnings-fix
gcc x64 build warning fix around type casting size_t to int #1150
2023-08-18 14:49:45 +02:00
Christophe
b5776a91ae
Merge pull request #1154 from tomix1024/fix-atan2-declaration
Fix atan2(y,x) #1154
2023-08-18 14:48:57 +02:00
Christophe
b3a6570096
Merge pull request #1118 from rleigh-codelibre/float-sig-consistency
Make vec4, mat4x3 and mat4x4 binary operators and contructors for scalars consistent with other types #1118
2023-08-18 14:46:24 +02:00
Tom Kneiphof
21db8fbdcb Fix atan2(y,x) 2023-07-10 12:28:42 +02:00
Christophe
5c46b9c070
Merge pull request #1149 from leokolln/patch-1
Fix docs, incorrect and inconsistent handiness descriptions #1149
2023-06-08 17:08:47 +02:00
Gergely Racz
6486113379 apply static_cast before calling mask in bitfieldInsert 2023-05-12 11:09:41 +02:00
kostromin
d4717fb57e gcc x64 build warning fix around type casting size_t to int 2023-04-21 10:49:22 +03:00
Léo Willian Kölln
738b4375c3
Fix docs, inconsistent spelling of handiness 2023-04-18 01:14:18 -03:00
Léo Willian Kölln
cbc5229400
Fix docs, left and right handness were swapped 2023-04-18 01:03:24 -03:00
Woob
9398c5843f Fix SIMD quat operations. 2023-04-02 12:55:40 -07:00
Woob
c6606998a5 Made GLM_FORCE_QUAT_DATA_XYZW be supported by most major functions 2023-04-01 14:50:37 -07:00
Mark Sheppard
3cb568cd37 Fix Clang 15 test build errors
Fixes for compiler errors when building the tests using Clang 15,
including:

    * Use explicit cast to silence Wimplicit-int-float-conversion
      warning for conversion of spin count in implementation of
      glm::slerp.
    * Use GLM_FORCE_MESSAGES instead of removed GLM_MESSAGES for
      messages in glm/gtx/hash.hpp, avoiding Wundef warning.
    * Encode en dash in URL for Gram-Schmit Process wikipedia page and
      replace similar en dashes in comments with regular dashes, to
      avoid Winvalid-utf8 warnings in glm/gtx/matrix_factorisation.inl.
    * Replace degree sign symbol with text "degrees" to avoid
      Winvalid-utf8 warnings in test/gtc/gtc_quaternion.cpp.
    * When using Clang, build tests with -Wno-float-equal to silence
      Wfloat-equal warning in implementation of glm::vec<L,T,Q>::equal.
    * For performance tests in test/gtx/gtx_fast_trigonometry.cpp, add
      statement explicitly casting result to void, to silence
      Wunused-but-set-variable warnings.
    * Add newline at end of test/gtx/gtx_hash.cpp to silence
      Wnewline-eof warning.
    * Rename namespace _1aga to agarose in test/gtx/gtx_pca.cpp to
      avoid Wreserved-identifier warning.
2023-03-31 17:39:53 +01:00
Stephen Xu
f8a9e5043f
Remove *constexpr* from *compute_abs* on CUDA 2023-03-30 19:23:00 +01:00
Stephen Xu
91c9409959
Use different qualifiers for default function and constructor
So it is more robust against user configuration to force constructor initialisation
2023-03-21 19:08:25 +00:00
Stephen Xu
140e7cf1b2
Use different function qualifier for default-able functions 2023-03-21 16:29:36 +00:00
Stephen Xu
7e80d9582e
Revert PR #1107 due to potential ill-formed NDR 2023-03-21 15:52:57 +00:00
Thomas Perl
4afe953bff gtx_matrix_decompose: Add glm::recompose() 2023-02-26 18:33:47 +01:00
tetrisplusplus
e48b2a72c8 Improved performace. 2023-01-23 21:41:27 +09:00
tetrisplusplus
96b1c72bfc Fixed isOrthogonal, return false for zero matrix 2023-01-23 21:27:02 +09:00
Gottfried Leibniz
36aa3e75b2 fix: declarations 2023-01-09 17:48:57 -04:00
Thibault de Villèle [UM]
1c18fca789 Fix GLM_EXT_matrix_common : row to column-major
The previous patch made the incorrect assumption matrices were row-major
instead of column-major (got the two mixed up in my head).

This fixes this problem.

Also, this extends the test files to cover all matrix sizes (not types,
that would be redundant).
2022-10-26 11:17:23 +02:00
Christophe
0a6d3334ea
Merge pull request #1086 from imgly/imgly/fix/vdivq_f32_undefinded_armv7
Fixed use of undeclared identifier 'vdivq_f32' while compile for ARMv7 #1086
2022-10-24 12:54:34 +02:00
Christophe
e250ffe36d
Merge pull request #1109 from EbiSadeghi/master
Documentation: spelling, grammar, and clarity #1109
2022-10-24 12:50:49 +02:00