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,51 @@
/*
* 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/ortho_lh_no.h"
CGLM_EXPORT
void
glmc_ortho_lh_no(float left, float right,
float bottom, float top,
float nearZ, float farZ,
mat4 dest) {
glm_ortho_lh_no(left, right,
bottom, top,
nearZ, farZ,
dest);
}
CGLM_EXPORT
void
glmc_ortho_aabb_lh_no(vec3 box[2], mat4 dest) {
glm_ortho_aabb_lh_no(box, dest);
}
CGLM_EXPORT
void
glmc_ortho_aabb_p_lh_no(vec3 box[2], float padding, mat4 dest) {
glm_ortho_aabb_p_lh_no(box, padding, dest);
}
CGLM_EXPORT
void
glmc_ortho_aabb_pz_lh_no(vec3 box[2], float padding, mat4 dest) {
glm_ortho_aabb_pz_lh_no(box, padding, dest);
}
CGLM_EXPORT
void
glmc_ortho_default_lh_no(float aspect, mat4 dest) {
glm_ortho_default_lh_no(aspect, dest);
}
CGLM_EXPORT
void
glmc_ortho_default_s_lh_no(float aspect, float size, mat4 dest) {
glm_ortho_default_s_lh_no(aspect, size, dest);
}