From c06792df8d846084a3c99d63ee42c110318b56e9 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Fri, 8 Dec 2017 16:07:23 +0700 Subject: [PATCH] Add vec2(). Closes #12 --- godot/core/vector2.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/godot/core/vector2.nim b/godot/core/vector2.nim index 9eca64d..7cf3ee5 100644 --- a/godot/core/vector2.nim +++ b/godot/core/vector2.nim @@ -3,6 +3,9 @@ import internal.godotinternaltypes, internal.godotstrings import godotcoretypes, gdnativeapi +proc vec2*(): Vector2 {.inline.} = + Vector2() + proc vec2*(x, y: float32): Vector2 {.inline.} = Vector2(x: x, y: y)