mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Merge pull request #110 from hartenfels/vec2s
Add a vec2s struct type for consistency
This commit is contained in:
@@ -10,6 +10,16 @@
|
|||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
typedef union vec2s {
|
||||||
|
#ifndef CGLM_NO_ANONYMOUS_STRUCT
|
||||||
|
struct {
|
||||||
|
float x;
|
||||||
|
float y;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
vec2 raw;
|
||||||
|
} vec2s;
|
||||||
|
|
||||||
typedef union vec3s {
|
typedef union vec3s {
|
||||||
#ifndef CGLM_NO_ANONYMOUS_STRUCT
|
#ifndef CGLM_NO_ANONYMOUS_STRUCT
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user