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

24
src/cam_lh_zo.c Normal file
View File

@@ -0,0 +1,24 @@
/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#include "../include/cglm/cglm.h"
#include "../include/cglm/cam_lh_zo.h"
CGLM_EXPORT
void
glmc_perspective_lh_zo(float fovy,
float aspect,
float nearVal,
float farVal,
mat4 dest) {
glm_perspective_lh_zo(fovy,
aspect,
nearVal,
farVal,
dest);
}

24
src/cam_rh_zo.c Normal file
View File

@@ -0,0 +1,24 @@
/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#include "../include/cglm/cglm.h"
#include "../include/cglm/cam_rh_zo.h"
CGLM_EXPORT
void
glmc_perspective_rh_zo(float fovy,
float aspect,
float nearVal,
float farVal,
mat4 dest) {
glm_perspective_rh_zo(fovy,
aspect,
nearVal,
farVal,
dest);
}