From fecb2959b4e99393c86537cfe5a26c7b753bc11d Mon Sep 17 00:00:00 2001 From: David Snopek Date: Mon, 14 Aug 2023 15:59:46 -0500 Subject: [PATCH] Check that GDExtension is opened by compatible Godot version --- gdextension/extension_api.json | 3449 ++++++++++++++++++++++++++++++-- src/godot.cpp | 53 +- test/project/project.godot | 2 +- 3 files changed, 3319 insertions(+), 185 deletions(-) diff --git a/gdextension/extension_api.json b/gdextension/extension_api.json index 40481edb..1eaa18fe 100644 --- a/gdextension/extension_api.json +++ b/gdextension/extension_api.json @@ -1,11 +1,11 @@ { "header": { "version_major": 4, - "version_minor": 1, - "version_patch": 1, - "version_status": "stable", + "version_minor": 2, + "version_patch": 0, + "version_status": "dev3", "version_build": "official", - "version_full_name": "Godot Engine v4.1.1.stable.official" + "version_full_name": "Godot Engine v4.2.dev3.official" }, "builtin_class_sizes": [ { @@ -24962,6 +24962,44 @@ } ] }, + { + "name": "fill_solid_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1152863744, + "arguments": [ + { + "name": "region", + "type": "Rect2i" + }, + { + "name": "solid", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "fill_weight_scale_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2793244083, + "arguments": [ + { + "name": "region", + "type": "Rect2i" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float" + } + ] + }, { "name": "clear", "is_const": false, @@ -39785,6 +39823,40 @@ "inherits": "AudioStream", "api_type": "core", "methods": [ + { + "name": "load_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 354904730, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_from_file", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 797568536, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, { "name": "set_packet_sequence", "is_const": false, @@ -42667,7 +42739,7 @@ "is_virtual": true, "arguments": [ { - "name": "button_pressed", + "name": "toggled_on", "type": "bool" } ] @@ -42973,7 +43045,7 @@ "name": "toggled", "arguments": [ { - "name": "button_pressed", + "name": "toggled_on", "type": "bool" } ] @@ -48609,6 +48681,11 @@ ] } ], + "signals": [ + { + "name": "finished" + } + ], "properties": [ { "type": "bool", @@ -50253,6 +50330,11 @@ ] } ], + "signals": [ + { + "name": "finished" + } + ], "properties": [ { "type": "bool", @@ -62392,15 +62474,41 @@ }, { "name": "get_text_for_symbol_lookup", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2841200299, + "hash": 201670096, + "hash_compatibility": [ + 2841200299 + ], "return_value": { "type": "String" } }, + { + "name": "get_text_with_cursor_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1391810591, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_symbol_lookup_word_as_valid", "is_const": false, @@ -73362,6 +73470,32 @@ } ] }, + { + "name": "FileDialogMode", + "is_bitfield": false, + "values": [ + { + "name": "FILE_DIALOG_MODE_OPEN_FILE", + "value": 0 + }, + { + "name": "FILE_DIALOG_MODE_OPEN_FILES", + "value": 1 + }, + { + "name": "FILE_DIALOG_MODE_OPEN_DIR", + "value": 2 + }, + { + "name": "FILE_DIALOG_MODE_OPEN_ANY", + "value": 3 + }, + { + "name": "FILE_DIALOG_MODE_SAVE_FILE", + "value": 4 + } + ] + }, { "name": "WindowMode", "is_bitfield": false, @@ -75012,6 +75146,17 @@ "type": "String" } }, + { + "name": "clipboard_get_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4190603485, + "return_value": { + "type": "Image" + } + }, { "name": "clipboard_has", "is_const": true, @@ -75023,6 +75168,17 @@ "type": "bool" } }, + { + "name": "clipboard_has_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "clipboard_set_primary", "is_const": false, @@ -76432,6 +76588,47 @@ } ] }, + { + "name": "file_dialog_show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1531299078, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "title", + "type": "String" + }, + { + "name": "current_directory", + "type": "String" + }, + { + "name": "filename", + "type": "String" + }, + { + "name": "show_hidden", + "type": "bool" + }, + { + "name": "mode", + "type": "enum::DisplayServer.FileDialogMode" + }, + { + "name": "filters", + "type": "PackedStringArray" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, { "name": "keyboard_get_layout_count", "is_const": true, @@ -76524,6 +76721,23 @@ } ] }, + { + "name": "keyboard_get_label_from_physical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3447613187, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, { "name": "process_events", "is_const": false, @@ -78154,6 +78368,26 @@ } ] }, + { + "name": "_get_export_option_warning", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "option", + "type": "String" + } + ] + }, { "name": "_get_export_features", "is_const": true, @@ -78184,6 +78418,142 @@ "type": "String" } }, + { + "name": "_supports_platform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + } + ] + }, + { + "name": "_get_android_dependencies", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_dependencies_maven_repos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_libraries", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_manifest_activity_element_contents", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_manifest_application_element_contents", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_manifest_element_contents", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, { "name": "add_shared_object", "is_const": false, @@ -80299,6 +80669,31 @@ } ] }, + { + "name": "get_current_feature_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_current_feature_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "profile_name", + "type": "String" + } + ] + }, { "name": "get_file_system_dock", "is_const": true, @@ -80531,6 +80926,14 @@ } ] }, + { + "name": "save_all_scenes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "mark_scene_as_unsaved", "is_const": false, @@ -81958,6 +82361,22 @@ "is_vararg": false, "is_virtual": true }, + { + "name": "_get_unsaved_status", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "for_scene", + "type": "String" + } + ] + }, { "name": "_save_external_data", "is_const": false, @@ -82653,6 +83072,17 @@ "type": "EditorDebuggerPlugin" } ] + }, + { + "name": "get_plugin_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } } ], "signals": [ @@ -90500,6 +90930,60 @@ "value": 4 } ] + }, + { + "name": "UnixPermissionFlags", + "is_bitfield": true, + "values": [ + { + "name": "UNIX_READ_OWNER", + "value": 256 + }, + { + "name": "UNIX_WRITE_OWNER", + "value": 128 + }, + { + "name": "UNIX_EXECUTE_OWNER", + "value": 64 + }, + { + "name": "UNIX_READ_GROUP", + "value": 32 + }, + { + "name": "UNIX_WRITE_GROUP", + "value": 16 + }, + { + "name": "UNIX_EXECUTE_GROUP", + "value": 8 + }, + { + "name": "UNIX_READ_OTHER", + "value": 4 + }, + { + "name": "UNIX_WRITE_OTHER", + "value": 2 + }, + { + "name": "UNIX_EXECUTE_OTHER", + "value": 1 + }, + { + "name": "UNIX_SET_USER_ID", + "value": 2048 + }, + { + "name": "UNIX_SET_GROUP_ID", + "value": 1024 + }, + { + "name": "UNIX_RESTRICTED_DELETE", + "value": 512 + } + ] } ], "methods": [ @@ -91241,6 +91725,120 @@ "type": "String" } ] + }, + { + "name": "get_unix_permissions", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 524341837, + "return_value": { + "type": "bitfield::FileAccess.UnixPermissionFlags" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "set_unix_permissions", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 846038644, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + }, + { + "name": "permissions", + "type": "bitfield::FileAccess.UnixPermissionFlags" + } + ] + }, + { + "name": "get_hidden_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "set_hidden_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2892558115, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + }, + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "set_read_only_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2892558115, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + }, + { + "name": "ro", + "type": "bool" + } + ] + }, + { + "name": "get_read_only_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] } ], "properties": [ @@ -91579,6 +92177,31 @@ "type": "bool" } }, + { + "name": "set_use_native_dialog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "native", + "type": "bool" + } + ] + }, + { + "name": "get_use_native_dialog", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "deselect_all", "is_const": false, @@ -91662,6 +92285,12 @@ "setter": "set_show_hidden_files", "getter": "is_showing_hidden_files" }, + { + "type": "bool", + "name": "use_native_dialog", + "setter": "set_use_native_dialog", + "getter": "get_use_native_dialog" + }, { "type": "String", "name": "current_dir", @@ -93090,6 +93719,14 @@ "meta": "int64" } } + ], + "properties": [ + { + "type": "typedarray::24/17:Font", + "name": "fallbacks", + "setter": "set_fallbacks", + "getter": "get_fallbacks" + } ] }, { @@ -94994,12 +95631,6 @@ "name": "opentype_feature_overrides", "setter": "set_opentype_feature_overrides", "getter": "get_opentype_feature_overrides" - }, - { - "type": "typedarray::24/17:Font", - "name": "fallbacks", - "setter": "set_fallbacks", - "getter": "get_fallbacks" } ] }, @@ -95180,12 +95811,6 @@ "setter": "set_base_font", "getter": "get_base_font" }, - { - "type": "typedarray::24/17:Font", - "name": "fallbacks", - "setter": "set_fallbacks", - "getter": "get_fallbacks" - }, { "type": "Dictionary", "name": "variation_opentype", @@ -95246,13 +95871,6 @@ } ] }, - { - "name": "FramebufferCacheRD", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "Object", - "api_type": "core" - }, { "name": "GDExtension", "is_refcounted": true, @@ -96736,6 +97354,16 @@ } ] }, + { + "name": "_get_image_file_extension", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, { "name": "_parse_texture_json", "is_const": false, @@ -96889,6 +97517,22 @@ } ] }, + { + "name": "_export_preserialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + } + ] + }, { "name": "_export_node", "is_const": false, @@ -99065,6 +99709,31 @@ } ] }, + { + "name": "get_copyright", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_copyright", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "copyright", + "type": "String" + } + ] + }, { "name": "get_glb_data", "is_const": false, @@ -99352,6 +100021,31 @@ } ] }, + { + "name": "get_filename", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_filename", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, { "name": "get_root_nodes", "is_const": false, @@ -99770,6 +100464,12 @@ "setter": "set_minor_version", "getter": "get_minor_version" }, + { + "type": "String", + "name": "copyright", + "setter": "set_copyright", + "getter": "get_copyright" + }, { "type": "PackedByteArray", "name": "glb_data", @@ -99830,6 +100530,12 @@ "setter": "set_base_path", "getter": "get_base_path" }, + { + "type": "String", + "name": "filename", + "setter": "set_filename", + "getter": "get_filename" + }, { "type": "PackedInt32Array", "name": "root_nodes", @@ -100806,6 +101512,11 @@ } } ], + "signals": [ + { + "name": "finished" + } + ], "properties": [ { "type": "bool", @@ -101684,6 +102395,11 @@ } } ], + "signals": [ + { + "name": "finished" + } + ], "properties": [ { "type": "bool", @@ -103848,6 +104564,35 @@ } ] }, + { + "name": "get_triangle_barycentric_coords", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1362048029, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "point", + "type": "Vector3" + }, + { + "name": "a", + "type": "Vector3" + }, + { + "name": "b", + "type": "Vector3" + }, + { + "name": "c", + "type": "Vector3" + } + ] + }, { "name": "ray_intersects_triangle", "is_const": false, @@ -105614,7 +106359,7 @@ "hash": 3218959716 }, { - "name": "get_scroll_ofs", + "name": "get_scroll_offset", "is_const": true, "is_vararg": false, "is_static": false, @@ -105625,7 +106370,7 @@ } }, { - "name": "set_scroll_ofs", + "name": "set_scroll_offset", "is_const": false, "is_vararg": false, "is_static": false, @@ -105941,7 +106686,57 @@ } }, { - "name": "set_snap", + "name": "set_show_grid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_showing_grid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_snapping_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_snapping_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_snapping_distance", "is_const": false, "is_vararg": false, "is_static": false, @@ -105956,7 +106751,7 @@ ] }, { - "name": "get_snap", + "name": "get_snapping_distance", "is_const": true, "is_vararg": false, "is_static": false, @@ -105967,31 +106762,6 @@ "meta": "int32" } }, - { - "name": "set_use_snap", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enable", - "type": "bool" - } - ] - }, - { - "name": "is_using_snap", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, { "name": "set_connection_lines_curvature", "is_const": false, @@ -106199,7 +106969,7 @@ } }, { - "name": "get_zoom_hbox", + "name": "get_menu_hbox", "is_const": false, "is_vararg": false, "is_static": false, @@ -106400,20 +107170,26 @@ { "type": "Vector2", "name": "scroll_offset", - "setter": "set_scroll_ofs", - "getter": "get_scroll_ofs" - }, - { - "type": "int", - "name": "snap_distance", - "setter": "set_snap", - "getter": "get_snap" + "setter": "set_scroll_offset", + "getter": "get_scroll_offset" }, { "type": "bool", - "name": "use_snap", - "setter": "set_use_snap", - "getter": "is_using_snap" + "name": "show_grid", + "setter": "set_show_grid", + "getter": "is_showing_grid" + }, + { + "type": "bool", + "name": "snapping_enabled", + "setter": "set_snapping_enabled", + "getter": "is_snapping_enabled" + }, + { + "type": "int", + "name": "snapping_distance", + "setter": "set_snapping_distance", + "getter": "get_snapping_distance" }, { "type": "int", @@ -106964,31 +107740,6 @@ "type": "Vector2" } }, - { - "name": "set_comment", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "comment", - "type": "bool" - } - ] - }, - { - "name": "is_comment", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, { "name": "set_resizable", "is_const": false, @@ -107441,12 +108192,6 @@ "setter": "set_selected", "getter": "is_selected" }, - { - "type": "bool", - "name": "comment", - "setter": "set_comment", - "getter": "is_comment" - }, { "type": "int", "name": "overlay", @@ -111638,6 +112383,69 @@ "type": "PackedByteArray" } ] + }, + { + "name": "load_dds_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_svg_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1822513750, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + }, + { + "name": "scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "load_svg_from_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1461766635, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "svg_str", + "type": "String" + }, + { + "name": "scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] } ], "properties": [ @@ -113089,6 +113897,47 @@ } ] }, + { + "name": "get_joy_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "should_ignore_device", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "vendor_id", + "type": "int", + "meta": "int32" + }, + { + "name": "product_id", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "get_connected_joypads", "is_const": false, @@ -124244,6 +125093,31 @@ "type": "bool" } }, + { + "name": "set_drag_and_drop_selection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drag_and_drop_selection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_right_icon", "is_const": false, @@ -124446,6 +125320,12 @@ "setter": "set_deselect_on_focus_loss_enabled", "getter": "is_deselect_on_focus_loss_enabled" }, + { + "type": "bool", + "name": "drag_and_drop_selection_enabled", + "setter": "set_drag_and_drop_selection_enabled", + "getter": "is_drag_and_drop_selection_enabled" + }, { "type": "Texture", "name": "right_icon", @@ -134817,6 +135697,14 @@ "type": "Mesh" } ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -136875,6 +137763,14 @@ "type": "float", "meta": "float" } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -136961,6 +137857,31 @@ "type": "bool" } }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_use_edge_connections", "is_const": false, @@ -137313,6 +138234,31 @@ "type": "bool" } }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_use_edge_connections", "is_const": false, @@ -137928,6 +138874,41 @@ "type": "RID" } }, + { + "name": "region_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "region_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, { "name": "region_set_use_edge_connections", "is_const": false, @@ -138311,6 +139292,41 @@ } ] }, + { + "name": "link_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "link_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, { "name": "link_set_bidirectional", "is_const": false, @@ -139768,6 +140784,41 @@ "type": "RID" } }, + { + "name": "region_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "region_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, { "name": "region_set_use_edge_connections", "is_const": false, @@ -140169,6 +141220,41 @@ } ] }, + { + "name": "link_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "link_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, { "name": "link_set_bidirectional", "is_const": false, @@ -147064,6 +148150,17 @@ } ] }, + { + "name": "is_sandboxed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "request_permission", "is_const": false, @@ -147102,6 +148199,14 @@ "return_value": { "type": "PackedStringArray" } + }, + { + "name": "revoke_granted_permissions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -148378,6 +149483,222 @@ } ] }, + { + "name": "OpenXRAPIExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_system_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_session", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "transform_from_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3255299855, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "pose", + "type": "const void*" + } + ] + }, + { + "name": "xr_result", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3886436197, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "result", + "type": "int", + "meta": "uint64" + }, + { + "name": "format", + "type": "String" + }, + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "openxr_is_enabled", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2703660260, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "check_run_in_editor", + "type": "bool" + } + ] + }, + { + "name": "get_instance_proc_addr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1597066294, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_error_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "result", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "get_swapchain_format_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "swapchain_format", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "is_initialized", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_running", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_play_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_next_frame_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "can_render", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ] + }, { "name": "OpenXRAction", "is_refcounted": true, @@ -148883,6 +150204,254 @@ } ] }, + { + "name": "OpenXRExtensionWrapperExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "_get_requested_extensions", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_set_system_properties_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_set_instance_create_info_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_set_session_create_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_set_swapchain_create_info_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_on_register_metadata", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_before_instance_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_instance_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_on_instance_destroyed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_session_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "session", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_on_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_pre_render", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_session_destroyed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_idle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_ready", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_synchronized", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_visible", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_focused", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_stopping", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_loss_pending", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_exiting", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_event_polled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "const void*" + } + ] + }, + { + "name": "get_openxr_api", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1637791613, + "return_value": { + "type": "OpenXRAPIExtension" + } + }, + { + "name": "register_extension_wrapper", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, { "name": "OpenXRHand", "is_refcounted": false, @@ -182646,6 +184215,18 @@ "type": "Vector3" } }, + { + "name": "get_collision_face_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "add_exception_rid", "is_const": false, @@ -182874,6 +184455,31 @@ "type": "bool" } }, + { + "name": "set_hit_back_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_back_faces_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_debug_shape_custom_color", "is_const": false, @@ -182958,6 +184564,12 @@ "setter": "set_hit_from_inside", "getter": "is_hit_from_inside_enabled" }, + { + "type": "bool", + "name": "hit_back_faces", + "setter": "set_hit_back_faces", + "getter": "is_hit_back_faces_enabled" + }, { "type": "bool", "name": "collide_with_areas", @@ -184311,6 +185923,787 @@ } ] }, + { + "name": "RenderSceneBuffers", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "configure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3072623270, + "arguments": [ + { + "name": "config", + "type": "RenderSceneBuffersConfiguration" + } + ] + } + ] + }, + { + "name": "RenderSceneBuffersConfiguration", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_render_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_render_target", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "render_target", + "type": "RID" + } + ] + }, + { + "name": "get_internal_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_internal_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "internal_size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_target_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_target_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "target_size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_view_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_view_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "view_count", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_scaling_3d_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 976778074, + "return_value": { + "type": "enum::RenderingServer.ViewportScaling3DMode" + } + }, + { + "name": "set_scaling_3d_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 447477857, + "arguments": [ + { + "name": "scaling_3d_mode", + "type": "enum::RenderingServer.ViewportScaling3DMode" + } + ] + }, + { + "name": "get_msaa_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3109158617, + "return_value": { + "type": "enum::RenderingServer.ViewportMSAA" + } + }, + { + "name": "set_msaa_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3952630748, + "arguments": [ + { + "name": "msaa_3d", + "type": "enum::RenderingServer.ViewportMSAA" + } + ] + }, + { + "name": "get_screen_space_aa", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 641513172, + "return_value": { + "type": "enum::RenderingServer.ViewportScreenSpaceAA" + } + }, + { + "name": "set_screen_space_aa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 139543108, + "arguments": [ + { + "name": "screen_space_aa", + "type": "enum::RenderingServer.ViewportScreenSpaceAA" + } + ] + }, + { + "name": "get_fsr_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fsr_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fsr_sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texture_mipmap_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_texture_mipmap_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "texture_mipmap_bias", + "type": "float", + "meta": "float" + } + ] + } + ], + "properties": [ + { + "type": "RID", + "name": "render_target", + "setter": "set_render_target", + "getter": "get_render_target" + }, + { + "type": "Vector2i", + "name": "internal_size", + "setter": "set_internal_size", + "getter": "get_internal_size" + }, + { + "type": "Vector2i", + "name": "target_size", + "setter": "set_target_size", + "getter": "get_target_size" + }, + { + "type": "int", + "name": "view_count", + "setter": "set_view_count", + "getter": "get_view_count" + }, + { + "type": "int", + "name": "scaling_3d_mode", + "setter": "set_scaling_3d_mode", + "getter": "get_scaling_3d_mode" + }, + { + "type": "int", + "name": "msaa_3d", + "setter": "set_msaa_3d", + "getter": "get_msaa_3d" + }, + { + "type": "int", + "name": "screen_space_aa", + "setter": "set_screen_space_aa", + "getter": "get_screen_space_aa" + }, + { + "type": "bool", + "name": "fsr_sharpness", + "setter": "set_fsr_sharpness", + "getter": "get_fsr_sharpness" + }, + { + "type": "bool", + "name": "texture_mipmap_bias", + "setter": "set_texture_mipmap_bias", + "getter": "get_texture_mipmap_bias" + } + ] + }, + { + "name": "RenderSceneBuffersExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RenderSceneBuffers", + "api_type": "core", + "methods": [ + { + "name": "_configure", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "config", + "type": "RenderSceneBuffersConfiguration" + } + ] + }, + { + "name": "_set_fsr_sharpness", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "fsr_sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_set_texture_mipmap_bias", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "texture_mipmap_bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_set_use_debanding", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "use_debanding", + "type": "bool" + } + ] + } + ] + }, + { + "name": "RenderSceneBuffersRD", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RenderSceneBuffers", + "api_type": "core", + "methods": [ + { + "name": "has_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "create_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3559915770, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "data_format", + "type": "enum::RenderingDevice.DataFormat" + }, + { + "name": "usage_bits", + "type": "int", + "meta": "uint32" + }, + { + "name": "texture_samples", + "type": "enum::RenderingDevice.TextureSamples" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmaps", + "type": "int", + "meta": "uint32" + }, + { + "name": "unique", + "type": "bool" + } + ] + }, + { + "name": "create_texture_from_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3344669382, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "format", + "type": "RDTextureFormat" + }, + { + "name": "view", + "type": "RDTextureView" + }, + { + "name": "unique", + "type": "bool" + } + ] + }, + { + "name": "create_texture_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 283055834, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "view_name", + "type": "StringName" + }, + { + "name": "view", + "type": "RDTextureView" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 750006389, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_texture_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 371461758, + "return_value": { + "type": "RDTextureFormat" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_texture_slice", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 588440706, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmap", + "type": "int", + "meta": "uint32" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmaps", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_texture_slice_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2617625368, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "mipmap", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "clear_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "context", + "type": "StringName" + } + ] + }, + { + "name": "get_color_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_color_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_depth_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_depth_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_velocity_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_velocity_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_render_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_view_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_internal_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "get_use_taa", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ] + }, { "name": "RenderingDevice", "is_refcounted": false, @@ -185303,9 +187696,13 @@ "is_bitfield": true, "values": [ { - "name": "BARRIER_MASK_RASTER", + "name": "BARRIER_MASK_VERTEX", "value": 1 }, + { + "name": "BARRIER_MASK_FRAGMENT", + "value": 8 + }, { "name": "BARRIER_MASK_COMPUTE", "value": 2 @@ -185314,13 +187711,17 @@ "name": "BARRIER_MASK_TRANSFER", "value": 4 }, + { + "name": "BARRIER_MASK_RASTER", + "value": 9 + }, { "name": "BARRIER_MASK_ALL_BARRIERS", - "value": 7 + "value": 32767 }, { "name": "BARRIER_MASK_NO_BARRIER", - "value": 8 + "value": 32768 } ] }, @@ -186490,7 +188891,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -186625,7 +189026,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -186671,7 +189072,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -186697,7 +189098,24 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" + } + ] + }, + { + "name": "texture_get_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1374471690, + "return_value": { + "type": "RDTextureFormat" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" } ] }, @@ -187186,7 +189604,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3049171473, + "hash": 2078349841, + "hash_compatibility": [ + 3049171473 + ], "return_value": { "type": "RID" }, @@ -187194,9 +189615,25 @@ { "name": "binary_data", "type": "PackedByteArray" + }, + { + "name": "placeholder_rid", + "type": "RID", + "default_value": "RID()" } ] }, + { + "name": "shader_create_placeholder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, { "name": "shader_get_vertex_input_attribute_mask", "is_const": false, @@ -187368,7 +189805,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -187400,7 +189837,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -187980,12 +190417,12 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 422991495, + "hash": 3920951950, "arguments": [ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -188126,12 +190563,12 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 422991495, + "hash": 3920951950, "arguments": [ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -188295,17 +190732,17 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 266666049, + "hash": 3718155691, "arguments": [ { "name": "from", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" }, { "name": "to", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -190999,6 +193436,23 @@ } ] }, + { + "name": "texture_get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1932918979, + "return_value": { + "type": "enum::Image.Format" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, { "name": "texture_set_force_redraw_if_visible", "is_const": false, @@ -191017,6 +193471,28 @@ } ] }, + { + "name": "texture_rd_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3291180269, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "rd_texture", + "type": "RID" + }, + { + "name": "layer_type", + "type": "enum::RenderingServer.TextureLayeredType", + "default_value": "0" + } + ] + }, { "name": "texture_get_rd_texture", "is_const": true, @@ -195552,6 +198028,24 @@ } ] }, + { + "name": "viewport_set_use_hdr_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, { "name": "viewport_set_screen_space_aa", "is_const": false, @@ -199902,6 +202396,20 @@ "return_value": { "type": "RenderingDevice" } + }, + { + "name": "call_on_render_thread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] } ], "signals": [ @@ -200465,6 +202973,147 @@ } ] }, + { + "name": "ResourceImporterBMFont", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterBitMap", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterCSVTranslation", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterDynamicFont", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterImage", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterImageFont", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterLayeredTexture", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterMP3", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ResourceImporter", + "api_type": "core" + }, + { + "name": "ResourceImporterOBJ", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterOggVorbis", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ResourceImporter", + "api_type": "core", + "methods": [ + { + "name": "load_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 354904730, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_from_file", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 797568536, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "ResourceImporterScene", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterShaderFile", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterTexture", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterTextureAtlas", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterWAV", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, { "name": "ResourceLoader", "is_refcounted": false, @@ -201549,7 +204198,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3014009009, + "hash": 814287596, + "hash_compatibility": [ + 3014009009 + ], "arguments": [ { "name": "font", @@ -201558,7 +204210,8 @@ { "name": "font_size", "type": "int", - "meta": "int32" + "meta": "int32", + "default_value": "0" } ] }, @@ -201862,7 +204515,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 4258957458, + "hash": 4132157579, + "hash_compatibility": [ + 4258957458 + ], "arguments": [ { "name": "column", @@ -201876,7 +204532,8 @@ { "name": "ratio", "type": "int", - "meta": "int32" + "meta": "int32", + "default_value": "1" } ] }, @@ -201998,6 +204655,22 @@ } ] }, + { + "name": "push_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "pop_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "pop", "is_const": false, @@ -202006,6 +204679,14 @@ "is_virtual": false, "hash": 3218959716 }, + { + "name": "pop_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "clear", "is_const": false, @@ -202440,6 +205121,31 @@ "type": "bool" } }, + { + "name": "set_drag_and_drop_selection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drag_and_drop_selection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "get_selection_from", "is_const": true, @@ -203080,6 +205786,12 @@ "setter": "set_deselect_on_focus_loss_enabled", "getter": "is_deselect_on_focus_loss_enabled" }, + { + "type": "bool", + "name": "drag_and_drop_selection_enabled", + "setter": "set_drag_and_drop_selection_enabled", + "getter": "is_drag_and_drop_selection_enabled" + }, { "type": "int", "name": "visible_characters", @@ -223439,12 +226151,6 @@ "name": "oversampling", "setter": "set_oversampling", "getter": "get_oversampling" - }, - { - "type": "typedarray::24/17:Font", - "name": "fallbacks", - "setter": "set_fallbacks", - "getter": "get_fallbacks" } ] }, @@ -240242,6 +242948,55 @@ } ] }, + { + "name": "Texture2DArrayRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextureLayeredRD", + "api_type": "core" + }, + { + "name": "Texture2DRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_texture_rd_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "texture_rd_rid", + "type": "RID" + } + ] + }, + { + "name": "get_texture_rd_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "texture_rd_rid", + "setter": "set_texture_rd_rid", + "getter": "get_texture_rd_rid" + } + ] + }, { "name": "Texture3D", "is_refcounted": true, @@ -240394,6 +243149,48 @@ } ] }, + { + "name": "Texture3DRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture3D", + "api_type": "core", + "methods": [ + { + "name": "set_texture_rd_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "texture_rd_rid", + "type": "RID" + } + ] + }, + { + "name": "get_texture_rd_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "texture_rd_rid", + "setter": "set_texture_rd_rid", + "getter": "get_texture_rd_rid" + } + ] + }, { "name": "TextureButton", "is_refcounted": false, @@ -240751,6 +243548,20 @@ } ] }, + { + "name": "TextureCubemapArrayRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextureLayeredRD", + "api_type": "core" + }, + { + "name": "TextureCubemapRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextureLayeredRD", + "api_type": "core" + }, { "name": "TextureLayered", "is_refcounted": true, @@ -240948,6 +243759,48 @@ } ] }, + { + "name": "TextureLayeredRD", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "TextureLayered", + "api_type": "core", + "methods": [ + { + "name": "set_texture_rd_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "texture_rd_rid", + "type": "RID" + } + ] + }, + { + "name": "get_texture_rd_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "texture_rd_rid", + "setter": "set_texture_rd_rid", + "getter": "get_texture_rd_rid" + } + ] + }, { "name": "TextureProgressBar", "is_refcounted": false, @@ -244520,6 +247373,80 @@ } ] }, + { + "name": "set_layer_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_layer_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_collision_animatable", "is_const": false, @@ -244595,43 +247522,6 @@ "type": "enum::TileMap.VisibilityMode" } }, - { - "name": "set_navigation_map", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 4040184819, - "arguments": [ - { - "name": "layer", - "type": "int", - "meta": "int32" - }, - { - "name": "map", - "type": "RID" - } - ] - }, - { - "name": "get_navigation_map", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 495598643, - "return_value": { - "type": "RID" - }, - "arguments": [ - { - "name": "layer", - "type": "int", - "meta": "int32" - } - ] - }, { "name": "set_cell", "is_const": false, @@ -245089,11 +247979,14 @@ }, { "name": "get_used_rect", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2024035737, + "hash": 410525958, + "hash_compatibility": [ + 2024035737 + ], "return_value": { "type": "Rect2i" } @@ -247125,6 +250018,26 @@ "is_instantiable": true, "inherits": "TileSetSource", "api_type": "core", + "enums": [ + { + "name": "TileAnimationMode", + "is_bitfield": false, + "values": [ + { + "name": "TILE_ANIMATION_MODE_DEFAULT", + "value": 0 + }, + { + "name": "TILE_ANIMATION_MODE_RANDOM_START_TIMES", + "value": 1 + }, + { + "name": "TILE_ANIMATION_MODE_MAX", + "value": 2 + } + ] + } + ], "methods": [ { "name": "set_texture", @@ -247520,6 +250433,41 @@ } ] }, + { + "name": "set_tile_animation_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3192753483, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "mode", + "type": "enum::TileSetAtlasSource.TileAnimationMode" + } + ] + }, + { + "name": "get_tile_animation_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025349959, + "return_value": { + "type": "enum::TileSetAtlasSource.TileAnimationMode" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, { "name": "set_tile_animation_frames_count", "is_const": false, @@ -252485,6 +255433,30 @@ } ] }, + { + "name": "set_button_tooltip_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285447957, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, { "name": "set_button", "is_const": false, @@ -255076,13 +258048,6 @@ } ] }, - { - "name": "UniformSetCacheRD", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "Object", - "api_type": "core" - }, { "name": "VBoxContainer", "is_refcounted": false, @@ -256068,6 +259033,31 @@ "type": "bool" } }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_volume", "is_const": false, @@ -256160,6 +259150,18 @@ "type": "String" } }, + { + "name": "get_stream_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, { "name": "set_stream_position", "is_const": false, @@ -256349,6 +259351,12 @@ "setter": "set_expand", "getter": "has_expand" }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, { "type": "int", "name": "buffering_msec", @@ -256897,6 +259905,31 @@ "type": "bool" } }, + { + "name": "set_use_hdr_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_hdr_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_msaa_2d", "is_const": false, @@ -258209,6 +261242,12 @@ "setter": "set_debug_draw", "getter": "get_debug_draw" }, + { + "type": "bool", + "name": "use_hdr_2d", + "setter": "set_use_hdr_2d", + "getter": "is_using_hdr_2d" + }, { "type": "int", "name": "scaling_3d_mode", @@ -259565,6 +262604,24 @@ } ], "methods": [ + { + "name": "get_default_input_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1894493699, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNode.PortType" + } + ] + }, { "name": "set_output_port_for_preview", "is_const": false, @@ -260882,6 +263939,23 @@ } ] }, + { + "name": "_get_default_input_port", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNode.PortType" + } + ] + }, { "name": "_get_output_port_count", "is_const": true, @@ -263556,6 +266630,13 @@ } ] }, + { + "name": "VisualShaderNodeRotationByAxis", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, { "name": "VisualShaderNodeSDFRaymarch", "is_refcounted": true, @@ -263632,6 +266713,13 @@ } ] }, + { + "name": "VisualShaderNodeScreenNormalWorldSpace", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, { "name": "VisualShaderNodeScreenUVToSDF", "is_refcounted": true, @@ -266011,6 +269099,13 @@ "inherits": "VisualShaderNodeVectorBase", "api_type": "core" }, + { + "name": "VisualShaderNodeWorldPositionFromDepth", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, { "name": "VoxelGI", "is_refcounted": false, @@ -268954,6 +272049,16 @@ } ], "methods": [ + { + "name": "_get_contents_minimum_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, { "name": "set_title", "is_const": false, diff --git a/src/godot.cpp b/src/godot.cpp index 4a92fad9..fbf3d54e 100644 --- a/src/godot.cpp +++ b/src/godot.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -194,9 +195,15 @@ GDExtensionBinding::Callback GDExtensionBinding::init_callback = nullptr; GDExtensionBinding::Callback GDExtensionBinding::terminate_callback = nullptr; GDExtensionInitializationLevel GDExtensionBinding::minimum_initialization_level = GDEXTENSION_INITIALIZATION_CORE; -#define LOAD_PROC_ADDRESS(m_name, m_type) \ - internal::gdextension_interface_##m_name = (m_type)p_get_proc_address(#m_name); \ - ERR_FAIL_NULL_V_MSG(internal::gdextension_interface_##m_name, false, "Unable to load GDExtension interface function " #m_name "()") +#define ERR_PRINT_EARLY(m_msg) \ + internal::gdextension_interface_print_error(m_msg, FUNCTION_STR, __FILE__, __LINE__, false) + +#define LOAD_PROC_ADDRESS(m_name, m_type) \ + internal::gdextension_interface_##m_name = (m_type)p_get_proc_address(#m_name); \ + if (!internal::gdextension_interface_##m_name) { \ + ERR_PRINT_EARLY("Unable to load GDExtension interface function " #m_name "()"); \ + return false; \ + } // Partial definition of the legacy interface so we can detect it and show an error. typedef struct { @@ -219,14 +226,15 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge if (raw_interface[0] == 4 && raw_interface[1] == 0) { // Use the legacy interface only to give a nice error. LegacyGDExtensionInterface *legacy_interface = (LegacyGDExtensionInterface *)p_get_proc_address; - internal::gdextension_interface_print_error_with_message = (GDExtensionInterfacePrintErrorWithMessage)legacy_interface->print_error_with_message; - ERR_FAIL_V_MSG(false, "Cannot load a GDExtension built for Godot 4.1+ in Godot 4.0."); + internal::gdextension_interface_print_error = (GDExtensionInterfacePrintError)legacy_interface->print_error; + ERR_PRINT_EARLY("Cannot load a GDExtension built for Godot 4.1+ in Godot 4.0."); + return false; } - // Load the "print_error_with_message" function first (needed by the ERR_FAIL_NULL_V_MSG() macro). - internal::gdextension_interface_print_error_with_message = (GDExtensionInterfacePrintErrorWithMessage)p_get_proc_address("print_error_with_message"); - if (!internal::gdextension_interface_print_error_with_message) { - printf("ERROR: Unable to load GDExtension interface function print_error_with_message().\n"); + // Load the "print_error" function first (needed by the ERR_PRINT_EARLY() macro). + internal::gdextension_interface_print_error = (GDExtensionInterfacePrintError)p_get_proc_address("print_error"); + if (!internal::gdextension_interface_print_error) { + printf("ERROR: Unable to load GDExtension interface function print_error().\n"); return false; } @@ -235,6 +243,29 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge internal::token = p_library; LOAD_PROC_ADDRESS(get_godot_version, GDExtensionInterfaceGetGodotVersion); + internal::gdextension_interface_get_godot_version(&internal::godot_version); + + // Check that godot-cpp was compiled using an extension_api.json older or at the + // same version as the Godot that is loading it. + bool compatible; + if (internal::godot_version.major != GODOT_VERSION_MAJOR) { + compatible = internal::godot_version.major > GODOT_VERSION_MAJOR; + } else if (internal::godot_version.minor != GODOT_VERSION_MINOR) { + compatible = internal::godot_version.minor > GODOT_VERSION_MINOR; + } else { + compatible = internal::godot_version.patch >= GODOT_VERSION_PATCH; + } + if (!compatible) { + // We need to use snprintf() here because vformat() uses Variant, and we haven't loaded + // the GDExtension interface far enough to use Variants yet. + char msg[128]; + snprintf(msg, 128, "Cannot load a GDExtension built for Godot %d.%d.%d using an older version of Godot (%d.%d.%d).", + GODOT_VERSION_MAJOR, GODOT_VERSION_MINOR, GODOT_VERSION_PATCH, + internal::godot_version.major, internal::godot_version.minor, internal::godot_version.patch); + ERR_PRINT_EARLY(msg); + return false; + } + LOAD_PROC_ADDRESS(mem_alloc, GDExtensionInterfaceMemAlloc); LOAD_PROC_ADDRESS(mem_realloc, GDExtensionInterfaceMemRealloc); LOAD_PROC_ADDRESS(mem_free, GDExtensionInterfaceMemFree); @@ -372,9 +403,6 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge LOAD_PROC_ADDRESS(editor_add_plugin, GDExtensionInterfaceEditorAddPlugin); LOAD_PROC_ADDRESS(editor_remove_plugin, GDExtensionInterfaceEditorRemovePlugin); - // Load the Godot version. - internal::gdextension_interface_get_godot_version(&internal::godot_version); - r_initialization->initialize = initialize_level; r_initialization->deinitialize = deinitialize_level; r_initialization->minimum_initialization_level = minimum_initialization_level; @@ -388,6 +416,7 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge } #undef LOAD_PROC_ADDRESS +#undef ERR_PRINT_EARLY void GDExtensionBinding::initialize_level(void *userdata, GDExtensionInitializationLevel p_level) { ClassDB::current_level = p_level; diff --git a/test/project/project.godot b/test/project/project.godot index eafcad30..3ed679b4 100644 --- a/test/project/project.godot +++ b/test/project/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="GDExtension Test Project" run/main_scene="res://main.tscn" -config/features=PackedStringArray("4.1") +config/features=PackedStringArray("4.2") config/icon="res://icon.png" [native_extensions]