diff options
Diffstat (limited to 'include/common.hpp')
-rw-r--r-- | include/common.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/common.hpp b/include/common.hpp index 5968272..310bf7f 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -91,10 +91,15 @@ typedef struct { int y; } ivec2; -typedef struct { +struct _vec2 { float x; float y; -} vec2; + + bool operator==(const _vec2 &v) { + return (x == v.x) && (y == v.y); + } +}; +typedef struct _vec2 vec2; typedef struct { float x; @@ -165,6 +170,8 @@ extern std::mutex mtx; * */ +#define HLINES(n) (HLINE * n) + extern unsigned int HLINE; extern float VOLUME_MASTER; |