mirror of
https://github.com/recp/cglm.git
synced 2026-11-17 18: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`.
28 lines
468 B
C
28 lines
468 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/call.h"
|
|
|
|
CGLM_EXPORT
|
|
float
|
|
glmc_perlin_vec4(const vec4 p) {
|
|
return glm_perlin_vec4(p);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
float
|
|
glmc_perlin_vec3(const vec3 p) {
|
|
return glm_perlin_vec3(p);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
float
|
|
glmc_perlin_vec2(const vec2 p) {
|
|
return glm_perlin_vec2(p);
|
|
}
|