Skip to content

Commit

Permalink
LibGodot: Update GDExtension APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
korompg committed Jul 15, 2024
1 parent c37577f commit c5849d5
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 15 deletions.
202 changes: 189 additions & 13 deletions gdextension/extension_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version_major": 4,
"version_minor": 3,
"version_patch": 0,
"version_status": "beta2",
"version_build": "official",
"version_full_name": "Godot Engine v4.3.beta2.official"
"version_status": "beta",
"version_build": "custom_build",
"version_full_name": "Godot Engine v4.3.beta.custom_build"
},
"builtin_class_sizes": [
{
Expand Down Expand Up @@ -91714,6 +91714,14 @@
"type": "bool"
}
},
{
"name": "force_fixed_history",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 3218959716
},
{
"name": "add_do_method",
"is_const": false,
Expand Down Expand Up @@ -103411,6 +103419,42 @@
"is_instantiable": true,
"inherits": "Resource",
"api_type": "core",
"enums": [
{
"name": "GLTFAccessorType",
"is_bitfield": false,
"values": [
{
"name": "TYPE_SCALAR",
"value": 0
},
{
"name": "TYPE_VEC2",
"value": 1
},
{
"name": "TYPE_VEC3",
"value": 2
},
{
"name": "TYPE_VEC4",
"value": 3
},
{
"name": "TYPE_MAT2",
"value": 4
},
{
"name": "TYPE_MAT3",
"value": 5
},
{
"name": "TYPE_MAT4",
"value": 6
}
]
}
],
"methods": [
{
"name": "get_buffer_view",
Expand Down Expand Up @@ -103551,10 +103595,9 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 2455072627,
"hash": 679305214,
"return_value": {
"type": "int",
"meta": "int32"
"type": "enum::GLTFAccessor.GLTFAccessorType"
}
},
{
Expand All @@ -103563,12 +103606,11 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 1286410249,
"hash": 2347728198,
"arguments": [
{
"name": "accessor_type",
"type": "int",
"meta": "int32"
"type": "enum::GLTFAccessor.GLTFAccessorType"
}
]
},
Expand Down Expand Up @@ -163218,7 +163260,7 @@
"name": "OccluderInstance3D",
"is_refcounted": false,
"is_instantiable": true,
"inherits": "Node3D",
"inherits": "VisualInstance3D",
"api_type": "core",
"methods": [
{
Expand Down Expand Up @@ -194212,6 +194254,17 @@
"type": "bool"
}
},
{
"name": "is_native_menu",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 36873697,
"return_value": {
"type": "bool"
}
},
{
"name": "add_item",
"is_const": false,
Expand Down Expand Up @@ -209877,6 +209930,36 @@
}
]
},
{
"name": "RenderingNativeSurfaceWindows",
"is_refcounted": true,
"is_instantiable": false,
"inherits": "RenderingNativeSurface",
"api_type": "core",
"methods": [
{
"name": "create",
"is_const": false,
"is_vararg": false,
"is_static": true,
"is_virtual": false,
"hash": 59659872,
"return_value": {
"type": "RenderingNativeSurfaceWindows"
},
"arguments": [
{
"name": "hwnd",
"type": "const void*"
},
{
"name": "instance",
"type": "const void*"
}
]
}
]
},
{
"name": "RenderingServer",
"is_refcounted": false,
Expand Down Expand Up @@ -230570,8 +230653,8 @@
"name": "request_save_previous_state",
"arguments": [
{
"name": "line",
"type": "int"
"name": "state",
"type": "Dictionary"
}
]
},
Expand Down Expand Up @@ -241652,7 +241735,7 @@
"getter": "get_frame"
},
{
"type": "Vector2",
"type": "Vector2i",
"name": "frame_coords",
"setter": "set_frame_coords",
"getter": "get_frame_coords"
Expand Down Expand Up @@ -251139,6 +251222,81 @@
}
]
},
{
"name": "set_use_default_word_separators",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 2586408642,
"arguments": [
{
"name": "enabled",
"type": "bool"
}
]
},
{
"name": "is_default_word_separators_enabled",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 36873697,
"return_value": {
"type": "bool"
}
},
{
"name": "set_use_custom_word_separators",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 2586408642,
"arguments": [
{
"name": "enabled",
"type": "bool"
}
]
},
{
"name": "is_custom_word_separators_enabled",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 36873697,
"return_value": {
"type": "bool"
}
},
{
"name": "set_custom_word_separators",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 83702148,
"arguments": [
{
"name": "custom_word_separators",
"type": "String"
}
]
},
{
"name": "get_custom_word_separators",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 201670096,
"return_value": {
"type": "String"
}
},
{
"name": "set_selecting_enabled",
"is_const": false,
Expand Down Expand Up @@ -253304,6 +253462,24 @@
"setter": "set_multiple_carets_enabled",
"getter": "is_multiple_carets_enabled"
},
{
"type": "bool",
"name": "use_default_word_separators",
"setter": "set_use_default_word_separators",
"getter": "is_default_word_separators_enabled"
},
{
"type": "bool",
"name": "use_custom_word_separators",
"setter": "set_use_custom_word_separators",
"getter": "is_custom_word_separators_enabled"
},
{
"type": "String",
"name": "custom_word_separators",
"setter": "set_custom_word_separators",
"getter": "get_custom_word_separators"
},
{
"type": "SyntaxHighlighter",
"name": "syntax_highlighter",
Expand Down
4 changes: 2 additions & 2 deletions gdextension/libgodot.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern "C" {
*
* @return A pointer to created \ref GodotInstance GDExtension object or nullptr if there was an error.
*/
GDExtensionObjectPtr libgodot_create_godot_instance(int p_argc, char *p_argv[], GDExtensionInitializationFunction p_init_func);
__declspec(dllexport) GDExtensionObjectPtr libgodot_create_godot_instance(int p_argc, char *p_argv[], GDExtensionInitializationFunction p_init_func, void *p_platform_data);

/**
* @name libgodot_destroy_godot_instance
Expand All @@ -60,7 +60,7 @@ GDExtensionObjectPtr libgodot_create_godot_instance(int p_argc, char *p_argv[],
* @param p_godot_instance The reference to the GodotInstance object to destroy.
*
*/
void libgodot_destroy_godot_instance(GDExtensionObjectPtr p_godot_instance);
__declspec(dllexport) void libgodot_destroy_godot_instance(GDExtensionObjectPtr p_godot_instance);

#ifdef __cplusplus
}
Expand Down

0 comments on commit c5849d5

Please sign in to comment.