ptk/include/ptk_vec.h
jacekpoz 935ca0e340
improve header guards
the following names are reserved to the language implementation:
  - (C and C++) starting with an underscore and a capital letter
  - (C++) containing any amount of double underscores

https://en.wikipedia.org/wiki/Include_guard#Discussion
2024-08-09 11:45:00 +02:00

65 lines
1 KiB
C

#ifndef PTK_PTK_VEC_H_
#define PTK_PTK_VEC_H_
typedef union {
struct { // PtkVec2, PtkPos
float x;
float y;
};
struct { // PtkSize
float w;
float h;
};
struct { // PtkSize
float width;
float height;
};
} PtkVec2;
typedef PtkVec2 PtkPos;
typedef PtkVec2 PtkSize;
typedef union {
struct { // PtkVec3
float x;
float y;
float z;
};
struct { // PtkColor
float r;
float g;
float b;
};
struct { // PtkColor
float red;
float green;
float blue;
};
} PtkVec3;
typedef PtkVec3 PtkColor;
typedef union {
struct { // PtkVec4
float x;
float y;
float z;
float w;
};
struct { // PtkColorA
float r;
float g;
float b;
float a;
};
struct { // PtkColorA
float red;
float green;
float blue;
float alpha;
};
} PtkVec4;
typedef PtkVec4 PtkColorA;
#endif // _PTK_PTK_VEC_H