Allow passing const float* to make functions.

This commit is contained in:
Bruce Mitchener
2024-03-18 19:49:50 +07:00
parent 838c5078b7
commit 182c28faf8
65 changed files with 80 additions and 80 deletions

View File

@@ -180,7 +180,7 @@ Functions documentation
Returns:
scalar value e.g. Matrix1x1
.. c:function:: void glm_mat2_make(float * __restrict src, mat2 dest)
.. c:function:: void glm_mat2_make(const float * __restrict src, mat2 dest)
Create mat2 matrix from pointer

View File

@@ -41,7 +41,7 @@ Functions documentation
Parameters:
| *[in,out]* **mat** matrix
.. c:function:: void glm_mat2x3_make(float * __restrict src, mat2x3 dest)
.. c:function:: void glm_mat2x3_make(const float * __restrict src, mat2x3 dest)
Create mat2x3 matrix from pointer

View File

@@ -41,7 +41,7 @@ Functions documentation
Parameters:
| *[in,out]* **mat** matrix
.. c:function:: void glm_mat2x4_make(float * __restrict src, mat2x4 dest)
.. c:function:: void glm_mat2x4_make(const float * __restrict src, mat2x4 dest)
Create mat2x4 matrix from pointer

View File

@@ -190,7 +190,7 @@ Functions documentation
Returns:
scalar value e.g. Matrix1x1
.. c:function:: void glm_mat3_make(float * __restrict src, mat3 dest)
.. c:function:: void glm_mat3_make(const float * __restrict src, mat3 dest)
Create mat3 matrix from pointer

View File

@@ -41,7 +41,7 @@ Functions documentation
Parameters:
| *[in,out]* **mat** matrix
.. c:function:: void glm_mat3x2_make(float * __restrict src, mat3x2 dest)
.. c:function:: void glm_mat3x2_make(const float * __restrict src, mat3x2 dest)
Create mat3x2 matrix from pointer

View File

@@ -41,7 +41,7 @@ Functions documentation
Parameters:
| *[in,out]* **mat** matrix
.. c:function:: void glm_mat3x4_make(float * __restrict src, mat3x4 dest)
.. c:function:: void glm_mat3x4_make(const float * __restrict src, mat3x4 dest)
Create mat3x4 matrix from pointer

View File

@@ -304,7 +304,7 @@ Functions documentation
Returns:
scalar value e.g. Matrix1x1
.. c:function:: void glm_mat4_make(float * __restrict src, mat4 dest)
.. c:function:: void glm_mat4_make(const float * __restrict src, mat4 dest)
Create mat4 matrix from pointer

View File

@@ -41,7 +41,7 @@ Functions documentation
Parameters:
| *[in,out]* **mat** matrix
.. c:function:: void glm_mat4x2_make(float * __restrict src, mat4x2 dest)
.. c:function:: void glm_mat4x2_make(const float * __restrict src, mat4x2 dest)
Create mat4x2 matrix from pointer

View File

@@ -41,7 +41,7 @@ Functions documentation
Parameters:
| *[in,out]* **mat** matrix
.. c:function:: void glm_mat4x3_make(float * __restrict src, mat4x3 dest)
.. c:function:: void glm_mat4x3_make(const float * __restrict src, mat4x3 dest)
Create mat4x3 matrix from pointer

View File

@@ -422,7 +422,7 @@ Functions documentation
| *[in]* **q** quaternion
| *[in]* **pivot** pivot
.. c:function:: void glm_quat_make(float * __restrict src, versor dest)
.. c:function:: void glm_quat_make(const float * __restrict src, versor dest)
Create quaternion from pointer

View File

@@ -385,7 +385,7 @@ Functions documentation
| *[in]* **t** interpolant (amount) clamped between 0 and 1
| *[out]* **dest** destination
.. c:function:: void glm_vec2_make(float * __restrict src, vec2 dest)
.. c:function:: void glm_vec2_make(const float * __restrict src, vec2 dest)
Create two dimensional vector from pointer

View File

@@ -503,7 +503,7 @@ Functions documentation
| *[in]* **t** interpolant (amount) clamped between 0 and 1
| *[out]* **dest** destination
.. c:function:: void glm_vec3_make(float * __restrict src, vec3 dest)
.. c:function:: void glm_vec3_make(const float * __restrict src, vec3 dest)
Create three dimensional vector from pointer

View File

@@ -415,7 +415,7 @@ Functions documentation
| *[in]* **s** parameter
| *[out]* **dest** destination
.. c:function:: void glm_vec4_make(float * __restrict src, vec4 dest)
.. c:function:: void glm_vec4_make(const float * __restrict src, vec4 dest)
Create four dimensional vector from pointer

View File

@@ -75,7 +75,7 @@ glmc_mat2_rmc(vec2 r, mat2 m, vec2 c);
CGLM_EXPORT
void
glmc_mat2_make(float * __restrict src, mat2 dest);
glmc_mat2_make(const float * __restrict src, mat2 dest);
#ifdef __cplusplus
}

View File

@@ -23,7 +23,7 @@ glmc_mat2x3_zero(mat2x3 mat);
CGLM_EXPORT
void
glmc_mat2x3_make(float * __restrict src, mat2x3 dest);
glmc_mat2x3_make(const float * __restrict src, mat2x3 dest);
CGLM_EXPORT
void

View File

@@ -23,7 +23,7 @@ glmc_mat2x4_zero(mat2x4 mat);
CGLM_EXPORT
void
glmc_mat2x4_make(float * __restrict src, mat2x4 dest);
glmc_mat2x4_make(const float * __restrict src, mat2x4 dest);
CGLM_EXPORT
void

View File

@@ -82,7 +82,7 @@ glmc_mat3_rmc(vec3 r, mat3 m, vec3 c);
CGLM_EXPORT
void
glmc_mat3_make(float * __restrict src, mat3 dest);
glmc_mat3_make(const float * __restrict src, mat3 dest);
#ifdef __cplusplus
}

View File

@@ -23,7 +23,7 @@ glmc_mat3x2_zero(mat3x2 mat);
CGLM_EXPORT
void
glmc_mat3x2_make(float * __restrict src, mat3x2 dest);
glmc_mat3x2_make(const float * __restrict src, mat3x2 dest);
CGLM_EXPORT
void

View File

@@ -23,7 +23,7 @@ glmc_mat3x4_zero(mat3x4 mat);
CGLM_EXPORT
void
glmc_mat3x4_make(float * __restrict src, mat3x4 dest);
glmc_mat3x4_make(const float * __restrict src, mat3x4 dest);
CGLM_EXPORT
void

View File

@@ -123,7 +123,7 @@ glmc_mat4_rmc(vec4 r, mat4 m, vec4 c);
CGLM_EXPORT
void
glmc_mat4_make(float * __restrict src, mat4 dest);
glmc_mat4_make(const float * __restrict src, mat4 dest);
#ifdef __cplusplus
}

View File

@@ -23,7 +23,7 @@ glmc_mat4x2_zero(mat4x2 mat);
CGLM_EXPORT
void
glmc_mat4x2_make(float * __restrict src, mat4x2 dest);
glmc_mat4x2_make(const float * __restrict src, mat4x2 dest);
CGLM_EXPORT
void

View File

@@ -23,7 +23,7 @@ glmc_mat4x3_zero(mat4x3 mat);
CGLM_EXPORT
void
glmc_mat4x3_make(float * __restrict src, mat4x3 dest);
glmc_mat4x3_make(const float * __restrict src, mat4x3 dest);
CGLM_EXPORT
void

View File

@@ -163,7 +163,7 @@ glmc_quat_rotate_atm(mat4 m, versor q, vec3 pivot);
CGLM_EXPORT
void
glmc_quat_make(float * __restrict src, versor dest);
glmc_quat_make(const float * __restrict src, versor dest);
#ifdef __cplusplus
}

View File

@@ -195,7 +195,7 @@ glmc_vec2_complex_conjugate(vec2 a, vec2 dest);
CGLM_EXPORT
void
glmc_vec2_make(float * __restrict src, vec2 dest);
glmc_vec2_make(const float * __restrict src, vec2 dest);
#ifdef __cplusplus
}

View File

@@ -332,7 +332,7 @@ glmc_vec3_sqrt(vec3 v, vec3 dest);
CGLM_EXPORT
void
glmc_vec3_make(float * __restrict src, vec3 dest);
glmc_vec3_make(const float * __restrict src, vec3 dest);
#ifdef __cplusplus
}

View File

@@ -309,7 +309,7 @@ glmc_vec4_sqrt(vec4 v, vec4 dest);
CGLM_EXPORT
void
glmc_vec4_make(float * __restrict src, vec4 dest);
glmc_vec4_make(const float * __restrict src, vec4 dest);
#ifdef __cplusplus
}

View File

@@ -354,7 +354,7 @@ glm_mat2_rmc(vec2 r, mat2 m, vec2 c) {
*/
CGLM_INLINE
void
glm_mat2_make(float * __restrict src, mat2 dest) {
glm_mat2_make(const float * __restrict src, mat2 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];
dest[1][0] = src[2];

View File

@@ -13,7 +13,7 @@
Functions:
CGLM_INLINE void glm_mat2x3_copy(mat2x3 mat, mat2x3 dest);
CGLM_INLINE void glm_mat2x3_zero(mat2x3 mat);
CGLM_INLINE void glm_mat2x3_make(float * __restrict src, mat2x3 dest);
CGLM_INLINE void glm_mat2x3_make(const float * __restrict src, mat2x3 dest);
CGLM_INLINE void glm_mat2x3_mul(mat2x3 m1, mat3x2 m2, mat2 dest);
CGLM_INLINE void glm_mat2x3_mulv(mat2x3 m, vec3 v, vec2 dest);
CGLM_INLINE void glm_mat2x3_transpose(mat2x3 m, mat3x2 dest);
@@ -68,7 +68,7 @@ glm_mat2x3_zero(mat2x3 mat) {
*/
CGLM_INLINE
void
glm_mat2x3_make(float * __restrict src, mat2x3 dest) {
glm_mat2x3_make(const float * __restrict src, mat2x3 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];
dest[0][2] = src[2];

View File

@@ -13,7 +13,7 @@
Functions:
CGLM_INLINE void glm_mat2x4_copy(mat2x4 mat, mat2x4 dest);
CGLM_INLINE void glm_mat2x4_zero(mat2x4 mat);
CGLM_INLINE void glm_mat2x4_make(float * __restrict src, mat2x4 dest);
CGLM_INLINE void glm_mat2x4_make(const float * __restrict src, mat2x4 dest);
CGLM_INLINE void glm_mat2x4_mul(mat2x4 m1, mat4x2 m2, mat2 dest);
CGLM_INLINE void glm_mat2x4_mulv(mat2x4 m, vec4 v, vec2 dest);
CGLM_INLINE void glm_mat2x4_transpose(mat2x4 m, mat4x2 dest);
@@ -64,7 +64,7 @@ glm_mat2x4_zero(mat2x4 mat) {
*/
CGLM_INLINE
void
glm_mat2x4_make(float * __restrict src, mat2x4 dest) {
glm_mat2x4_make(const float * __restrict src, mat2x4 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];
dest[0][2] = src[2];

View File

@@ -436,7 +436,7 @@ glm_mat3_rmc(vec3 r, mat3 m, vec3 c) {
*/
CGLM_INLINE
void
glm_mat3_make(float * __restrict src, mat3 dest) {
glm_mat3_make(const float * __restrict src, mat3 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];
dest[0][2] = src[2];

View File

@@ -13,7 +13,7 @@
Functions:
CGLM_INLINE void glm_mat3x2_copy(mat3x2 mat, mat3x2 dest);
CGLM_INLINE void glm_mat3x2_zero(mat3x2 mat);
CGLM_INLINE void glm_mat3x2_make(float * __restrict src, mat3x2 dest);
CGLM_INLINE void glm_mat3x2_make(const float * __restrict src, mat3x2 dest);
CGLM_INLINE void glm_mat3x2_mul(mat3x2 m1, mat2x3 m2, mat3 dest);
CGLM_INLINE void glm_mat3x2_mulv(mat3x2 m, vec2 v, vec3 dest);
CGLM_INLINE void glm_mat3x2_transpose(mat3x2 m, mat2x3 dest);
@@ -69,7 +69,7 @@ glm_mat3x2_zero(mat3x2 mat) {
*/
CGLM_INLINE
void
glm_mat3x2_make(float * __restrict src, mat3x2 dest) {
glm_mat3x2_make(const float * __restrict src, mat3x2 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];

View File

@@ -13,7 +13,7 @@
Functions:
CGLM_INLINE void glm_mat3x4_copy(mat3x4 mat, mat3x4 dest);
CGLM_INLINE void glm_mat3x4_zero(mat3x4 mat);
CGLM_INLINE void glm_mat3x4_make(float * __restrict src, mat3x4 dest);
CGLM_INLINE void glm_mat3x4_make(const float * __restrict src, mat3x4 dest);
CGLM_INLINE void glm_mat3x4_mul(mat3x4 m1, mat4x3 m2, mat3 dest);
CGLM_INLINE void glm_mat3x4_mulv(mat3x4 m, vec4 v, vec3 dest);
CGLM_INLINE void glm_mat3x4_transpose(mat3x4 m, mat4x3 dest);
@@ -66,7 +66,7 @@ glm_mat3x4_zero(mat3x4 mat) {
*/
CGLM_INLINE
void
glm_mat3x4_make(float * __restrict src, mat3x4 dest) {
glm_mat3x4_make(const float * __restrict src, mat3x4 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];
dest[0][2] = src[2];

View File

@@ -790,7 +790,7 @@ glm_mat4_rmc(vec4 r, mat4 m, vec4 c) {
*/
CGLM_INLINE
void
glm_mat4_make(float * __restrict src, mat4 dest) {
glm_mat4_make(const float * __restrict src, mat4 dest) {
dest[0][0] = src[0]; dest[1][0] = src[4];
dest[0][1] = src[1]; dest[1][1] = src[5];
dest[0][2] = src[2]; dest[1][2] = src[6];

View File

@@ -13,7 +13,7 @@
Functions:
CGLM_INLINE void glm_mat4x2_copy(mat4x2 mat, mat4x2 dest);
CGLM_INLINE void glm_mat4x2_zero(mat4x2 mat);
CGLM_INLINE void glm_mat4x2_make(float * __restrict src, mat4x2 dest);
CGLM_INLINE void glm_mat4x2_make(const float * __restrict src, mat4x2 dest);
CGLM_INLINE void glm_mat4x2_mul(mat4x2 m1, mat2x4 m2, mat4 dest);
CGLM_INLINE void glm_mat4x2_mulv(mat4x2 m, vec2 v, vec4 dest);
CGLM_INLINE void glm_mat4x2_transpose(mat4x2 m, mat2x4 dest);
@@ -72,7 +72,7 @@ glm_mat4x2_zero(mat4x2 mat) {
*/
CGLM_INLINE
void
glm_mat4x2_make(float * __restrict src, mat4x2 dest) {
glm_mat4x2_make(const float * __restrict src, mat4x2 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];

View File

@@ -13,7 +13,7 @@
Functions:
CGLM_INLINE void glm_mat4x3_copy(mat4x3 mat, mat4x3 dest);
CGLM_INLINE void glm_mat4x3_zero(mat4x3 mat);
CGLM_INLINE void glm_mat4x3_make(float * __restrict src, mat4x3 dest);
CGLM_INLINE void glm_mat4x3_make(const float * __restrict src, mat4x3 dest);
CGLM_INLINE void glm_mat4x3_mul(mat4x3 m1, mat3x4 m2, mat4 dest);
CGLM_INLINE void glm_mat4x3_mulv(mat4x3 m, vec3 v, vec4 dest);
CGLM_INLINE void glm_mat4x3_transpose(mat4x3 m, mat3x4 dest);
@@ -77,7 +77,7 @@ glm_mat4x3_zero(mat4x3 mat) {
*/
CGLM_INLINE
void
glm_mat4x3_make(float * __restrict src, mat4x3 dest) {
glm_mat4x3_make(const float * __restrict src, mat4x3 dest) {
dest[0][0] = src[0];
dest[0][1] = src[1];
dest[0][2] = src[2];

View File

@@ -894,7 +894,7 @@ glm_quat_rotate_atm(mat4 m, versor q, vec3 pivot) {
*/
CGLM_INLINE
void
glm_quat_make(float * __restrict src, versor dest) {
glm_quat_make(const float * __restrict src, versor dest) {
dest[0] = src[0]; dest[1] = src[1];
dest[2] = src[2]; dest[3] = src[3];
}

View File

@@ -27,7 +27,7 @@
CGLM_INLINE void glms_mat2_swap_col(mat2 mat, int col1, int col2)
CGLM_INLINE void glms_mat2_swap_row(mat2 mat, int row1, int row2)
CGLM_INLINE float glms_mat2_rmc(vec2 r, mat2 m, vec2 c)
CGLM_INLINE mat2s glms_mat2_make(float * __restrict src);
CGLM_INLINE mat2s glms_mat2_make(const float * __restrict src);
*/
#ifndef cglms_mat2_h
@@ -267,7 +267,7 @@ glms_mat2_(rmc)(vec2s r, mat2s m, vec2s c) {
*/
CGLM_INLINE
mat2s
glms_mat2_(make)(float * __restrict src) {
glms_mat2_(make)(const float * __restrict src) {
mat2s r;
glm_mat2_make(src, r.raw);
return r;

View File

@@ -12,7 +12,7 @@
Functions:
CGLM_INLINE mat2x3s glms_mat2x3_zero(void);
CGLM_INLINE mat2x3s glms_mat2x3_make(float * __restrict src);
CGLM_INLINE mat2x3s glms_mat2x3_make(const float * __restrict src);
CGLM_INLINE mat2s glms_mat2x3_mul(mat2x3s m1, mat3x2s m2);
CGLM_INLINE vec2s glms_mat2x3_mulv(mat2x3s m, vec3s v);
CGLM_INLINE mat3x2s glms_mat2x3_transpose(mat2x3s m);
@@ -55,7 +55,7 @@ glms_mat2x3_(zero)(void) {
*/
CGLM_INLINE
mat2x3s
glms_mat2x3_(make)(float * __restrict src) {
glms_mat2x3_(make)(const float * __restrict src) {
mat2x3s r;
glm_mat2x3_make(src, r.raw);
return r;

View File

@@ -12,7 +12,7 @@
Functions:
CGLM_INLINE mat2x4s glms_mat2x4_zero(void);
CGLM_INLINE mat2x4s glms_mat2x4_make(float * __restrict src);
CGLM_INLINE mat2x4s glms_mat2x4_make(const float * __restrict src);
CGLM_INLINE mat2s glms_mat2x4_mul(mat2x4s m1, mat4x2s m2);
CGLM_INLINE vec2s glms_mat2x4_mulv(mat2x4s m, vec4s v);
CGLM_INLINE mat4x2s glms_mat2x4_transpose(mat2x4s m);
@@ -55,7 +55,7 @@ glms_mat2x4_(zero)(void) {
*/
CGLM_INLINE
mat2x4s
glms_mat2x4_(make)(float * __restrict src) {
glms_mat2x4_(make)(const float * __restrict src) {
mat2x4s r;
glm_mat2x4_make(src, r.raw);
return r;

View File

@@ -28,7 +28,7 @@
CGLM_INLINE mat3s glms_mat3_swap_col(mat3s mat, int col1, int col2);
CGLM_INLINE mat3s glms_mat3_swap_row(mat3s mat, int row1, int row2);
CGLM_INLINE float glms_mat3_rmc(vec3s r, mat3s m, vec3s c);
CGLM_INLINE mat3s glms_mat3_make(float * __restrict src);
CGLM_INLINE mat3s glms_mat3_make(const float * __restrict src);
*/
#ifndef cglms_mat3s_h
@@ -294,7 +294,7 @@ glms_mat3_(rmc)(vec3s r, mat3s m, vec3s c) {
*/
CGLM_INLINE
mat3s
glms_mat3_(make)(float * __restrict src) {
glms_mat3_(make)(const float * __restrict src) {
mat3s r;
glm_mat3_make(src, r.raw);
return r;

View File

@@ -12,7 +12,7 @@
Functions:
CGLM_INLINE mat3x2s glms_mat3x2_zero(void);
CGLM_INLINE mat3x2s glms_mat3x2_make(float * __restrict src);
CGLM_INLINE mat3x2s glms_mat3x2_make(const float * __restrict src);
CGLM_INLINE mat3s glms_mat3x2_mul(mat3x2s m1, mat2x3s m2);
CGLM_INLINE vec3s glms_mat3x2_mulv(mat3x2s m, vec2s v);
CGLM_INLINE mat2x3s glms_mat3x2_transpose(mat3x2s m);
@@ -55,7 +55,7 @@ glms_mat3x2_(zero)(void) {
*/
CGLM_INLINE
mat3x2s
glms_mat3x2_(make)(float * __restrict src) {
glms_mat3x2_(make)(const float * __restrict src) {
mat3x2s r;
glm_mat3x2_make(src, r.raw);
return r;

View File

@@ -12,7 +12,7 @@
Functions:
CGLM_INLINE mat3x4s glms_mat3x4_zero(void);
CGLM_INLINE mat3x4s glms_mat3x4_make(float * __restrict src);
CGLM_INLINE mat3x4s glms_mat3x4_make(const float * __restrict src);
CGLM_INLINE mat3s glms_mat3x4_mul(mat3x4s m1, mat4x3s m2);
CGLM_INLINE vec3s glms_mat3x4_mulv(mat3x4s m, vec4s v);
CGLM_INLINE mat4x3s glms_mat3x4_transpose(mat3x4s m);
@@ -55,7 +55,7 @@ glms_mat3x4_(zero)(void) {
*/
CGLM_INLINE
mat3x4s
glms_mat3x4_(make)(float * __restrict src) {
glms_mat3x4_(make)(const float * __restrict src) {
mat3x4s r;
glm_mat3x4_make(src, r.raw);
return r;

View File

@@ -42,7 +42,7 @@
CGLM_INLINE mat4s glms_mat4_swap_col(mat4s mat, int col1, int col2);
CGLM_INLINE mat4s glms_mat4_swap_row(mat4s mat, int row1, int row2);
CGLM_INLINE float glms_mat4_rmc(vec4s r, mat4s m, vec4s c);
CGLM_INLINE mat4s glms_mat4_make(float * __restrict src);
CGLM_INLINE mat4s glms_mat4_make(const float * __restrict src);
*/
#ifndef cglms_mat4s_h
@@ -468,7 +468,7 @@ glms_mat4_(rmc)(vec4s r, mat4s m, vec4s c) {
*/
CGLM_INLINE
mat4s
glms_mat4_(make)(float * __restrict src) {
glms_mat4_(make)(const float * __restrict src) {
mat4s r;
glm_mat4_make(src, r.raw);
return r;

View File

@@ -12,7 +12,7 @@
Functions:
CGLM_INLINE mat4x2s glms_mat4x2_zero(void);
CGLM_INLINE mat4x2s glms_mat4x2_make(float * __restrict src);
CGLM_INLINE mat4x2s glms_mat4x2_make(const float * __restrict src);
CGLM_INLINE mat4s glms_mat4x2_mul(mat4x2s m1, mat2x4s m2);
CGLM_INLINE vec4s glms_mat4x2_mulv(mat4x2s m, vec2s v);
CGLM_INLINE mat2x4s glms_mat4x2_transpose(mat4x2s m);
@@ -56,7 +56,7 @@ glms_mat4x2_(zero)(void) {
*/
CGLM_INLINE
mat4x2s
glms_mat4x2_(make)(float * __restrict src) {
glms_mat4x2_(make)(const float * __restrict src) {
mat4x2s r;
glm_mat4x2_make(src, r.raw);
return r;

View File

@@ -12,7 +12,7 @@
Functions:
CGLM_INLINE mat4x3s glms_mat4x3_zero(void);
CGLM_INLINE mat4x3s glms_mat4x3_make(float * __restrict src);
CGLM_INLINE mat4x3s glms_mat4x3_make(const float * __restrict src);
CGLM_INLINE mat4s glms_mat4x3_mul(mat4x3s m1, mat3x4s m2);
CGLM_INLINE vec4s glms_mat4x3_mulv(mat4x3s m, vec3s v);
CGLM_INLINE mat3x4s glms_mat4x3_transpose(mat4x3s m);
@@ -55,7 +55,7 @@ glms_mat4x3_(zero)(void) {
*/
CGLM_INLINE
mat4x3s
glms_mat4x3_(make)(float * __restrict src) {
glms_mat4x3_(make)(const float * __restrict src) {
mat4x3s r;
glm_mat4x3_make(src, r.raw);
return r;

View File

@@ -574,7 +574,7 @@ glms_quat_(rotate_atm)(versors q, vec3s pivot) {
*/
CGLM_INLINE
versors
glms_quat_(make)(float * __restrict src) {
glms_quat_(make)(const float * __restrict src) {
versors dest;
glm_quat_make(src, dest.raw);
return dest;

View File

@@ -685,7 +685,7 @@ glms_vec2_(lerp)(vec2s from, vec2s to, float t) {
*/
CGLM_INLINE
vec2s
glms_vec2_(make)(float * __restrict src) {
glms_vec2_(make)(const float * __restrict src) {
vec2s dest;
glm_vec2_make(src, dest.raw);
return dest;

View File

@@ -1077,7 +1077,7 @@ glms_vec3_(swizzle)(vec3s v, int mask) {
*/
CGLM_INLINE
vec3s
glms_vec3_(make)(float * __restrict src) {
glms_vec3_(make)(const float * __restrict src) {
vec3s dest;
glm_vec3_make(src, dest.raw);
return dest;

View File

@@ -921,7 +921,7 @@ glms_vec4_(swizzle)(vec4s v, int mask) {
*/
CGLM_INLINE
vec4s
glms_vec4_(make)(float * __restrict src) {
glms_vec4_(make)(const float * __restrict src) {
vec4s dest;
glm_vec4_make(src, dest.raw);
return dest;

View File

@@ -708,7 +708,7 @@ glm_vec2_lerp(vec2 from, vec2 to, float t, vec2 dest) {
*/
CGLM_INLINE
void
glm_vec2_make(float * __restrict src, vec2 dest) {
glm_vec2_make(const float * __restrict src, vec2 dest) {
dest[0] = src[0]; dest[1] = src[1];
}

View File

@@ -1196,7 +1196,7 @@ glm_normalize_to(vec3 v, vec3 dest) {
*/
CGLM_INLINE
void
glm_vec3_make(float * __restrict src, vec3 dest) {
glm_vec3_make(const float * __restrict src, vec3 dest) {
dest[0] = src[0];
dest[1] = src[1];
dest[2] = src[2];

View File

@@ -1299,7 +1299,7 @@ glm_vec4_swizzle(vec4 v, int mask, vec4 dest) {
*/
CGLM_INLINE
void
glm_vec4_make(float * __restrict src, vec4 dest) {
glm_vec4_make(const float * __restrict src, vec4 dest) {
dest[0] = src[0]; dest[1] = src[1];
dest[2] = src[2]; dest[3] = src[3];
}

View File

@@ -100,6 +100,6 @@ glmc_mat2_rmc(vec2 r, mat2 m, vec2 c) {
CGLM_EXPORT
void
glmc_mat2_make(float * __restrict src, mat2 dest) {
glmc_mat2_make(const float * __restrict src, mat2 dest) {
glm_mat2_make(src, dest);
}

View File

@@ -22,7 +22,7 @@ glmc_mat2x3_zero(mat2x3 mat) {
CGLM_EXPORT
void
glmc_mat2x3_make(float * __restrict src, mat2x3 dest) {
glmc_mat2x3_make(const float * __restrict src, mat2x3 dest) {
glm_mat2x3_make(src, dest);
}

View File

@@ -22,7 +22,7 @@ glmc_mat2x4_zero(mat2x4 mat) {
CGLM_EXPORT
void
glmc_mat2x4_make(float * __restrict src, mat2x4 dest) {
glmc_mat2x4_make(const float * __restrict src, mat2x4 dest) {
glm_mat2x4_make(src, dest);
}

View File

@@ -106,6 +106,6 @@ glmc_mat3_rmc(vec3 r, mat3 m, vec3 c) {
CGLM_EXPORT
void
glmc_mat3_make(float * __restrict src, mat3 dest) {
glmc_mat3_make(const float * __restrict src, mat3 dest) {
glm_mat3_make(src, dest);
}

View File

@@ -22,7 +22,7 @@ glmc_mat3x2_zero(mat3x2 mat) {
CGLM_EXPORT
void
glmc_mat3x2_make(float * __restrict src, mat3x2 dest) {
glmc_mat3x2_make(const float * __restrict src, mat3x2 dest) {
glm_mat3x2_make(src, dest);
}

View File

@@ -22,7 +22,7 @@ glmc_mat3x4_zero(mat3x4 mat) {
CGLM_EXPORT
void
glmc_mat3x4_make(float * __restrict src, mat3x4 dest) {
glmc_mat3x4_make(const float * __restrict src, mat3x4 dest) {
glm_mat3x4_make(src, dest);
}

View File

@@ -166,6 +166,6 @@ glmc_mat4_rmc(vec4 r, mat4 m, vec4 c) {
CGLM_EXPORT
void
glmc_mat4_make(float * __restrict src, mat4 dest) {
glmc_mat4_make(const float * __restrict src, mat4 dest) {
glm_mat4_make(src, dest);
}

View File

@@ -22,7 +22,7 @@ glmc_mat4x2_zero(mat4x2 mat) {
CGLM_EXPORT
void
glmc_mat4x2_make(float * __restrict src, mat4x2 dest) {
glmc_mat4x2_make(const float * __restrict src, mat4x2 dest) {
glm_mat4x2_make(src, dest);
}

View File

@@ -22,7 +22,7 @@ glmc_mat4x3_zero(mat4x3 mat) {
CGLM_EXPORT
void
glmc_mat4x3_make(float * __restrict src, mat4x3 dest) {
glmc_mat4x3_make(const float * __restrict src, mat4x3 dest) {
glm_mat4x3_make(src, dest);
}

View File

@@ -232,6 +232,6 @@ glmc_quat_rotate_atm(mat4 m, versor q, vec3 pivot) {
CGLM_EXPORT
void
glmc_quat_make(float * __restrict src, versor dest) {
glmc_quat_make(const float * __restrict src, versor dest) {
glm_quat_make(src, dest);
}

View File

@@ -299,6 +299,6 @@ glmc_vec2_complex_conjugate(vec2 a, vec2 dest) {
CGLM_EXPORT
void
glmc_vec2_make(float * __restrict src, vec2 dest) {
glmc_vec2_make(const float * __restrict src, vec2 dest) {
glm_vec2_make(src, dest);
}

View File

@@ -456,6 +456,6 @@ glmc_vec3_sqrt(vec3 v, vec3 dest) {
CGLM_EXPORT
void
glmc_vec3_make(float * __restrict src, vec3 dest) {
glmc_vec3_make(const float * __restrict src, vec3 dest) {
glm_vec3_make(src, dest);
}

View File

@@ -420,6 +420,6 @@ glmc_vec4_sqrt(vec4 v, vec4 dest) {
CGLM_EXPORT
void
glmc_vec4_make(float * __restrict src, vec4 dest) {
glmc_vec4_make(const float * __restrict src, vec4 dest) {
glm_vec4_make(src, dest);
}