diff --git a/src/etc-internal.h b/src/etc-internal.h index 6d34b69..7c3319c 100644 --- a/src/etc-internal.h +++ b/src/etc-internal.h @@ -76,6 +76,11 @@ struct Vec2i { return x == other.x && y == other.y; } + + operator Vec2() const + { + return Vec2(x, y); + } }; /* Simple Vertex */