quat: f-call versions for new quat funcs and fix build

This commit is contained in:
Recep Aslantas
2017-02-05 16:27:47 +03:00
parent 7104fe172c
commit 176f5ccf8e
2 changed files with 31 additions and 7 deletions

View File

@@ -12,11 +12,21 @@
CGLM_EXPORT
void
glmc_quat_init(versor q,
float angle,
float x,
float y,
float z);
glmc_quat_identity(versor q);
CGLM_EXPORT
void
glmc_quat(versor q,
float angle,
float x,
float y,
float z);
CGLM_EXPORT
void
glmc_quatv(versor q,
float angle,
vec3 v);
CGLM_EXPORT
float

View File

@@ -9,12 +9,26 @@
CGLM_EXPORT
void
glmc_quat_init(versor q,
glmc_quat_identity(versor q) {
glm_quat_identity(q);
}
CGLM_EXPORT
void
glmc_quat(versor q,
float angle,
float x,
float y,
float z) {
glm_quat_init(q, angle, x, y, z);
glm_quat(q, angle, x, y, z);
}
CGLM_EXPORT
void
glmc_quatv(versor q,
float angle,
vec3 v) {
glm_quatv(q, angle, v);
}
CGLM_EXPORT