clipspace: add initial implementations LH, RH and NO, ZO

Add the initial implementations of the left-handed and right-handed
coordinate systems as well as clipspace depth values of [-1, 0] and
[0, 1].
This commit is contained in:
Tai Chi Minh Ralph Eastwood
2021-05-05 05:13:47 +02:00
parent db46ea110a
commit 7065011bf3
56 changed files with 4558 additions and 537 deletions

View File

@@ -0,0 +1,27 @@
/*
* 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/clipspace/view_rh_no.h"
CGLM_EXPORT
void
glmc_lookat_rh_no(vec3 eye, vec3 center, vec3 up, mat4 dest) {
glm_lookat_rh_no(eye, center, up, dest);
}
CGLM_EXPORT
void
glmc_look_rh_no(vec3 eye, vec3 dir, vec3 up, mat4 dest) {
glm_look_rh_no(eye, dir, up, dest);
}
CGLM_EXPORT
void
glmc_look_anyup_rh_no(vec3 eye, vec3 dir, mat4 dest) {
glm_look_anyup_rh_no(eye, dir, dest);
}