65 lines
1 KiB
C
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
|