Revert "mark readonly parameters as const"

This commit is contained in:
Recep Aslantas
2019-04-30 08:19:07 +03:00
committed by GitHub
parent 98244da67f
commit bb8ff25752
54 changed files with 751 additions and 762 deletions

View File

@@ -10,7 +10,7 @@
CGLM_EXPORT
void
glmc_mat3_copy(const mat3 mat, mat3 dest) {
glmc_mat3_copy(mat3 mat, mat3 dest) {
glm_mat3_copy(mat, dest);
}
@@ -22,19 +22,19 @@ glmc_mat3_identity(mat3 mat) {
CGLM_EXPORT
void
glmc_mat3_identity_array(mat3 * const __restrict mat, size_t count) {
glmc_mat3_identity_array(mat3 * __restrict mat, size_t count) {
glm_mat3_identity_array(mat, count);
}
CGLM_EXPORT
void
glmc_mat3_mul(const mat3 m1, const mat3 m2, mat3 dest) {
glmc_mat3_mul(mat3 m1, mat3 m2, mat3 dest) {
glm_mat3_mul(m1, m2, dest);
}
CGLM_EXPORT
void
glmc_mat3_transpose_to(const mat3 m, mat3 dest) {
glmc_mat3_transpose_to(mat3 m, mat3 dest) {
glm_mat3_transpose_to(m, dest);
}
@@ -46,19 +46,19 @@ glmc_mat3_transpose(mat3 m) {
CGLM_EXPORT
void
glmc_mat3_mulv(const mat3 m, const vec3 v, vec3 dest) {
glmc_mat3_mulv(mat3 m, vec3 v, vec3 dest) {
glm_mat3_mulv(m, v, dest);
}
CGLM_EXPORT
float
glmc_mat3_trace(const mat3 m) {
glmc_mat3_trace(mat3 m) {
return glm_mat3_trace(m);
}
CGLM_EXPORT
void
glmc_mat3_quat(const mat3 m, versor dest) {
glmc_mat3_quat(mat3 m, versor dest) {
glm_mat3_quat(m, dest);
}
@@ -70,13 +70,13 @@ glmc_mat3_scale(mat3 m, float s) {
CGLM_EXPORT
float
glmc_mat3_det(const mat3 mat) {
glmc_mat3_det(mat3 mat) {
return glm_mat3_det(mat);
}
CGLM_EXPORT
void
glmc_mat3_inv(const mat3 mat, mat3 dest) {
glmc_mat3_inv(mat3 mat, mat3 dest) {
glm_mat3_inv(mat, dest);
}
@@ -94,6 +94,6 @@ glmc_mat3_swap_row(mat3 mat, int row1, int row2) {
CGLM_EXPORT
float
glmc_mat3_rmc(const vec3 r, const mat3 m, const vec3 c) {
glmc_mat3_rmc(vec3 r, mat3 m, vec3 c) {
return glm_mat3_rmc(r, m, c);
}