Update GDNative API struct
This commit is contained in:
parent
26570707aa
commit
e494dc914a
2 changed files with 64 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
version = "0.6.2"
|
version = "0.6.3"
|
||||||
author = "Xored Software, Inc."
|
author = "Xored Software, Inc."
|
||||||
description = "Godot Engine bindings"
|
description = "Godot Engine bindings"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
|
|
@ -295,6 +295,8 @@ type GDNativeAPI* = object
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
poolByteArrayResize*: proc (self: var GodotPoolByteArray, size: cint)
|
poolByteArrayResize*: proc (self: var GodotPoolByteArray, size: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
poolByteArrayRead: pointer
|
||||||
|
poolByteArrayWrite: pointer
|
||||||
poolByteArraySet*: proc (self: var GodotPoolByteArray, idx: cint, data: byte)
|
poolByteArraySet*: proc (self: var GodotPoolByteArray, idx: cint, data: byte)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
poolByteArrayGet*: proc (self: GodotPoolByteArray, idx: cint): byte
|
poolByteArrayGet*: proc (self: GodotPoolByteArray, idx: cint): byte
|
||||||
|
|
@ -330,6 +332,8 @@ type GDNativeAPI* = object
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
poolIntArrayResize*: proc (self: var GodotPoolIntArray, size: cint)
|
poolIntArrayResize*: proc (self: var GodotPoolIntArray, size: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
poolIntArrayRead: pointer
|
||||||
|
poolIntArrayWrite: pointer
|
||||||
poolIntArraySet*: proc (self: var GodotPoolIntArray, idx: cint, data: cint)
|
poolIntArraySet*: proc (self: var GodotPoolIntArray, idx: cint, data: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
poolIntArrayGet*: proc (self: GodotPoolIntArray, idx: cint): cint
|
poolIntArrayGet*: proc (self: GodotPoolIntArray, idx: cint): cint
|
||||||
|
|
@ -367,6 +371,8 @@ type GDNativeAPI* = object
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
poolRealArrayResize*: proc (self: var GodotPoolRealArray, size: cint)
|
poolRealArrayResize*: proc (self: var GodotPoolRealArray, size: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
poolRealArrayRead: pointer
|
||||||
|
poolRealArrayWrite: pointer
|
||||||
poolRealArraySet*: proc (self: var GodotPoolRealArray, idx: cint,
|
poolRealArraySet*: proc (self: var GodotPoolRealArray, idx: cint,
|
||||||
data: float32)
|
data: float32)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
|
@ -413,6 +419,8 @@ type GDNativeAPI* = object
|
||||||
poolStringArrayResize*: proc (self: var GodotPoolStringArray, size: cint)
|
poolStringArrayResize*: proc (self: var GodotPoolStringArray, size: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [],
|
{.noconv, raises: [], gcsafe, tags: [],
|
||||||
locks: 0.}
|
locks: 0.}
|
||||||
|
poolStringArrayRead: pointer
|
||||||
|
poolStringArrayWrite: pointer
|
||||||
poolStringArraySet*: proc (self: var GodotPoolStringArray, idx: cint,
|
poolStringArraySet*: proc (self: var GodotPoolStringArray, idx: cint,
|
||||||
data: GodotString)
|
data: GodotString)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
|
@ -459,6 +467,8 @@ type GDNativeAPI* = object
|
||||||
poolVector2ArrayResize*: proc (self: var GodotPoolVector2Array, size: cint)
|
poolVector2ArrayResize*: proc (self: var GodotPoolVector2Array, size: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [],
|
{.noconv, raises: [], gcsafe, tags: [],
|
||||||
locks: 0.}
|
locks: 0.}
|
||||||
|
poolVector2ArrayRead: pointer
|
||||||
|
poolVector2ArrayWrite: pointer
|
||||||
poolVector2ArraySet*: proc (self: var GodotPoolVector2Array, idx: cint,
|
poolVector2ArraySet*: proc (self: var GodotPoolVector2Array, idx: cint,
|
||||||
data: Vector2)
|
data: Vector2)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
|
@ -504,6 +514,8 @@ type GDNativeAPI* = object
|
||||||
poolVector3ArrayResize*: proc (self: var GodotPoolVector3Array,
|
poolVector3ArrayResize*: proc (self: var GodotPoolVector3Array,
|
||||||
size: cint) {.noconv, raises: [], gcsafe,
|
size: cint) {.noconv, raises: [], gcsafe,
|
||||||
tags: [], locks: 0.}
|
tags: [], locks: 0.}
|
||||||
|
poolVector3ArrayRead: pointer
|
||||||
|
poolVector3ArrayWrite: pointer
|
||||||
poolVector3ArraySet*: proc (self: var GodotPoolVector3Array, idx: cint,
|
poolVector3ArraySet*: proc (self: var GodotPoolVector3Array, idx: cint,
|
||||||
data: Vector3) {.noconv, raises: [], gcsafe,
|
data: Vector3) {.noconv, raises: [], gcsafe,
|
||||||
tags: [], locks: 0.}
|
tags: [], locks: 0.}
|
||||||
|
|
@ -545,6 +557,8 @@ type GDNativeAPI* = object
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
poolColorArrayResize*: proc (self: var GodotPoolColorArray, size: cint)
|
poolColorArrayResize*: proc (self: var GodotPoolColorArray, size: cint)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
poolColorArrayRead: pointer
|
||||||
|
poolColorArrayWrite: pointer
|
||||||
poolColorArraySet*: proc (self: var GodotPoolColorArray, idx: cint,
|
poolColorArraySet*: proc (self: var GodotPoolColorArray, idx: cint,
|
||||||
data: Color)
|
data: Color)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
|
@ -556,6 +570,52 @@ type GDNativeAPI* = object
|
||||||
{.noconv, raises: [], gcsafe, tags: [],
|
{.noconv, raises: [], gcsafe, tags: [],
|
||||||
locks: 0.}
|
locks: 0.}
|
||||||
|
|
||||||
|
# Pool Array Read Access API
|
||||||
|
|
||||||
|
poolByteArrayReadAccessPtr: pointer
|
||||||
|
poolByteArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolByteArrayReadAccessDestroy: pointer
|
||||||
|
poolIntArrayReadAccessPtr: pointer
|
||||||
|
poolIntArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolIntArrayReadAccessDestroy: pointer
|
||||||
|
poolRealArrayReadAccessPtr: pointer
|
||||||
|
poolRealArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolRealArrayReadAccessDestroy: pointer
|
||||||
|
poolStringArrayReadAccessPtr: pointer
|
||||||
|
poolStringArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolStringArrayReadAccessDestroy: pointer
|
||||||
|
poolVector2ArrayReadAccessPtr: pointer
|
||||||
|
poolVector2ArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolVector2ArrayReadAccessDestroy: pointer
|
||||||
|
poolVector3ArrayReadAccessPtr: pointer
|
||||||
|
poolVector3ArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolVector3ArrayReadAccessDestroy: pointer
|
||||||
|
poolColorArrayReadAccessPtr: pointer
|
||||||
|
poolColorArrayReadAccessOperatorAssign: pointer
|
||||||
|
poolColorArrayReadAccessDestroy: pointer
|
||||||
|
|
||||||
|
poolByteArrayWriteAccessPtr: pointer
|
||||||
|
poolByteArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolByteArrayWriteAccessDestroy: pointer
|
||||||
|
poolIntArrayWriteAccessPtr: pointer
|
||||||
|
poolIntArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolIntArrayWriteAccessDestroy: pointer
|
||||||
|
poolRealArrayWriteAccessPtr: pointer
|
||||||
|
poolRealArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolRealArrayWriteAccessDestroy: pointer
|
||||||
|
poolStringArrayWriteAccessPtr: pointer
|
||||||
|
poolStringArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolStringArrayWriteAccessDestroy: pointer
|
||||||
|
poolVector2ArrayWriteAccessPtr: pointer
|
||||||
|
poolVector2ArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolVector2ArrayWriteAccessDestroy: pointer
|
||||||
|
poolVector3ArrayWriteAccessPtr: pointer
|
||||||
|
poolVector3ArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolVector3ArrayWriteAccessDestroy: pointer
|
||||||
|
poolColorArrayWriteAccessPtr: pointer
|
||||||
|
poolColorArrayWriteAccessOperatorAssign: pointer
|
||||||
|
poolColorArrayWriteAccessDestroy: pointer
|
||||||
|
|
||||||
# Array API
|
# Array API
|
||||||
arrayNew*: proc (dest: var GodotArray)
|
arrayNew*: proc (dest: var GodotArray)
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
|
@ -1155,6 +1215,7 @@ type GDNativeAPI* = object
|
||||||
stringOperatorIndex: pointer
|
stringOperatorIndex: pointer
|
||||||
stringCStr*: proc (self: GodotString): cstring
|
stringCStr*: proc (self: GodotString): cstring
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
stringOperatorIndexConst: pointer
|
||||||
stringUTF16Str: pointer
|
stringUTF16Str: pointer
|
||||||
stringOperatorEqual*: proc (self, other: GodotString): bool
|
stringOperatorEqual*: proc (self, other: GodotString): bool
|
||||||
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
{.noconv, raises: [], gcsafe, tags: [], locks: 0.}
|
||||||
|
|
@ -1379,6 +1440,8 @@ type GDNativeAPI* = object
|
||||||
{.noconv, raises: [], gcsafe, tags: [],
|
{.noconv, raises: [], gcsafe, tags: [],
|
||||||
locks: 0.}
|
locks: 0.}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var gdNativeAPI: ptr GDNativeAPI
|
var gdNativeAPI: ptr GDNativeAPI
|
||||||
|
|
||||||
proc getGDNativeAPI*(): ptr GDNativeAPI {.inline.} =
|
proc getGDNativeAPI*(): ptr GDNativeAPI {.inline.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue