mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 02:17:13 -06:00
- Adds `const` qualifiers to read-only pointer and array parameters. - Multi-dimentional array parameters use the `CGLM_CONST` macro instead, because for these `const` only works in C++ and C23 (with N2607). - For `glm_mat4_mulN`, the matrices are not const-qualified although they are read-only, but changing the pointer type would require changing application code. - Incorrect incorrect in/out in doc comments was fixed for `glm_ray_sphere`, `glm_swapf`, `glm_quat_rotate_at`.
52 lines
1.2 KiB
C
52 lines
1.2 KiB
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/clipspace/ortho_rh_zo.h"
|
|
#include "../../include/cglm/call/clipspace/ortho_rh_zo.h"
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ortho_rh_zo(float left, float right,
|
|
float bottom, float top,
|
|
float nearZ, float farZ,
|
|
mat4 dest) {
|
|
glm_ortho_rh_zo(left, right,
|
|
bottom, top,
|
|
nearZ, farZ,
|
|
dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ortho_aabb_rh_zo(CGLM_CONST vec3 box[2], mat4 dest) {
|
|
glm_ortho_aabb_rh_zo(box, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ortho_aabb_p_rh_zo(CGLM_CONST vec3 box[2], float padding, mat4 dest) {
|
|
glm_ortho_aabb_p_rh_zo(box, padding, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ortho_aabb_pz_rh_zo(CGLM_CONST vec3 box[2], float padding, mat4 dest) {
|
|
glm_ortho_aabb_pz_rh_zo(box, padding, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ortho_default_rh_zo(float aspect, mat4 dest) {
|
|
glm_ortho_default_rh_zo(aspect, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ortho_default_s_rh_zo(float aspect, float size, mat4 dest) {
|
|
glm_ortho_default_s_rh_zo(aspect, size, dest);
|
|
}
|