convenient macros for UP vector for lookAt

This commit is contained in:
Recep Aslantas
2017-11-22 10:44:17 +03:00
parent be605e6100
commit 39e1c35c79

View File

@@ -15,6 +15,9 @@
glm_vec_dup(v, dest) glm_vec_dup(v, dest)
GLM_VEC3_ONE_INIT GLM_VEC3_ONE_INIT
GLM_VEC3_ONE GLM_VEC3_ONE
GLM_YUP
GLM_ZUP
GLM_XUP
Functions: Functions:
CGLM_INLINE void glm_vec_copy(vec3 a, vec3 dest); CGLM_INLINE void glm_vec_copy(vec3 a, vec3 dest);
@@ -52,6 +55,10 @@
#define GLM_VEC3_ONE_INIT {1.0f, 1.0f, 1.0f} #define GLM_VEC3_ONE_INIT {1.0f, 1.0f, 1.0f}
#define GLM_VEC3_ONE (vec3)GLM_VEC3_ONE_INIT #define GLM_VEC3_ONE (vec3)GLM_VEC3_ONE_INIT
#define GLM_YUP (vec3){0.0f, 1.0f, 0.0f}
#define GLM_ZUP (vec3){0.0f, 0.0f, 1.0f}
#define GLM_XUP (vec3){1.0f, 0.0f, 0.0f}
/*! /*!
* @brief copy all members of [a] to [dest] * @brief copy all members of [a] to [dest]
* *