mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 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`.
48 lines
819 B
C
48 lines
819 B
C
/*
|
|
* Copyright (c), Recep Aslantas.
|
|
*
|
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
|
* Full license can be found in the LICENSE file
|
|
*/
|
|
|
|
#ifndef cglmc_mat3x4_h
|
|
#define cglmc_mat3x4_h
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "../common.h"
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_copy(CGLM_CONST mat3x4 src, mat3x4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_zero(mat3x4 m);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_make(const float * __restrict src, mat3x4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_mul(CGLM_CONST mat3x4 m1, CGLM_CONST mat4x3 m2, mat4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_mulv(CGLM_CONST mat3x4 m, const vec3 v, vec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_transpose(CGLM_CONST mat3x4 src, mat4x3 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_mat3x4_scale(mat3x4 m, float s);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* cglmc_mat3x4_h */
|