mirror of
https://github.com/recp/cglm.git
synced 2026-01-01 05:06:13 +00:00
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.
25 lines
586 B
C
25 lines
586 B
C
/*
|
|
* 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);
|
|
}
|
|
|