Add glm_perspective_rh_zo function + tests

This commit adds the RH/ZO perspective function. It does so in the new
file `cam_rh_zo.h` and further refactors the LH variant into new file
`cam_lh_zo.h`. This creates some churn in the tests and configuration
files as new test files were added as well, and all these changes found
their way into the build files.

Tests passing on Linux.
This commit is contained in:
michaelg
2021-04-29 23:48:13 +01:00
committed by Tai Chi Minh Ralph Eastwood
parent 1bce62c371
commit b3a18b8a15
14 changed files with 269 additions and 70 deletions

View File

@@ -222,8 +222,9 @@ TEST_DECLARE(glmc_mat2_swap_col)
TEST_DECLARE(glmc_mat2_swap_row)
TEST_DECLARE(glmc_mat2_rmc)
/* camera */
/* camera (incl [LR]H cross [NZ]O) */
TEST_DECLARE(perspective_lh_zo)
TEST_DECLARE(perspective_rh_zo)
TEST_DECLARE(camera_lookat)
TEST_DECLARE(camera_decomp)
@@ -947,8 +948,9 @@ TEST_LIST {
TEST_ENTRY(glmc_mat2_swap_row)
TEST_ENTRY(glmc_mat2_rmc)
/* camera */
/* camera (incl [LR]H cross [NZ]O) */
TEST_ENTRY(perspective_lh_zo)
TEST_ENTRY(perspective_rh_zo)
TEST_ENTRY(camera_lookat)
TEST_ENTRY(camera_decomp)