/**************************************************************************/ /* mesh_library.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ // THIS FILE IS GENERATED. EDITS WILL BE LOST. #include #include #include #include #include #include #include namespace godot { void MeshLibrary::create_item(int32_t p_id) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("create_item")._native_ptr(), 1286410249); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded); } void MeshLibrary::set_item_name(int32_t p_id, const String &p_name) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_name")._native_ptr(), 501894301); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, &p_name); } void MeshLibrary::set_item_mesh(int32_t p_id, const Ref &p_mesh) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_mesh")._native_ptr(), 969122797); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, (p_mesh != nullptr ? &p_mesh->_owner : nullptr)); } void MeshLibrary::set_item_mesh_transform(int32_t p_id, const Transform3D &p_mesh_transform) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_mesh_transform")._native_ptr(), 3616898986); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, &p_mesh_transform); } void MeshLibrary::set_item_mesh_cast_shadow(int32_t p_id, RenderingServer::ShadowCastingSetting p_shadow_casting_setting) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_mesh_cast_shadow")._native_ptr(), 3923400443); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); int64_t p_shadow_casting_setting_encoded; PtrToArg::encode(p_shadow_casting_setting, &p_shadow_casting_setting_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, &p_shadow_casting_setting_encoded); } void MeshLibrary::set_item_navigation_mesh(int32_t p_id, const Ref &p_navigation_mesh) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_navigation_mesh")._native_ptr(), 3483353960); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, (p_navigation_mesh != nullptr ? &p_navigation_mesh->_owner : nullptr)); } void MeshLibrary::set_item_navigation_mesh_transform(int32_t p_id, const Transform3D &p_navigation_mesh) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_navigation_mesh_transform")._native_ptr(), 3616898986); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, &p_navigation_mesh); } void MeshLibrary::set_item_navigation_layers(int32_t p_id, uint32_t p_navigation_layers) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_navigation_layers")._native_ptr(), 3937882851); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); int64_t p_navigation_layers_encoded; PtrToArg::encode(p_navigation_layers, &p_navigation_layers_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, &p_navigation_layers_encoded); } void MeshLibrary::set_item_shapes(int32_t p_id, const Array &p_shapes) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_shapes")._native_ptr(), 537221740); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, &p_shapes); } void MeshLibrary::set_item_preview(int32_t p_id, const Ref &p_texture) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("set_item_preview")._native_ptr(), 666127730); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded, (p_texture != nullptr ? &p_texture->_owner : nullptr)); } String MeshLibrary::get_item_name(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_name")._native_ptr(), 844755477); CHECK_METHOD_BIND_RET(_gde_method_bind, (String())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_id_encoded); } Ref MeshLibrary::get_item_mesh(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_mesh")._native_ptr(), 1576363275); CHECK_METHOD_BIND_RET(_gde_method_bind, (Ref())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return Ref::_gde_internal_constructor(::godot::internal::_call_native_mb_ret_obj(_gde_method_bind, _owner, &p_id_encoded)); } Transform3D MeshLibrary::get_item_mesh_transform(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_mesh_transform")._native_ptr(), 1965739696); CHECK_METHOD_BIND_RET(_gde_method_bind, (Transform3D())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_id_encoded); } RenderingServer::ShadowCastingSetting MeshLibrary::get_item_mesh_cast_shadow(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_mesh_cast_shadow")._native_ptr(), 1841766007); CHECK_METHOD_BIND_RET(_gde_method_bind, (RenderingServer::ShadowCastingSetting(0))); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return (RenderingServer::ShadowCastingSetting)::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_id_encoded); } Ref MeshLibrary::get_item_navigation_mesh(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_navigation_mesh")._native_ptr(), 2729647406); CHECK_METHOD_BIND_RET(_gde_method_bind, (Ref())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return Ref::_gde_internal_constructor(::godot::internal::_call_native_mb_ret_obj(_gde_method_bind, _owner, &p_id_encoded)); } Transform3D MeshLibrary::get_item_navigation_mesh_transform(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_navigation_mesh_transform")._native_ptr(), 1965739696); CHECK_METHOD_BIND_RET(_gde_method_bind, (Transform3D())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_id_encoded); } uint32_t MeshLibrary::get_item_navigation_layers(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_navigation_layers")._native_ptr(), 923996154); CHECK_METHOD_BIND_RET(_gde_method_bind, (0)); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_id_encoded); } Array MeshLibrary::get_item_shapes(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_shapes")._native_ptr(), 663333327); CHECK_METHOD_BIND_RET(_gde_method_bind, (Array())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_id_encoded); } Ref MeshLibrary::get_item_preview(int32_t p_id) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_preview")._native_ptr(), 3536238170); CHECK_METHOD_BIND_RET(_gde_method_bind, (Ref())); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); return Ref::_gde_internal_constructor(::godot::internal::_call_native_mb_ret_obj(_gde_method_bind, _owner, &p_id_encoded)); } void MeshLibrary::remove_item(int32_t p_id) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("remove_item")._native_ptr(), 1286410249); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_id_encoded; PtrToArg::encode(p_id, &p_id_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_id_encoded); } int32_t MeshLibrary::find_item_by_name(const String &p_name) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("find_item_by_name")._native_ptr(), 1321353865); CHECK_METHOD_BIND_RET(_gde_method_bind, (0)); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_name); } void MeshLibrary::clear() { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("clear")._native_ptr(), 3218959716); CHECK_METHOD_BIND(_gde_method_bind); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner); } PackedInt32Array MeshLibrary::get_item_list() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_list")._native_ptr(), 1930428628); CHECK_METHOD_BIND_RET(_gde_method_bind, (PackedInt32Array())); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } int32_t MeshLibrary::get_item_count() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_item_count")._native_ptr(), 3905245786); CHECK_METHOD_BIND_RET(_gde_method_bind, (0)); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } int32_t MeshLibrary::get_last_unused_item_id() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(MeshLibrary::get_class_static()._native_ptr(), StringName("get_last_unused_item_id")._native_ptr(), 3905245786); CHECK_METHOD_BIND_RET(_gde_method_bind, (0)); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } } // namespace godot