diff --git a/include/cglm/call/clipspace/persp_lh_no.h b/include/cglm/call/clipspace/persp_lh_no.h index 4bdbcfe..d1f7c56 100644 --- a/include/cglm/call/clipspace/persp_lh_no.h +++ b/include/cglm/call/clipspace/persp_lh_no.h @@ -27,6 +27,10 @@ glmc_perspective_lh_no(float fovy, float nearVal, float farVal, mat4 dest); + +CGLM_EXPORT +void +glmc_perspective_resize_lh_no(float aspect, mat4 proj); CGLM_EXPORT void diff --git a/include/cglm/call/clipspace/persp_lh_zo.h b/include/cglm/call/clipspace/persp_lh_zo.h index 53c2c1c..6cd20e2 100644 --- a/include/cglm/call/clipspace/persp_lh_zo.h +++ b/include/cglm/call/clipspace/persp_lh_zo.h @@ -27,6 +27,10 @@ glmc_perspective_lh_zo(float fovy, float nearVal, float farVal, mat4 dest); + +CGLM_EXPORT +void +glmc_perspective_resize_lh_zo(float aspect, mat4 proj); CGLM_EXPORT void diff --git a/include/cglm/call/clipspace/persp_rh_no.h b/include/cglm/call/clipspace/persp_rh_no.h index 9c0d65d..3532e50 100644 --- a/include/cglm/call/clipspace/persp_rh_no.h +++ b/include/cglm/call/clipspace/persp_rh_no.h @@ -27,6 +27,10 @@ glmc_perspective_rh_no(float fovy, float nearVal, float farVal, mat4 dest); + +CGLM_EXPORT +void +glmc_perspective_resize_rh_no(float aspect, mat4 proj); CGLM_EXPORT void diff --git a/include/cglm/call/clipspace/persp_rh_zo.h b/include/cglm/call/clipspace/persp_rh_zo.h index 718d4ad..9d50795 100644 --- a/include/cglm/call/clipspace/persp_rh_zo.h +++ b/include/cglm/call/clipspace/persp_rh_zo.h @@ -27,6 +27,10 @@ glmc_perspective_rh_zo(float fovy, float nearVal, float farVal, mat4 dest); + +CGLM_EXPORT +void +glmc_perspective_resize_rh_zo(float aspect, mat4 proj); CGLM_EXPORT void diff --git a/src/clipspace/persp_lh_no.c b/src/clipspace/persp_lh_no.c index 8d6db76..1032fdf 100644 --- a/src/clipspace/persp_lh_no.c +++ b/src/clipspace/persp_lh_no.c @@ -34,6 +34,12 @@ glmc_perspective_lh_no(float fovy, dest); } +CGLM_EXPORT +void +glmc_perspective_resize_lh_no(float aspect, mat4 proj) { + glm_perspective_resize_lh_no(aspect, proj); +} + CGLM_EXPORT void glmc_persp_move_far_lh_no(mat4 proj, float deltaFar) { diff --git a/src/clipspace/persp_lh_zo.c b/src/clipspace/persp_lh_zo.c index d9fec0c..bd636d4 100644 --- a/src/clipspace/persp_lh_zo.c +++ b/src/clipspace/persp_lh_zo.c @@ -34,6 +34,12 @@ glmc_perspective_lh_zo(float fovy, dest); } +CGLM_EXPORT +void +glmc_perspective_resize_lh_zo(float aspect, mat4 proj) { + glm_perspective_resize_lh_zo(aspect, proj); +} + CGLM_EXPORT void glmc_persp_move_far_lh_zo(mat4 proj, float deltaFar) { diff --git a/src/clipspace/persp_rh_no.c b/src/clipspace/persp_rh_no.c index 8fc7735..78d768c 100644 --- a/src/clipspace/persp_rh_no.c +++ b/src/clipspace/persp_rh_no.c @@ -34,6 +34,12 @@ glmc_perspective_rh_no(float fovy, dest); } +CGLM_EXPORT +void +glmc_perspective_resize_rh_no(float aspect, mat4 proj) { + glm_perspective_resize_rh_no(aspect, proj); +} + CGLM_EXPORT void glmc_persp_move_far_rh_no(mat4 proj, float deltaFar) { diff --git a/src/clipspace/persp_rh_zo.c b/src/clipspace/persp_rh_zo.c index 50190f2..b8616b9 100644 --- a/src/clipspace/persp_rh_zo.c +++ b/src/clipspace/persp_rh_zo.c @@ -34,6 +34,12 @@ glmc_perspective_rh_zo(float fovy, dest); } +CGLM_EXPORT +void +glmc_perspective_resize_rh_zo(float aspect, mat4 proj) { + glm_perspective_resize_rh_zo(aspect, proj); +} + CGLM_EXPORT void glmc_persp_move_far_rh_zo(mat4 proj, float deltaFar) {