Add vec2(). Closes #12
This commit is contained in:
parent
8d6972f729
commit
c06792df8d
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
||||||
|
proc vec2*(): Vector2 {.inline.} =
|
||||||
|
Vector2()
|
||||||
|
|
||||||
proc vec2*(x, y: float32): Vector2 {.inline.} =
|
proc vec2*(x, y: float32): Vector2 {.inline.} =
|
||||||
Vector2(x: x, y: y)
|
Vector2(x: x, y: y)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue