From 4aed9ef1a7d6aa41b1352d37705ab2a6b230503d Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Tue, 10 Sep 2013 04:25:58 +0200 Subject: [PATCH] Add Vec2 conversion method to 'Vec2i' --- src/etc-internal.h | 5 +++++ 1 file changed, 5 insertions(+) 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 */