mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
identiy helper for arrays (matrix/quaternion)
this helpers makes all array elements identity
This commit is contained in:
@@ -20,6 +20,12 @@ glmc_mat3_identity(mat3 mat) {
|
||||
glm_mat3_identity(mat);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_mat3_identity_array(mat3 * __restrict mat, size_t count) {
|
||||
glm_mat3_identity_array(mat, count);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_mat3_mul(mat3 m1, mat3 m2, mat3 dest) {
|
||||
|
||||
@@ -26,6 +26,12 @@ glmc_mat4_identity(mat4 mat) {
|
||||
glm_mat4_identity(mat);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_mat4_identity_array(mat4 * __restrict mat, size_t count) {
|
||||
glm_mat4_identity_array(mat, count);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_mat4_pick3(mat4 mat, mat3 dest) {
|
||||
|
||||
@@ -8,13 +8,18 @@
|
||||
#include "../include/cglm/cglm.h"
|
||||
#include "../include/cglm/call.h"
|
||||
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_quat_identity(versor q) {
|
||||
glm_quat_identity(q);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_quat_identity_array(versor * __restrict q, size_t count) {
|
||||
glm_quat_identity_array(q, count);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_quat_init(versor q, float x, float y, float z, float w) {
|
||||
|
||||
Reference in New Issue
Block a user