mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 09:08:53 +00:00
quat: f-call versions for new quat funcs and fix build
This commit is contained in:
@@ -12,11 +12,21 @@
|
|||||||
|
|
||||||
CGLM_EXPORT
|
CGLM_EXPORT
|
||||||
void
|
void
|
||||||
glmc_quat_init(versor q,
|
glmc_quat_identity(versor q);
|
||||||
float angle,
|
|
||||||
float x,
|
CGLM_EXPORT
|
||||||
float y,
|
void
|
||||||
float z);
|
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
|
CGLM_EXPORT
|
||||||
float
|
float
|
||||||
|
@@ -9,12 +9,26 @@
|
|||||||
|
|
||||||
CGLM_EXPORT
|
CGLM_EXPORT
|
||||||
void
|
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 angle,
|
||||||
float x,
|
float x,
|
||||||
float y,
|
float y,
|
||||||
float z) {
|
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
|
CGLM_EXPORT
|
||||||
|
Reference in New Issue
Block a user