GDNative: Add bindings for the Packed*Array ptr() and ptrw() functions.

This commit is contained in:
bruvzg
2020-05-26 17:02:02 +03:00
parent f8005cb699
commit 9fbc424d4c
3 changed files with 243 additions and 0 deletions
+126
View File
@@ -518,6 +518,34 @@
["godot_packed_float64_array *", "p_self"]
]
},
{
"name": "godot_packed_int64_array_ptr",
"return_type": "const int64_t *",
"arguments": [
["const godot_packed_int64_array *", "p_self"]
]
},
{
"name": "godot_packed_int64_array_ptrw",
"return_type": "int64_t *",
"arguments": [
["godot_packed_int64_array *", "p_self"]
]
},
{
"name": "godot_packed_float64_array_ptr",
"return_type": "const double *",
"arguments": [
["const godot_packed_float64_array *", "p_self"]
]
},
{
"name": "godot_packed_float64_array_ptrw",
"return_type": "double *",
"arguments": [
["godot_packed_float64_array *", "p_self"]
]
},
{
"name": "godot_rect2_as_rect2i",
"return_type": "godot_rect2i",
@@ -2853,6 +2881,20 @@
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_byte_array_ptr",
"return_type": "const uint8_t *",
"arguments": [
["const godot_packed_byte_array *", "p_self"]
]
},
{
"name": "godot_packed_byte_array_ptrw",
"return_type": "uint8_t *",
"arguments": [
["godot_packed_byte_array *", "p_self"]
]
},
{
"name": "godot_packed_byte_array_set",
"return_type": "void",
@@ -2963,6 +3005,20 @@
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_int32_array_ptr",
"return_type": "const int32_t *",
"arguments": [
["const godot_packed_int32_array *", "p_self"]
]
},
{
"name": "godot_packed_int32_array_ptrw",
"return_type": "int32_t *",
"arguments": [
["godot_packed_int32_array *", "p_self"]
]
},
{
"name": "godot_packed_int32_array_set",
"return_type": "void",
@@ -3073,6 +3129,20 @@
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_float32_array_ptr",
"return_type": "const float *",
"arguments": [
["const godot_packed_float32_array *", "p_self"]
]
},
{
"name": "godot_packed_float32_array_ptrw",
"return_type": "float *",
"arguments": [
["godot_packed_float32_array *", "p_self"]
]
},
{
"name": "godot_packed_float32_array_set",
"return_type": "void",
@@ -3183,6 +3253,20 @@
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_string_array_ptr",
"return_type": "const godot_string *",
"arguments": [
["const godot_packed_string_array *", "p_self"]
]
},
{
"name": "godot_packed_string_array_ptrw",
"return_type": "godot_string *",
"arguments": [
["godot_packed_string_array *", "p_self"]
]
},
{
"name": "godot_packed_string_array_set",
"return_type": "void",
@@ -3293,6 +3377,20 @@
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_vector2_array_ptr",
"return_type": "const godot_vector2 *",
"arguments": [
["const godot_packed_vector2_array *", "p_self"]
]
},
{
"name": "godot_packed_vector2_array_ptrw",
"return_type": "godot_vector2 *",
"arguments": [
["godot_packed_vector2_array *", "p_self"]
]
},
{
"name": "godot_packed_vector2_array_set",
"return_type": "void",
@@ -3403,6 +3501,20 @@
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_vector3_array_ptr",
"return_type": "const godot_vector3 *",
"arguments": [
["const godot_packed_vector3_array *", "p_self"]
]
},
{
"name": "godot_packed_vector3_array_ptrw",
"return_type": "godot_vector3 *",
"arguments": [
["godot_packed_vector3_array *", "p_self"]
]
},
{
"name": "godot_packed_vector3_array_set",
"return_type": "void",
@@ -3512,6 +3624,20 @@
["godot_packed_color_array *", "p_self"],
["const godot_int", "p_size"]
]
},
{
"name": "godot_packed_color_array_ptr",
"return_type": "const godot_color *",
"arguments": [
["const godot_packed_color_array *", "p_self"]
]
},
{
"name": "godot_packed_color_array_ptrw",
"return_type": "godot_color *",
"arguments": [
["godot_packed_color_array *", "p_self"]
]
},
{
"name": "godot_packed_color_array_set",