mirror of
https://github.com/recp/cglm.git
synced 2026-01-03 14:12:11 +00:00
move types to individual header
* include cglm-common to all headers
This commit is contained in:
25
include/cglm-types.h
Normal file
25
include/cglm-types.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c), Recep Aslantas.
|
||||
*
|
||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||
* Full license can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
#ifndef cglm_types_h
|
||||
#define cglm_types_h
|
||||
|
||||
#if defined(_WIN32)
|
||||
# define CGLM_ALIGN(X) /* __declspec(align(X)) */
|
||||
#else
|
||||
# define CGLM_ALIGN(X) __attribute((aligned(X)))
|
||||
#endif
|
||||
|
||||
typedef float vec3[3];
|
||||
typedef CGLM_ALIGN(16) float vec4[4];
|
||||
|
||||
typedef vec3 mat3[3];
|
||||
typedef vec4 mat4[4];
|
||||
|
||||
typedef vec4 versor;
|
||||
|
||||
#endif /* cglm_types_h */
|
||||
Reference in New Issue
Block a user