diff --git a/include/cglm/types-struct.h b/include/cglm/types-struct.h index 4901f01..f064a43 100644 --- a/include/cglm/types-struct.h +++ b/include/cglm/types-struct.h @@ -10,6 +10,16 @@ #include "types.h" +typedef union vec2s { +#ifndef CGLM_NO_ANONYMOUS_STRUCT + struct { + float x; + float y; + }; +#endif + vec2 raw; +} vec2s; + typedef union vec3s { #ifndef CGLM_NO_ANONYMOUS_STRUCT struct {