mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
- separating struct types into types-struct.h
- vec3s implementation - fix style issues
This commit is contained in:
36
include/cglm/types-struct.h
Normal file
36
include/cglm/types-struct.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c), Recep Aslantas.
|
||||
*
|
||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||
* Full license can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
#ifndef cglm_types_struct_h
|
||||
#define cglm_types_struct_h
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef union CGLM_ALIGN_IF(16) vec3s {
|
||||
#ifndef CGLM_NO_ANONYMOUS_STRUCT
|
||||
struct {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
};
|
||||
#endif
|
||||
vec3 raw;
|
||||
} vec3s;
|
||||
|
||||
typedef union CGLM_ALIGN_IF(16) vec4s {
|
||||
#ifndef CGLM_NO_ANONYMOUS_STRUCT
|
||||
struct {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float w;
|
||||
};
|
||||
#endif
|
||||
vec4 raw;
|
||||
} vec4s;
|
||||
|
||||
#endif /* cglm_types_struct_h */
|
||||
Reference in New Issue
Block a user