move types to individual header

* include cglm-common to all headers
This commit is contained in:
Recep Aslantas
2016-10-13 23:44:02 +03:00
parent 34eae7422b
commit bdcea86ac6
19 changed files with 61 additions and 42 deletions

View File

@@ -5,19 +5,10 @@
* Full license can be found in the LICENSE file
*/
#ifndef glm_h
#define glm_h
#ifndef cglm_h
#define cglm_h
#include "cglm-common.h"
typedef float vec3[3];
typedef CGLM_ALIGN(16) float vec4[4];
typedef vec3 mat3[3];
typedef vec4 mat4[4];
typedef vec4 versor;
#include "cglm-vec.h"
#include "cglm-mat.h"
#include "cglm-mat3.h"
@@ -27,4 +18,4 @@ typedef vec4 versor;
#include "cglm-quat.h"
#include "cglm-euler.h"
#endif /* glm_h */
#endif /* cglm_h */