michaelg
1bce62c371
Add function glm_perspective_lh_zo
...
This commit adds the function `glm_perspective_lh_zo`, modelled on the
implementation of glm_perspective, but amended to provide a left-hand
coordinate system expected by DirectX, Metal and Vulkan (per the GLM
project's `glm/detail/setup.hpp`). It uses a clip-space of zero-to-one.
The function is tested against a longhand version of the algorithm it
seeks to implement as well as against the output of the GLM project's
`glm::perspectiveLH_ZO` function. This commit adds a new subdirectory
`test/glm_cmp` which contains a basic CMake file and `main.cpp`. An
interested user should link or copy or clone the GLM project into this
directory. The `main` function can be used to print the reference data
used so others can verify behaviour in the future, or add new literal
reference values.
2021-05-13 23:18:05 +02:00
Recep Aslantas
a242d83805
style: rename nearVal, farVal to nearZ and farZ
2021-05-08 22:42:44 +03:00
Sundaram Ramaswamy
83dbdcc4a9
Add nlerp tests
2021-05-07 01:21:28 +05:30
Recep Aslantas
55ebbdbe40
arm, neon: neon/fma support for glm_inv_tr()
2021-04-28 14:46:14 +03:00
Randy
a9b06e4b35
gcc: fix warnings ( #156 )
2020-08-04 19:57:10 +03:00
Randy
208f8073ad
test: don't link 'm' with msvc
2020-08-03 22:47:23 +02:00
Recep Aslantas
2242e9a5e1
2d: add tests for rotate2d and its friends
2020-07-31 18:21:23 +03:00
Recep Aslantas
0127d30fa8
2d: add scale2d and its friends
2020-07-31 13:49:33 +03:00
Recep Aslantas
9b13b2f872
add tests for translate2d functions
2020-07-31 12:43:46 +03:00
Recep Aslantas
40d903c2bc
build: define CGLM_DEFINE_PRINTS to enable print functions for test results
2020-07-31 12:41:53 +03:00
Recep Aslantas
c0a4c245f0
tests: add test for frustum
2020-05-28 14:19:35 +03:00
Recep Aslantas
acc0885e52
tests: add option to disable colors in test output
...
* because some terminals may not support colors, in that case, colors can be disabled by defining `GLM_TESTS_NO_COLORFUL_OUTPUT`
2020-05-28 11:47:13 +03:00
Recep Aslantas
a1485a14f6
option to override FLT_EPSILON with GLM_FLT_EPSILON
2020-05-26 23:00:00 +03:00
Recep Aslantas
7e142132bf
win: suppress warning; C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition
2020-05-17 19:24:48 +03:00
Recep Aslantas
099522ada3
fix LICENSE alignments
2020-05-02 22:32:57 +03:00
Recep Aslantas
8eddeb77d0
win: fix print function for _DEBUG and supress warnings
2020-05-01 01:03:20 +03:00
Felipe Munoz Mazur
18fe47d0c7
Merge branch 'master' into cmake
2020-04-10 00:33:07 -04:00
Recep Aslantas
47807b7955
Update test_ray.h
2020-04-06 16:44:07 +03:00
Uwila
7bcd7609eb
Fix test_ray.h style
2020-04-06 11:43:12 +02:00
Uwila
90eb164a43
Add tests for cglm_ray_triangle
2020-04-06 11:42:23 +02:00
Uwila
78b2e2d2cc
Add tests for glm_ray_triangle
2020-04-06 11:38:27 +02:00
FMMazur
be68d57499
CMake: Added 'make check' as alias to 'make test'
2020-03-27 15:31:55 -04:00
FMMazur
d4235b2431
CMake: Added test configuration
2020-03-27 11:19:56 -04:00
Recep Aslantas
eb0d47cfa1
vec2: add struct version for vec2 and vec2-ext
2020-02-25 14:34:11 +03:00
Recep Aslantas
638b9f6dbe
fix 'function declaration isn’t a prototype'
2020-02-24 23:11:03 +03:00
Recep Aslantas
ad9370537c
add tests for mat2 and its call version
2020-02-24 22:14:26 +03:00
Recep Aslantas
43ae3b332a
add tests for vec2 and its call version
2020-02-24 10:06:19 +03:00
Recep Aslantas
8a068c3291
Merge branch 'master' into vec2_mat2
2020-02-23 13:10:36 +03:00
Recep Aslantas
4a7c153d2d
tests: fix test for mul_rot
2020-02-23 11:19:30 +03:00
Recep Aslantas
7b0f62f1eb
tests: add some tests for affine matrices
2020-02-22 10:54:47 +03:00
Recep Aslantas
0c8dc070d5
tests: tests for affine transforms (continue)
2020-02-22 10:29:16 +03:00
Recep Aslantas
0822d46cd9
tests: tests for remaining rotations
2020-02-22 00:58:04 +03:00
Recep Aslantas
3fca734c30
tests: remove unused variables
2020-02-22 00:48:41 +03:00
Recep Aslantas
5995269195
tests: add tests for some affine rotations
2020-02-21 17:52:50 +03:00
Recep Aslantas
6b32b5dc35
tests: add tests for affine scales
2020-02-21 16:57:09 +03:00
Recep Aslantas
a1f7afe055
Update test_affine.h
2020-02-21 15:56:15 +03:00
Recep Aslantas
81ae182972
tests: add tests for affine translations
2020-02-21 15:52:34 +03:00
Recep Aslantas
de85a4eb2b
quat: add tests for quat_rotate_at[m]
2020-02-21 14:28:41 +03:00
Recep Aslantas
e7a0906bc2
quat: add tests for quat_rotate
2020-02-21 11:48:25 +03:00
Recep Aslantas
6aa8df8e9b
quat: add tests for quat_rotatev
2020-02-21 10:51:53 +03:00
Recep Aslantas
2278eba93c
quat: fix quat_for and quat_forp implementations
2020-02-20 23:37:35 +03:00
Recep Aslantas
349dc274f4
add forward vector as macro (vec3, RH)
...
* this will be used for where Vec3.Forward is needed
2020-02-20 15:19:20 +03:00
Recep Aslantas
b9f9548b06
test: test for plane
2020-01-19 22:15:19 +03:00
Recep Aslantas
c630293c7d
merge test sources into one C source
2020-01-19 22:12:25 +03:00
Recep Aslantas
cf8dc82783
fix tests on windows (msvc)
2020-01-17 23:29:36 +03:00
Recep Aslantas
6abe3f05ab
tests: fix quat_look test
2020-01-17 15:17:02 +03:00
Recep Aslantas
f53fd45026
Update test_struct.c
2020-01-15 16:44:51 +03:00
Carsten Hartenfels
b9aa14d25e
Add a test for struct type initializers
...
To make sure that they all work properly and none of them trigger
warnings.
2019-11-24 16:02:12 -05:00
Recep Aslantas
381e66349a
win,test: fix test build for windows and suppress warnings
2019-10-14 19:08:34 +03:00
Recep Aslantas
7cdeada701
tests: add test for glm_quat_look
2019-09-27 17:53:51 +03:00