pawengine/types.h

45 lines
629 B
C
Raw Permalink Normal View History

2025-02-09 18:48:25 +01:00
#ifndef INCLUDE_WAYLANDCLIENT_TYPES_H_
#define INCLUDE_WAYLANDCLIENT_TYPES_H_
#define PI 3.141592653589793238462643f
// struct vec2 {
// union {
// struct {
// float x, y;
// };
// float arr[2];
// };
// };
struct Vec2 {
float x, y;
};
struct IVec2 {
int x, y;
};
// struct vec3 {
// union {
// struct {
// float x, y, z;
// };
// struct {
// float r, g, b;
// };
// float arr[3];
// };
// };
struct Vec3 {
float x, y, z;
};
struct Vec4 {
float x, y, z, w;
};
struct Vertex {
struct Vec2 pos;
struct Vec3 col;
};
#endif // INCLUDE_WAYLANDCLIENT_TYPES_H_