123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308 |
- /**************************************************************************/
- /* register_scene_types.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. */
- /**************************************************************************/
- #include "register_scene_types.h"
- #include "core/config/project_settings.h"
- #include "core/object/class_db.h"
- #include "core/os/os.h"
- #include "scene/animation/animation_blend_space_1d.h"
- #include "scene/animation/animation_blend_space_2d.h"
- #include "scene/animation/animation_blend_tree.h"
- #include "scene/animation/animation_mixer.h"
- #include "scene/animation/animation_node_state_machine.h"
- #include "scene/animation/animation_player.h"
- #include "scene/animation/animation_tree.h"
- #include "scene/animation/tween.h"
- #include "scene/audio/audio_stream_player.h"
- #include "scene/debugger/scene_debugger.h"
- #include "scene/gui/aspect_ratio_container.h"
- #include "scene/gui/box_container.h"
- #include "scene/gui/button.h"
- #include "scene/gui/center_container.h"
- #include "scene/gui/check_box.h"
- #include "scene/gui/check_button.h"
- #include "scene/gui/code_edit.h"
- #include "scene/gui/color_picker.h"
- #include "scene/gui/color_rect.h"
- #include "scene/gui/control.h"
- #include "scene/gui/dialogs.h"
- #include "scene/gui/file_dialog.h"
- #include "scene/gui/flow_container.h"
- #include "scene/gui/graph_edit.h"
- #include "scene/gui/graph_frame.h"
- #include "scene/gui/graph_node.h"
- #include "scene/gui/grid_container.h"
- #include "scene/gui/item_list.h"
- #include "scene/gui/label.h"
- #include "scene/gui/line_edit.h"
- #include "scene/gui/link_button.h"
- #include "scene/gui/margin_container.h"
- #include "scene/gui/menu_bar.h"
- #include "scene/gui/menu_button.h"
- #include "scene/gui/nine_patch_rect.h"
- #include "scene/gui/option_button.h"
- #include "scene/gui/panel.h"
- #include "scene/gui/panel_container.h"
- #include "scene/gui/popup_menu.h"
- #include "scene/gui/progress_bar.h"
- #include "scene/gui/reference_rect.h"
- #include "scene/gui/rich_text_effect.h"
- #include "scene/gui/rich_text_label.h"
- #include "scene/gui/scroll_bar.h"
- #include "scene/gui/scroll_container.h"
- #include "scene/gui/separator.h"
- #include "scene/gui/slider.h"
- #include "scene/gui/spin_box.h"
- #include "scene/gui/split_container.h"
- #include "scene/gui/subviewport_container.h"
- #include "scene/gui/tab_bar.h"
- #include "scene/gui/tab_container.h"
- #include "scene/gui/text_edit.h"
- #include "scene/gui/texture_button.h"
- #include "scene/gui/texture_progress_bar.h"
- #include "scene/gui/texture_rect.h"
- #include "scene/gui/tree.h"
- #include "scene/gui/video_stream_player.h"
- #include "scene/main/canvas_item.h"
- #include "scene/main/canvas_layer.h"
- #include "scene/main/http_request.h"
- #include "scene/main/instance_placeholder.h"
- #include "scene/main/missing_node.h"
- #include "scene/main/multiplayer_api.h"
- #include "scene/main/resource_preloader.h"
- #include "scene/main/scene_tree.h"
- #include "scene/main/shader_globals_override.h"
- #include "scene/main/status_indicator.h"
- #include "scene/main/timer.h"
- #include "scene/main/viewport.h"
- #include "scene/main/window.h"
- #include "scene/resources/animated_texture.h"
- #include "scene/resources/animation_library.h"
- #include "scene/resources/atlas_texture.h"
- #include "scene/resources/audio_stream_polyphonic.h"
- #include "scene/resources/audio_stream_wav.h"
- #include "scene/resources/bit_map.h"
- #include "scene/resources/bone_map.h"
- #include "scene/resources/camera_attributes.h"
- #include "scene/resources/camera_texture.h"
- #include "scene/resources/color_palette.h"
- #include "scene/resources/compositor.h"
- #include "scene/resources/compressed_texture.h"
- #include "scene/resources/curve_texture.h"
- #include "scene/resources/environment.h"
- #include "scene/resources/external_texture.h"
- #include "scene/resources/font.h"
- #include "scene/resources/gradient.h"
- #include "scene/resources/gradient_texture.h"
- #include "scene/resources/image_texture.h"
- #include "scene/resources/immediate_mesh.h"
- #include "scene/resources/label_settings.h"
- #include "scene/resources/material.h"
- #include "scene/resources/mesh_data_tool.h"
- #include "scene/resources/mesh_texture.h"
- #include "scene/resources/multimesh.h"
- #include "scene/resources/navigation_mesh.h"
- #include "scene/resources/packed_scene.h"
- #include "scene/resources/particle_process_material.h"
- #include "scene/resources/physics_material.h"
- #include "scene/resources/placeholder_textures.h"
- #include "scene/resources/portable_compressed_texture.h"
- #include "scene/resources/resource_format_text.h"
- #include "scene/resources/shader_include.h"
- #include "scene/resources/skeleton_profile.h"
- #include "scene/resources/sky.h"
- #include "scene/resources/style_box.h"
- #include "scene/resources/style_box_flat.h"
- #include "scene/resources/style_box_line.h"
- #include "scene/resources/style_box_texture.h"
- #include "scene/resources/surface_tool.h"
- #include "scene/resources/syntax_highlighter.h"
- #include "scene/resources/text_file.h"
- #include "scene/resources/text_line.h"
- #include "scene/resources/text_paragraph.h"
- #include "scene/resources/texture.h"
- #include "scene/resources/texture_rd.h"
- #include "scene/resources/theme.h"
- #include "scene/resources/video_stream.h"
- #include "scene/resources/visual_shader.h"
- #include "scene/resources/visual_shader_nodes.h"
- #include "scene/resources/visual_shader_particle_nodes.h"
- #include "scene/resources/visual_shader_sdf_nodes.h"
- #include "scene/resources/world_2d.h"
- #include "scene/theme/theme_db.h"
- // 2D
- #include "scene/2d/animated_sprite_2d.h"
- #include "scene/2d/audio_listener_2d.h"
- #include "scene/2d/audio_stream_player_2d.h"
- #include "scene/2d/back_buffer_copy.h"
- #include "scene/2d/camera_2d.h"
- #include "scene/2d/canvas_group.h"
- #include "scene/2d/canvas_modulate.h"
- #include "scene/2d/cpu_particles_2d.h"
- #include "scene/2d/gpu_particles_2d.h"
- #include "scene/2d/light_2d.h"
- #include "scene/2d/light_occluder_2d.h"
- #include "scene/2d/line_2d.h"
- #include "scene/2d/marker_2d.h"
- #include "scene/2d/mesh_instance_2d.h"
- #include "scene/2d/multimesh_instance_2d.h"
- #include "scene/2d/navigation_agent_2d.h"
- #include "scene/2d/navigation_link_2d.h"
- #include "scene/2d/navigation_obstacle_2d.h"
- #include "scene/2d/navigation_region_2d.h"
- #include "scene/2d/parallax_2d.h"
- #include "scene/2d/parallax_background.h"
- #include "scene/2d/parallax_layer.h"
- #include "scene/2d/path_2d.h"
- #include "scene/2d/physics/animatable_body_2d.h"
- #include "scene/2d/physics/area_2d.h"
- #include "scene/2d/physics/character_body_2d.h"
- #include "scene/2d/physics/collision_polygon_2d.h"
- #include "scene/2d/physics/collision_shape_2d.h"
- #include "scene/2d/physics/joints/damped_spring_joint_2d.h"
- #include "scene/2d/physics/joints/groove_joint_2d.h"
- #include "scene/2d/physics/joints/joint_2d.h"
- #include "scene/2d/physics/joints/pin_joint_2d.h"
- #include "scene/2d/physics/kinematic_collision_2d.h"
- #include "scene/2d/physics/physical_bone_2d.h"
- #include "scene/2d/physics/physics_body_2d.h"
- #include "scene/2d/physics/ray_cast_2d.h"
- #include "scene/2d/physics/rigid_body_2d.h"
- #include "scene/2d/physics/shape_cast_2d.h"
- #include "scene/2d/physics/static_body_2d.h"
- #include "scene/2d/polygon_2d.h"
- #include "scene/2d/remote_transform_2d.h"
- #include "scene/2d/skeleton_2d.h"
- #include "scene/2d/sprite_2d.h"
- #include "scene/2d/tile_map.h"
- #include "scene/2d/tile_map_layer.h"
- #include "scene/2d/touch_screen_button.h"
- #include "scene/2d/visible_on_screen_notifier_2d.h"
- #include "scene/resources/2d/capsule_shape_2d.h"
- #include "scene/resources/2d/circle_shape_2d.h"
- #include "scene/resources/2d/concave_polygon_shape_2d.h"
- #include "scene/resources/2d/convex_polygon_shape_2d.h"
- #include "scene/resources/2d/navigation_mesh_source_geometry_data_2d.h"
- #include "scene/resources/2d/navigation_polygon.h"
- #include "scene/resources/2d/polygon_path_finder.h"
- #include "scene/resources/2d/rectangle_shape_2d.h"
- #include "scene/resources/2d/segment_shape_2d.h"
- #include "scene/resources/2d/separation_ray_shape_2d.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_ccdik.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_fabrik.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_jiggle.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_lookat.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_physicalbones.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_stackholder.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_2d_twoboneik.h"
- #include "scene/resources/2d/skeleton/skeleton_modification_stack_2d.h"
- #include "scene/resources/2d/tile_set.h"
- #include "scene/resources/2d/world_boundary_shape_2d.h"
- #ifndef _3D_DISABLED
- #include "scene/3d/audio_listener_3d.h"
- #include "scene/3d/audio_stream_player_3d.h"
- #include "scene/3d/bone_attachment_3d.h"
- #include "scene/3d/camera_3d.h"
- #include "scene/3d/cpu_particles_3d.h"
- #include "scene/3d/decal.h"
- #include "scene/3d/fog_volume.h"
- #include "scene/3d/gpu_particles_3d.h"
- #include "scene/3d/gpu_particles_collision_3d.h"
- #include "scene/3d/importer_mesh_instance_3d.h"
- #include "scene/3d/label_3d.h"
- #include "scene/3d/light_3d.h"
- #include "scene/3d/lightmap_gi.h"
- #include "scene/3d/lightmap_probe.h"
- #include "scene/3d/look_at_modifier_3d.h"
- #include "scene/3d/marker_3d.h"
- #include "scene/3d/mesh_instance_3d.h"
- #include "scene/3d/multimesh_instance_3d.h"
- #include "scene/3d/navigation_agent_3d.h"
- #include "scene/3d/navigation_link_3d.h"
- #include "scene/3d/navigation_obstacle_3d.h"
- #include "scene/3d/navigation_region_3d.h"
- #include "scene/3d/node_3d.h"
- #include "scene/3d/occluder_instance_3d.h"
- #include "scene/3d/path_3d.h"
- #include "scene/3d/physical_bone_simulator_3d.h"
- #include "scene/3d/physics/animatable_body_3d.h"
- #include "scene/3d/physics/area_3d.h"
- #include "scene/3d/physics/character_body_3d.h"
- #include "scene/3d/physics/collision_polygon_3d.h"
- #include "scene/3d/physics/collision_shape_3d.h"
- #include "scene/3d/physics/joints/cone_twist_joint_3d.h"
- #include "scene/3d/physics/joints/generic_6dof_joint_3d.h"
- #include "scene/3d/physics/joints/hinge_joint_3d.h"
- #include "scene/3d/physics/joints/joint_3d.h"
- #include "scene/3d/physics/joints/pin_joint_3d.h"
- #include "scene/3d/physics/joints/slider_joint_3d.h"
- #include "scene/3d/physics/kinematic_collision_3d.h"
- #include "scene/3d/physics/physical_bone_3d.h"
- #include "scene/3d/physics/physics_body_3d.h"
- #include "scene/3d/physics/ray_cast_3d.h"
- #include "scene/3d/physics/rigid_body_3d.h"
- #include "scene/3d/physics/shape_cast_3d.h"
- #include "scene/3d/physics/spring_arm_3d.h"
- #include "scene/3d/physics/static_body_3d.h"
- #include "scene/3d/physics/vehicle_body_3d.h"
- #include "scene/3d/reflection_probe.h"
- #include "scene/3d/remote_transform_3d.h"
- #include "scene/3d/retarget_modifier_3d.h"
- #include "scene/3d/skeleton_3d.h"
- #include "scene/3d/skeleton_ik_3d.h"
- #include "scene/3d/skeleton_modifier_3d.h"
- #include "scene/3d/soft_body_3d.h"
- #include "scene/3d/sprite_3d.h"
- #include "scene/3d/visible_on_screen_notifier_3d.h"
- #include "scene/3d/voxel_gi.h"
- #include "scene/3d/world_environment.h"
- #include "scene/3d/xr_body_modifier_3d.h"
- #include "scene/3d/xr_face_modifier_3d.h"
- #include "scene/3d/xr_hand_modifier_3d.h"
- #include "scene/3d/xr_nodes.h"
- #include "scene/animation/root_motion_view.h"
- #include "scene/resources/3d/box_shape_3d.h"
- #include "scene/resources/3d/capsule_shape_3d.h"
- #include "scene/resources/3d/concave_polygon_shape_3d.h"
- #include "scene/resources/3d/convex_polygon_shape_3d.h"
- #include "scene/resources/3d/cylinder_shape_3d.h"
- #include "scene/resources/3d/fog_material.h"
- #include "scene/resources/3d/height_map_shape_3d.h"
- #include "scene/resources/3d/importer_mesh.h"
- #include "scene/resources/3d/mesh_library.h"
- #include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
- #include "scene/resources/3d/primitive_meshes.h"
- #include "scene/resources/3d/separation_ray_shape_3d.h"
- #include "scene/resources/3d/sky_material.h"
- #include "scene/resources/3d/sphere_shape_3d.h"
- #include "scene/resources/3d/world_3d.h"
- #include "scene/resources/3d/world_boundary_shape_3d.h"
- #endif // _3D_DISABLED
- static Ref<ResourceFormatSaverText> resource_saver_text;
- static Ref<ResourceFormatLoaderText> resource_loader_text;
- static Ref<ResourceFormatLoaderCompressedTexture2D> resource_loader_stream_texture;
- static Ref<ResourceFormatLoaderCompressedTextureLayered> resource_loader_texture_layered;
- static Ref<ResourceFormatLoaderCompressedTexture3D> resource_loader_texture_3d;
- static Ref<ResourceFormatSaverShader> resource_saver_shader;
- static Ref<ResourceFormatLoaderShader> resource_loader_shader;
- static Ref<ResourceFormatSaverShaderInclude> resource_saver_shader_include;
- static Ref<ResourceFormatLoaderShaderInclude> resource_loader_shader_include;
- void register_scene_types() {
- OS::get_singleton()->benchmark_begin_measure("Scene", "Register Types");
- SceneStringNames::create();
- OS::get_singleton()->yield(); // may take time to init
- Node::init_node_hrcr();
- resource_loader_stream_texture.instantiate();
- ResourceLoader::add_resource_format_loader(resource_loader_stream_texture);
- resource_loader_texture_layered.instantiate();
- ResourceLoader::add_resource_format_loader(resource_loader_texture_layered);
- resource_loader_texture_3d.instantiate();
- ResourceLoader::add_resource_format_loader(resource_loader_texture_3d);
- resource_saver_text.instantiate();
- ResourceSaver::add_resource_format_saver(resource_saver_text, true);
- resource_loader_text.instantiate();
- ResourceLoader::add_resource_format_loader(resource_loader_text, true);
- resource_saver_shader.instantiate();
- ResourceSaver::add_resource_format_saver(resource_saver_shader, true);
- resource_loader_shader.instantiate();
- ResourceLoader::add_resource_format_loader(resource_loader_shader, true);
- resource_saver_shader_include.instantiate();
- ResourceSaver::add_resource_format_saver(resource_saver_shader_include, true);
- resource_loader_shader_include.instantiate();
- ResourceLoader::add_resource_format_loader(resource_loader_shader_include, true);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(Object);
- GDREGISTER_CLASS(Node);
- GDREGISTER_VIRTUAL_CLASS(MissingNode);
- GDREGISTER_ABSTRACT_CLASS(InstancePlaceholder);
- GDREGISTER_ABSTRACT_CLASS(Viewport);
- GDREGISTER_CLASS(SubViewport);
- GDREGISTER_CLASS(ViewportTexture);
- GDREGISTER_VIRTUAL_CLASS(CompositorEffect);
- GDREGISTER_ABSTRACT_CLASS(MultiplayerPeer);
- GDREGISTER_CLASS(MultiplayerPeerExtension);
- GDREGISTER_ABSTRACT_CLASS(MultiplayerAPI);
- GDREGISTER_CLASS(MultiplayerAPIExtension);
- GDREGISTER_CLASS(HTTPRequest);
- GDREGISTER_CLASS(Timer);
- GDREGISTER_CLASS(CanvasLayer);
- GDREGISTER_CLASS(CanvasModulate);
- GDREGISTER_CLASS(ResourcePreloader);
- GDREGISTER_CLASS(Window);
- GDREGISTER_CLASS(StatusIndicator);
- /* REGISTER GUI */
- GDREGISTER_CLASS(ButtonGroup);
- GDREGISTER_VIRTUAL_CLASS(BaseButton);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(Control);
- GDREGISTER_CLASS(Button);
- GDREGISTER_CLASS(Label);
- GDREGISTER_ABSTRACT_CLASS(ScrollBar);
- GDREGISTER_CLASS(HScrollBar);
- GDREGISTER_CLASS(VScrollBar);
- GDREGISTER_CLASS(ProgressBar);
- GDREGISTER_ABSTRACT_CLASS(Slider);
- GDREGISTER_CLASS(HSlider);
- GDREGISTER_CLASS(VSlider);
- GDREGISTER_CLASS(Popup);
- GDREGISTER_CLASS(PopupPanel);
- GDREGISTER_CLASS(CheckBox);
- GDREGISTER_CLASS(CheckButton);
- GDREGISTER_CLASS(LinkButton);
- GDREGISTER_CLASS(Panel);
- GDREGISTER_VIRTUAL_CLASS(Range);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(TextureRect);
- GDREGISTER_CLASS(ColorRect);
- GDREGISTER_CLASS(NinePatchRect);
- GDREGISTER_CLASS(ReferenceRect);
- GDREGISTER_CLASS(AspectRatioContainer);
- GDREGISTER_CLASS(TabContainer);
- GDREGISTER_CLASS(TabBar);
- GDREGISTER_ABSTRACT_CLASS(Separator);
- GDREGISTER_CLASS(HSeparator);
- GDREGISTER_CLASS(VSeparator);
- GDREGISTER_CLASS(TextureButton);
- GDREGISTER_CLASS(Container);
- GDREGISTER_CLASS(BoxContainer);
- GDREGISTER_CLASS(HBoxContainer);
- GDREGISTER_CLASS(VBoxContainer);
- GDREGISTER_CLASS(GridContainer);
- GDREGISTER_CLASS(CenterContainer);
- GDREGISTER_CLASS(ScrollContainer);
- GDREGISTER_CLASS(PanelContainer);
- GDREGISTER_CLASS(FlowContainer);
- GDREGISTER_CLASS(HFlowContainer);
- GDREGISTER_CLASS(VFlowContainer);
- GDREGISTER_CLASS(MarginContainer);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(TextureProgressBar);
- GDREGISTER_CLASS(ItemList);
- GDREGISTER_CLASS(LineEdit);
- GDREGISTER_CLASS(VideoStreamPlayer);
- GDREGISTER_VIRTUAL_CLASS(VideoStreamPlayback);
- GDREGISTER_VIRTUAL_CLASS(VideoStream);
- #ifndef ADVANCED_GUI_DISABLED
- GDREGISTER_CLASS(FileDialog);
- GDREGISTER_CLASS(PopupMenu);
- GDREGISTER_CLASS(Tree);
- GDREGISTER_CLASS(TextEdit);
- GDREGISTER_CLASS(CodeEdit);
- GDREGISTER_CLASS(SyntaxHighlighter);
- GDREGISTER_CLASS(CodeHighlighter);
- GDREGISTER_ABSTRACT_CLASS(TreeItem);
- GDREGISTER_CLASS(MenuBar);
- GDREGISTER_CLASS(MenuButton);
- GDREGISTER_CLASS(OptionButton);
- GDREGISTER_CLASS(SpinBox);
- GDREGISTER_CLASS(ColorPicker);
- GDREGISTER_CLASS(ColorPickerButton);
- GDREGISTER_CLASS(RichTextLabel);
- GDREGISTER_CLASS(RichTextEffect);
- GDREGISTER_CLASS(CharFXTransform);
- GDREGISTER_CLASS(AcceptDialog);
- GDREGISTER_CLASS(ConfirmationDialog);
- GDREGISTER_CLASS(SubViewportContainer);
- GDREGISTER_CLASS(SplitContainer);
- GDREGISTER_CLASS(HSplitContainer);
- GDREGISTER_CLASS(VSplitContainer);
- GDREGISTER_CLASS(GraphElement);
- GDREGISTER_CLASS(GraphNode);
- GDREGISTER_CLASS(GraphFrame);
- GDREGISTER_CLASS(GraphEdit);
- OS::get_singleton()->yield(); // may take time to init
- bool swap_cancel_ok = false;
- if (DisplayServer::get_singleton()) {
- swap_cancel_ok = GLOBAL_DEF_NOVAL("gui/common/swap_cancel_ok", bool(DisplayServer::get_singleton()->get_swap_cancel_ok()));
- }
- AcceptDialog::set_swap_cancel_ok(swap_cancel_ok);
- #endif
- int root_dir = GLOBAL_GET("internationalization/rendering/root_node_layout_direction");
- Control::set_root_layout_direction(root_dir);
- Window::set_root_layout_direction(root_dir);
- /* REGISTER ANIMATION */
- GDREGISTER_CLASS(Tween);
- GDREGISTER_ABSTRACT_CLASS(Tweener);
- GDREGISTER_CLASS(PropertyTweener);
- GDREGISTER_CLASS(IntervalTweener);
- GDREGISTER_CLASS(CallbackTweener);
- GDREGISTER_CLASS(MethodTweener);
- GDREGISTER_ABSTRACT_CLASS(AnimationMixer);
- GDREGISTER_CLASS(AnimationPlayer);
- GDREGISTER_CLASS(AnimationTree);
- GDREGISTER_CLASS(AnimationNode);
- GDREGISTER_CLASS(AnimationRootNode);
- GDREGISTER_CLASS(AnimationNodeBlendTree);
- GDREGISTER_CLASS(AnimationNodeBlendSpace1D);
- GDREGISTER_CLASS(AnimationNodeBlendSpace2D);
- GDREGISTER_CLASS(AnimationNodeStateMachine);
- GDREGISTER_CLASS(AnimationNodeStateMachinePlayback);
- GDREGISTER_INTERNAL_CLASS(AnimationNodeStartState);
- GDREGISTER_INTERNAL_CLASS(AnimationNodeEndState);
- GDREGISTER_CLASS(AnimationNodeSync);
- GDREGISTER_CLASS(AnimationNodeStateMachineTransition);
- GDREGISTER_CLASS(AnimationNodeOutput);
- GDREGISTER_CLASS(AnimationNodeOneShot);
- GDREGISTER_CLASS(AnimationNodeAnimation);
- GDREGISTER_CLASS(AnimationNodeAdd2);
- GDREGISTER_CLASS(AnimationNodeAdd3);
- GDREGISTER_CLASS(AnimationNodeBlend2);
- GDREGISTER_CLASS(AnimationNodeBlend3);
- GDREGISTER_CLASS(AnimationNodeSub2);
- GDREGISTER_CLASS(AnimationNodeTimeScale);
- GDREGISTER_CLASS(AnimationNodeTimeSeek);
- GDREGISTER_CLASS(AnimationNodeTransition);
- GDREGISTER_CLASS(ShaderGlobalsOverride); // can be used in any shader
- OS::get_singleton()->yield(); // may take time to init
- /* REGISTER 3D */
- #ifndef _3D_DISABLED
- GDREGISTER_CLASS(Node3D);
- GDREGISTER_ABSTRACT_CLASS(Node3DGizmo);
- GDREGISTER_CLASS(Skin);
- GDREGISTER_ABSTRACT_CLASS(SkinReference);
- GDREGISTER_CLASS(Skeleton3D);
- GDREGISTER_CLASS(ImporterMesh);
- GDREGISTER_CLASS(ImporterMeshInstance3D);
- GDREGISTER_VIRTUAL_CLASS(VisualInstance3D);
- GDREGISTER_VIRTUAL_CLASS(GeometryInstance3D);
- GDREGISTER_CLASS(Camera3D);
- GDREGISTER_CLASS(AudioListener3D);
- GDREGISTER_CLASS(XRCamera3D);
- GDREGISTER_CLASS(XRNode3D);
- GDREGISTER_CLASS(XRController3D);
- GDREGISTER_CLASS(XRAnchor3D);
- GDREGISTER_CLASS(XROrigin3D);
- GDREGISTER_CLASS(XRBodyModifier3D);
- GDREGISTER_CLASS(XRHandModifier3D);
- GDREGISTER_CLASS(XRFaceModifier3D);
- GDREGISTER_CLASS(MeshInstance3D);
- GDREGISTER_CLASS(OccluderInstance3D);
- GDREGISTER_ABSTRACT_CLASS(Occluder3D);
- GDREGISTER_CLASS(ArrayOccluder3D);
- GDREGISTER_CLASS(QuadOccluder3D);
- GDREGISTER_CLASS(BoxOccluder3D);
- GDREGISTER_CLASS(SphereOccluder3D);
- GDREGISTER_CLASS(PolygonOccluder3D);
- GDREGISTER_ABSTRACT_CLASS(SpriteBase3D);
- GDREGISTER_CLASS(Sprite3D);
- GDREGISTER_CLASS(AnimatedSprite3D);
- GDREGISTER_CLASS(Label3D);
- GDREGISTER_ABSTRACT_CLASS(Light3D);
- GDREGISTER_CLASS(DirectionalLight3D);
- GDREGISTER_CLASS(OmniLight3D);
- GDREGISTER_CLASS(SpotLight3D);
- GDREGISTER_CLASS(ReflectionProbe);
- GDREGISTER_CLASS(Decal);
- GDREGISTER_CLASS(VoxelGI);
- GDREGISTER_CLASS(VoxelGIData);
- GDREGISTER_CLASS(LightmapGI);
- GDREGISTER_CLASS(LightmapGIData);
- GDREGISTER_CLASS(LightmapProbe);
- GDREGISTER_ABSTRACT_CLASS(Lightmapper);
- GDREGISTER_CLASS(GPUParticles3D);
- GDREGISTER_ABSTRACT_CLASS(GPUParticlesCollision3D);
- GDREGISTER_CLASS(GPUParticlesCollisionBox3D);
- GDREGISTER_CLASS(GPUParticlesCollisionSphere3D);
- GDREGISTER_CLASS(GPUParticlesCollisionSDF3D);
- GDREGISTER_CLASS(GPUParticlesCollisionHeightField3D);
- GDREGISTER_ABSTRACT_CLASS(GPUParticlesAttractor3D);
- GDREGISTER_CLASS(GPUParticlesAttractorBox3D);
- GDREGISTER_CLASS(GPUParticlesAttractorSphere3D);
- GDREGISTER_CLASS(GPUParticlesAttractorVectorField3D);
- GDREGISTER_CLASS(CPUParticles3D);
- GDREGISTER_CLASS(Marker3D);
- GDREGISTER_CLASS(RootMotionView);
- GDREGISTER_VIRTUAL_CLASS(SkeletonModifier3D);
- GDREGISTER_CLASS(RetargetModifier3D);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_ABSTRACT_CLASS(CollisionObject3D);
- GDREGISTER_ABSTRACT_CLASS(PhysicsBody3D);
- GDREGISTER_CLASS(StaticBody3D);
- GDREGISTER_CLASS(AnimatableBody3D);
- GDREGISTER_CLASS(RigidBody3D);
- GDREGISTER_CLASS(KinematicCollision3D);
- GDREGISTER_CLASS(CharacterBody3D);
- GDREGISTER_CLASS(SpringArm3D);
- GDREGISTER_CLASS(PhysicalBoneSimulator3D);
- GDREGISTER_CLASS(PhysicalBone3D);
- GDREGISTER_CLASS(SoftBody3D);
- GDREGISTER_CLASS(SkeletonIK3D);
- GDREGISTER_CLASS(BoneAttachment3D);
- GDREGISTER_CLASS(LookAtModifier3D);
- GDREGISTER_CLASS(VehicleBody3D);
- GDREGISTER_CLASS(VehicleWheel3D);
- GDREGISTER_CLASS(Area3D);
- GDREGISTER_CLASS(CollisionShape3D);
- GDREGISTER_CLASS(CollisionPolygon3D);
- GDREGISTER_CLASS(RayCast3D);
- GDREGISTER_CLASS(ShapeCast3D);
- GDREGISTER_CLASS(MultiMeshInstance3D);
- GDREGISTER_CLASS(Curve3D);
- GDREGISTER_CLASS(Path3D);
- GDREGISTER_CLASS(PathFollow3D);
- GDREGISTER_CLASS(VisibleOnScreenNotifier3D);
- GDREGISTER_CLASS(VisibleOnScreenEnabler3D);
- GDREGISTER_CLASS(WorldEnvironment);
- GDREGISTER_CLASS(FogVolume);
- GDREGISTER_CLASS(FogMaterial);
- GDREGISTER_CLASS(RemoteTransform3D);
- GDREGISTER_ABSTRACT_CLASS(Joint3D);
- GDREGISTER_CLASS(PinJoint3D);
- GDREGISTER_CLASS(HingeJoint3D);
- GDREGISTER_CLASS(SliderJoint3D);
- GDREGISTER_CLASS(ConeTwistJoint3D);
- GDREGISTER_CLASS(Generic6DOFJoint3D);
- GDREGISTER_CLASS(NavigationRegion3D);
- GDREGISTER_CLASS(NavigationAgent3D);
- GDREGISTER_CLASS(NavigationObstacle3D);
- GDREGISTER_CLASS(NavigationLink3D);
- OS::get_singleton()->yield(); // may take time to init
- #endif // _3D_DISABLED
- /* REGISTER SHADER */
- GDREGISTER_CLASS(Shader);
- GDREGISTER_CLASS(VisualShader);
- GDREGISTER_CLASS(ShaderInclude);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNode);
- GDREGISTER_CLASS(VisualShaderNodeCustom);
- GDREGISTER_CLASS(VisualShaderNodeInput);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeOutput);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeResizableBase);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeGroupBase);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeConstant);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeVectorBase);
- GDREGISTER_CLASS(VisualShaderNodeFrame);
- #ifndef DISABLE_DEPRECATED
- GDREGISTER_CLASS(VisualShaderNodeComment); // Deprecated, just for compatibility.
- #endif
- GDREGISTER_CLASS(VisualShaderNodeFloatConstant);
- GDREGISTER_CLASS(VisualShaderNodeIntConstant);
- GDREGISTER_CLASS(VisualShaderNodeUIntConstant);
- GDREGISTER_CLASS(VisualShaderNodeBooleanConstant);
- GDREGISTER_CLASS(VisualShaderNodeColorConstant);
- GDREGISTER_CLASS(VisualShaderNodeVec2Constant);
- GDREGISTER_CLASS(VisualShaderNodeVec3Constant);
- GDREGISTER_CLASS(VisualShaderNodeVec4Constant);
- GDREGISTER_CLASS(VisualShaderNodeTransformConstant);
- GDREGISTER_CLASS(VisualShaderNodeFloatOp);
- GDREGISTER_CLASS(VisualShaderNodeIntOp);
- GDREGISTER_CLASS(VisualShaderNodeUIntOp);
- GDREGISTER_CLASS(VisualShaderNodeVectorOp);
- GDREGISTER_CLASS(VisualShaderNodeColorOp);
- GDREGISTER_CLASS(VisualShaderNodeTransformOp);
- GDREGISTER_CLASS(VisualShaderNodeTransformVecMult);
- GDREGISTER_CLASS(VisualShaderNodeFloatFunc);
- GDREGISTER_CLASS(VisualShaderNodeIntFunc);
- GDREGISTER_CLASS(VisualShaderNodeUIntFunc);
- GDREGISTER_CLASS(VisualShaderNodeVectorFunc);
- GDREGISTER_CLASS(VisualShaderNodeColorFunc);
- GDREGISTER_CLASS(VisualShaderNodeTransformFunc);
- GDREGISTER_CLASS(VisualShaderNodeUVFunc);
- GDREGISTER_CLASS(VisualShaderNodeUVPolarCoord);
- GDREGISTER_CLASS(VisualShaderNodeDotProduct);
- GDREGISTER_CLASS(VisualShaderNodeVectorLen);
- GDREGISTER_CLASS(VisualShaderNodeDeterminant);
- GDREGISTER_CLASS(VisualShaderNodeDerivativeFunc);
- GDREGISTER_CLASS(VisualShaderNodeClamp);
- GDREGISTER_CLASS(VisualShaderNodeFaceForward);
- GDREGISTER_CLASS(VisualShaderNodeOuterProduct);
- GDREGISTER_CLASS(VisualShaderNodeSmoothStep);
- GDREGISTER_CLASS(VisualShaderNodeStep);
- GDREGISTER_CLASS(VisualShaderNodeVectorDistance);
- GDREGISTER_CLASS(VisualShaderNodeVectorRefract);
- GDREGISTER_CLASS(VisualShaderNodeMix);
- GDREGISTER_CLASS(VisualShaderNodeVectorCompose);
- GDREGISTER_CLASS(VisualShaderNodeTransformCompose);
- GDREGISTER_CLASS(VisualShaderNodeVectorDecompose);
- GDREGISTER_CLASS(VisualShaderNodeTransformDecompose);
- GDREGISTER_CLASS(VisualShaderNodeTexture);
- GDREGISTER_CLASS(VisualShaderNodeCurveTexture);
- GDREGISTER_CLASS(VisualShaderNodeCurveXYZTexture);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeSample3D);
- GDREGISTER_CLASS(VisualShaderNodeTexture2DArray);
- GDREGISTER_CLASS(VisualShaderNodeTexture3D);
- GDREGISTER_CLASS(VisualShaderNodeCubemap);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeParameter);
- GDREGISTER_CLASS(VisualShaderNodeParameterRef);
- GDREGISTER_CLASS(VisualShaderNodeFloatParameter);
- GDREGISTER_CLASS(VisualShaderNodeIntParameter);
- GDREGISTER_CLASS(VisualShaderNodeUIntParameter);
- GDREGISTER_CLASS(VisualShaderNodeBooleanParameter);
- GDREGISTER_CLASS(VisualShaderNodeColorParameter);
- GDREGISTER_CLASS(VisualShaderNodeVec2Parameter);
- GDREGISTER_CLASS(VisualShaderNodeVec3Parameter);
- GDREGISTER_CLASS(VisualShaderNodeVec4Parameter);
- GDREGISTER_CLASS(VisualShaderNodeTransformParameter);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeTextureParameter);
- GDREGISTER_CLASS(VisualShaderNodeTexture2DParameter);
- GDREGISTER_CLASS(VisualShaderNodeTextureParameterTriplanar);
- GDREGISTER_CLASS(VisualShaderNodeTexture2DArrayParameter);
- GDREGISTER_CLASS(VisualShaderNodeTexture3DParameter);
- GDREGISTER_CLASS(VisualShaderNodeCubemapParameter);
- GDREGISTER_CLASS(VisualShaderNodeLinearSceneDepth);
- GDREGISTER_CLASS(VisualShaderNodeWorldPositionFromDepth);
- GDREGISTER_CLASS(VisualShaderNodeScreenNormalWorldSpace);
- GDREGISTER_CLASS(VisualShaderNodeIf);
- GDREGISTER_CLASS(VisualShaderNodeSwitch);
- GDREGISTER_CLASS(VisualShaderNodeFresnel);
- GDREGISTER_CLASS(VisualShaderNodeExpression);
- GDREGISTER_CLASS(VisualShaderNodeGlobalExpression);
- GDREGISTER_CLASS(VisualShaderNodeIs);
- GDREGISTER_CLASS(VisualShaderNodeCompare);
- GDREGISTER_CLASS(VisualShaderNodeMultiplyAdd);
- GDREGISTER_CLASS(VisualShaderNodeBillboard);
- GDREGISTER_CLASS(VisualShaderNodeDistanceFade);
- GDREGISTER_CLASS(VisualShaderNodeProximityFade);
- GDREGISTER_CLASS(VisualShaderNodeRandomRange);
- GDREGISTER_CLASS(VisualShaderNodeRemap);
- GDREGISTER_CLASS(VisualShaderNodeRotationByAxis);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeVarying);
- GDREGISTER_CLASS(VisualShaderNodeVaryingSetter);
- GDREGISTER_CLASS(VisualShaderNodeVaryingGetter);
- GDREGISTER_CLASS(VisualShaderNodeReroute);
- GDREGISTER_CLASS(VisualShaderNodeSDFToScreenUV);
- GDREGISTER_CLASS(VisualShaderNodeScreenUVToSDF);
- GDREGISTER_CLASS(VisualShaderNodeTextureSDF);
- GDREGISTER_CLASS(VisualShaderNodeTextureSDFNormal);
- GDREGISTER_CLASS(VisualShaderNodeSDFRaymarch);
- GDREGISTER_CLASS(VisualShaderNodeParticleOutput);
- GDREGISTER_ABSTRACT_CLASS(VisualShaderNodeParticleEmitter);
- GDREGISTER_CLASS(VisualShaderNodeParticleSphereEmitter);
- GDREGISTER_CLASS(VisualShaderNodeParticleBoxEmitter);
- GDREGISTER_CLASS(VisualShaderNodeParticleRingEmitter);
- GDREGISTER_CLASS(VisualShaderNodeParticleMeshEmitter);
- GDREGISTER_CLASS(VisualShaderNodeParticleMultiplyByAxisAngle);
- GDREGISTER_CLASS(VisualShaderNodeParticleConeVelocity);
- GDREGISTER_CLASS(VisualShaderNodeParticleRandomness);
- GDREGISTER_CLASS(VisualShaderNodeParticleAccelerator);
- GDREGISTER_CLASS(VisualShaderNodeParticleEmit);
- GDREGISTER_VIRTUAL_CLASS(Material);
- GDREGISTER_CLASS(PlaceholderMaterial);
- GDREGISTER_CLASS(ShaderMaterial);
- GDREGISTER_ABSTRACT_CLASS(CanvasItem);
- GDREGISTER_CLASS(CanvasTexture);
- GDREGISTER_CLASS(CanvasItemMaterial);
- SceneTree::add_idle_callback(CanvasItemMaterial::flush_changes);
- CanvasItemMaterial::init_shaders();
- /* REGISTER 2D */
- GDREGISTER_CLASS(Node2D);
- GDREGISTER_CLASS(CanvasGroup);
- GDREGISTER_CLASS(CPUParticles2D);
- GDREGISTER_CLASS(GPUParticles2D);
- GDREGISTER_CLASS(Sprite2D);
- GDREGISTER_CLASS(SpriteFrames);
- GDREGISTER_CLASS(AnimatedSprite2D);
- GDREGISTER_CLASS(Marker2D);
- GDREGISTER_CLASS(Line2D);
- GDREGISTER_CLASS(MeshInstance2D);
- GDREGISTER_CLASS(MultiMeshInstance2D);
- GDREGISTER_ABSTRACT_CLASS(CollisionObject2D);
- GDREGISTER_ABSTRACT_CLASS(PhysicsBody2D);
- GDREGISTER_CLASS(StaticBody2D);
- GDREGISTER_CLASS(AnimatableBody2D);
- GDREGISTER_CLASS(RigidBody2D);
- GDREGISTER_CLASS(CharacterBody2D);
- GDREGISTER_CLASS(KinematicCollision2D);
- GDREGISTER_CLASS(Area2D);
- GDREGISTER_CLASS(CollisionShape2D);
- GDREGISTER_CLASS(CollisionPolygon2D);
- GDREGISTER_CLASS(RayCast2D);
- GDREGISTER_CLASS(ShapeCast2D);
- GDREGISTER_CLASS(VisibleOnScreenNotifier2D);
- GDREGISTER_CLASS(VisibleOnScreenEnabler2D);
- GDREGISTER_CLASS(Polygon2D);
- GDREGISTER_CLASS(Skeleton2D);
- GDREGISTER_CLASS(Bone2D);
- GDREGISTER_ABSTRACT_CLASS(Light2D);
- GDREGISTER_CLASS(PointLight2D);
- GDREGISTER_CLASS(DirectionalLight2D);
- GDREGISTER_CLASS(LightOccluder2D);
- GDREGISTER_CLASS(OccluderPolygon2D);
- GDREGISTER_CLASS(BackBufferCopy);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(Camera2D);
- GDREGISTER_CLASS(AudioListener2D);
- GDREGISTER_ABSTRACT_CLASS(Joint2D);
- GDREGISTER_CLASS(PinJoint2D);
- GDREGISTER_CLASS(GrooveJoint2D);
- GDREGISTER_CLASS(DampedSpringJoint2D);
- GDREGISTER_CLASS(TileSet);
- GDREGISTER_ABSTRACT_CLASS(TileSetSource);
- GDREGISTER_CLASS(TileSetAtlasSource);
- GDREGISTER_CLASS(TileSetScenesCollectionSource);
- GDREGISTER_CLASS(TileMapPattern);
- GDREGISTER_CLASS(TileData);
- GDREGISTER_CLASS(TileMap);
- GDREGISTER_CLASS(TileMapLayer);
- GDREGISTER_CLASS(Parallax2D);
- GDREGISTER_CLASS(ParallaxBackground);
- GDREGISTER_CLASS(ParallaxLayer);
- GDREGISTER_CLASS(TouchScreenButton);
- GDREGISTER_CLASS(RemoteTransform2D);
- GDREGISTER_CLASS(SkeletonModificationStack2D);
- GDREGISTER_CLASS(SkeletonModification2D);
- GDREGISTER_CLASS(SkeletonModification2DLookAt);
- GDREGISTER_CLASS(SkeletonModification2DCCDIK);
- GDREGISTER_CLASS(SkeletonModification2DFABRIK);
- GDREGISTER_CLASS(SkeletonModification2DJiggle);
- GDREGISTER_CLASS(SkeletonModification2DTwoBoneIK);
- GDREGISTER_CLASS(SkeletonModification2DStackHolder);
- GDREGISTER_CLASS(PhysicalBone2D);
- GDREGISTER_CLASS(SkeletonModification2DPhysicalBones);
- OS::get_singleton()->yield(); // may take time to init
- /* REGISTER RESOURCES */
- GDREGISTER_ABSTRACT_CLASS(Shader);
- GDREGISTER_CLASS(ParticleProcessMaterial);
- SceneTree::add_idle_callback(ParticleProcessMaterial::flush_changes);
- ParticleProcessMaterial::init_shaders();
- GDREGISTER_VIRTUAL_CLASS(Mesh);
- GDREGISTER_CLASS(MeshConvexDecompositionSettings);
- GDREGISTER_CLASS(ArrayMesh);
- GDREGISTER_CLASS(PlaceholderMesh);
- GDREGISTER_CLASS(ImmediateMesh);
- GDREGISTER_CLASS(MultiMesh);
- GDREGISTER_CLASS(SurfaceTool);
- GDREGISTER_CLASS(MeshDataTool);
- #ifndef _3D_DISABLED
- GDREGISTER_CLASS(AudioStreamPlayer3D);
- GDREGISTER_VIRTUAL_CLASS(PrimitiveMesh);
- GDREGISTER_CLASS(BoxMesh);
- GDREGISTER_CLASS(CapsuleMesh);
- GDREGISTER_CLASS(CylinderMesh);
- GDREGISTER_CLASS(PlaneMesh);
- GDREGISTER_CLASS(PrismMesh);
- GDREGISTER_CLASS(QuadMesh);
- GDREGISTER_CLASS(SphereMesh);
- GDREGISTER_CLASS(TextMesh);
- GDREGISTER_CLASS(TorusMesh);
- GDREGISTER_CLASS(TubeTrailMesh);
- GDREGISTER_CLASS(RibbonTrailMesh);
- GDREGISTER_CLASS(PointMesh);
- GDREGISTER_ABSTRACT_CLASS(BaseMaterial3D);
- GDREGISTER_CLASS(StandardMaterial3D);
- GDREGISTER_CLASS(ORMMaterial3D);
- GDREGISTER_CLASS(ProceduralSkyMaterial);
- GDREGISTER_CLASS(PanoramaSkyMaterial);
- GDREGISTER_CLASS(PhysicalSkyMaterial);
- SceneTree::add_idle_callback(BaseMaterial3D::flush_changes);
- BaseMaterial3D::init_shaders();
- GDREGISTER_CLASS(MeshLibrary);
- GDREGISTER_CLASS(NavigationMeshSourceGeometryData3D);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_ABSTRACT_CLASS(Shape3D);
- GDREGISTER_CLASS(SeparationRayShape3D);
- GDREGISTER_CLASS(SphereShape3D);
- GDREGISTER_CLASS(BoxShape3D);
- GDREGISTER_CLASS(CapsuleShape3D);
- GDREGISTER_CLASS(CylinderShape3D);
- GDREGISTER_CLASS(HeightMapShape3D);
- GDREGISTER_CLASS(WorldBoundaryShape3D);
- GDREGISTER_CLASS(ConvexPolygonShape3D);
- GDREGISTER_CLASS(ConcavePolygonShape3D);
- GDREGISTER_CLASS(World3D);
- OS::get_singleton()->yield(); // may take time to init
- #endif // _3D_DISABLED
- GDREGISTER_CLASS(PhysicsMaterial);
- GDREGISTER_CLASS(Compositor);
- GDREGISTER_CLASS(Environment);
- GDREGISTER_VIRTUAL_CLASS(CameraAttributes);
- GDREGISTER_CLASS(CameraAttributesPhysical);
- GDREGISTER_CLASS(CameraAttributesPractical);
- GDREGISTER_CLASS(World2D);
- GDREGISTER_VIRTUAL_CLASS(Texture);
- GDREGISTER_VIRTUAL_CLASS(Texture2D);
- GDREGISTER_CLASS(Sky);
- GDREGISTER_CLASS(CompressedTexture2D);
- GDREGISTER_CLASS(PortableCompressedTexture2D);
- GDREGISTER_CLASS(ImageTexture);
- GDREGISTER_CLASS(AtlasTexture);
- GDREGISTER_CLASS(MeshTexture);
- GDREGISTER_CLASS(CurveTexture);
- GDREGISTER_CLASS(CurveXYZTexture);
- GDREGISTER_CLASS(GradientTexture1D);
- GDREGISTER_CLASS(GradientTexture2D);
- GDREGISTER_CLASS(AnimatedTexture);
- GDREGISTER_CLASS(CameraTexture);
- GDREGISTER_CLASS(ExternalTexture);
- GDREGISTER_VIRTUAL_CLASS(TextureLayered);
- GDREGISTER_ABSTRACT_CLASS(ImageTextureLayered);
- GDREGISTER_VIRTUAL_CLASS(Texture3D);
- GDREGISTER_CLASS(ImageTexture3D);
- GDREGISTER_CLASS(CompressedTexture3D);
- GDREGISTER_CLASS(Cubemap);
- GDREGISTER_CLASS(CubemapArray);
- GDREGISTER_CLASS(Texture2DArray);
- GDREGISTER_ABSTRACT_CLASS(CompressedTextureLayered);
- GDREGISTER_CLASS(CompressedCubemap);
- GDREGISTER_CLASS(CompressedCubemapArray);
- GDREGISTER_CLASS(CompressedTexture2DArray);
- GDREGISTER_CLASS(PlaceholderTexture2D);
- GDREGISTER_CLASS(PlaceholderTexture3D);
- GDREGISTER_ABSTRACT_CLASS(PlaceholderTextureLayered);
- GDREGISTER_CLASS(PlaceholderTexture2DArray);
- GDREGISTER_CLASS(PlaceholderCubemap);
- GDREGISTER_CLASS(PlaceholderCubemapArray);
- // These classes are part of renderer_rd
- GDREGISTER_CLASS(Texture2DRD);
- GDREGISTER_ABSTRACT_CLASS(TextureLayeredRD);
- GDREGISTER_CLASS(Texture2DArrayRD);
- GDREGISTER_CLASS(TextureCubemapRD);
- GDREGISTER_CLASS(TextureCubemapArrayRD);
- GDREGISTER_CLASS(Texture3DRD);
- GDREGISTER_CLASS(Animation);
- GDREGISTER_CLASS(AnimationLibrary);
- GDREGISTER_ABSTRACT_CLASS(Font);
- GDREGISTER_CLASS(FontFile);
- GDREGISTER_CLASS(FontVariation);
- GDREGISTER_CLASS(SystemFont);
- GDREGISTER_CLASS(ColorPalette);
- GDREGISTER_CLASS(Curve);
- GDREGISTER_CLASS(LabelSettings);
- GDREGISTER_CLASS(TextLine);
- GDREGISTER_CLASS(TextParagraph);
- GDREGISTER_VIRTUAL_CLASS(StyleBox);
- GDREGISTER_CLASS(StyleBoxEmpty);
- GDREGISTER_CLASS(StyleBoxTexture);
- GDREGISTER_CLASS(StyleBoxFlat);
- GDREGISTER_CLASS(StyleBoxLine);
- GDREGISTER_CLASS(Theme);
- GDREGISTER_CLASS(BitMap);
- GDREGISTER_CLASS(Gradient);
- GDREGISTER_CLASS(SkeletonProfile);
- GDREGISTER_CLASS(SkeletonProfileHumanoid);
- GDREGISTER_CLASS(BoneMap);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(AudioStreamPlayer);
- GDREGISTER_CLASS(AudioStreamWAV);
- GDREGISTER_CLASS(AudioStreamPolyphonic);
- GDREGISTER_ABSTRACT_CLASS(AudioStreamPlaybackPolyphonic);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_CLASS(AudioStreamPlayer2D);
- GDREGISTER_ABSTRACT_CLASS(Shape2D);
- GDREGISTER_CLASS(WorldBoundaryShape2D);
- GDREGISTER_CLASS(SegmentShape2D);
- GDREGISTER_CLASS(SeparationRayShape2D);
- GDREGISTER_CLASS(CircleShape2D);
- GDREGISTER_CLASS(RectangleShape2D);
- GDREGISTER_CLASS(CapsuleShape2D);
- GDREGISTER_CLASS(ConvexPolygonShape2D);
- GDREGISTER_CLASS(ConcavePolygonShape2D);
- GDREGISTER_CLASS(Curve2D);
- GDREGISTER_CLASS(Path2D);
- GDREGISTER_CLASS(PathFollow2D);
- GDREGISTER_CLASS(PolygonPathFinder);
- GDREGISTER_CLASS(NavigationMesh);
- GDREGISTER_CLASS(NavigationMeshSourceGeometryData2D);
- GDREGISTER_CLASS(NavigationPolygon);
- GDREGISTER_CLASS(NavigationRegion2D);
- GDREGISTER_CLASS(NavigationAgent2D);
- GDREGISTER_CLASS(NavigationObstacle2D);
- GDREGISTER_CLASS(NavigationLink2D);
- OS::get_singleton()->yield(); // may take time to init
- GDREGISTER_ABSTRACT_CLASS(SceneState);
- GDREGISTER_CLASS(PackedScene);
- GDREGISTER_CLASS(SceneTree);
- GDREGISTER_ABSTRACT_CLASS(SceneTreeTimer); // sorry, you can't create it
- #ifndef DISABLE_DEPRECATED
- // Dropped in 4.0, near approximation.
- ClassDB::add_compatibility_class("AnimationTreePlayer", "AnimationTree");
- ClassDB::add_compatibility_class("BakedLightmap", "LightmapGI");
- ClassDB::add_compatibility_class("BakedLightmapData", "LightmapGIData");
- ClassDB::add_compatibility_class("BitmapFont", "FontFile");
- ClassDB::add_compatibility_class("DynamicFont", "FontFile");
- ClassDB::add_compatibility_class("DynamicFontData", "FontFile");
- ClassDB::add_compatibility_class("Navigation3D", "Node3D");
- ClassDB::add_compatibility_class("Navigation2D", "Node2D");
- ClassDB::add_compatibility_class("OpenSimplexNoise", "FastNoiseLite");
- ClassDB::add_compatibility_class("ProximityGroup", "Node3D");
- ClassDB::add_compatibility_class("ToolButton", "Button");
- ClassDB::add_compatibility_class("YSort", "Node2D");
- // Portal and room occlusion was replaced by raster occlusion (OccluderInstance3D node).
- ClassDB::add_compatibility_class("Portal", "Node3D");
- ClassDB::add_compatibility_class("Room", "Node3D");
- ClassDB::add_compatibility_class("RoomManager", "Node3D");
- ClassDB::add_compatibility_class("RoomGroup", "Node3D");
- ClassDB::add_compatibility_class("Occluder", "Node3D");
- // The OccluderShapeSphere resource (used in the old Occluder node) is not present anymore.
- ClassDB::add_compatibility_class("OccluderShapeSphere", "Resource");
- // Renamed in 4.0.
- // Keep alphabetical ordering to easily locate classes and avoid duplicates.
- ClassDB::add_compatibility_class("AnimatedSprite", "AnimatedSprite2D");
- ClassDB::add_compatibility_class("Area", "Area3D");
- ClassDB::add_compatibility_class("ARVRCamera", "XRCamera3D");
- ClassDB::add_compatibility_class("ARVRController", "XRController3D");
- ClassDB::add_compatibility_class("ARVRAnchor", "XRAnchor3D");
- ClassDB::add_compatibility_class("ARVRInterface", "XRInterface");
- ClassDB::add_compatibility_class("ARVROrigin", "XROrigin3D");
- ClassDB::add_compatibility_class("ARVRPositionalTracker", "XRPositionalTracker");
- ClassDB::add_compatibility_class("ARVRServer", "XRServer");
- ClassDB::add_compatibility_class("AStar", "AStar3D");
- ClassDB::add_compatibility_class("BoneAttachment", "BoneAttachment3D");
- ClassDB::add_compatibility_class("BoxShape", "BoxShape3D");
- ClassDB::add_compatibility_class("Camera", "Camera3D");
- ClassDB::add_compatibility_class("CapsuleShape", "CapsuleShape3D");
- ClassDB::add_compatibility_class("ClippedCamera", "ClippedCamera3D");
- ClassDB::add_compatibility_class("CollisionObject", "CollisionObject3D");
- ClassDB::add_compatibility_class("CollisionPolygon", "CollisionPolygon3D");
- ClassDB::add_compatibility_class("CollisionShape", "CollisionShape3D");
- ClassDB::add_compatibility_class("ConcavePolygonShape", "ConcavePolygonShape3D");
- ClassDB::add_compatibility_class("ConeTwistJoint", "ConeTwistJoint3D");
- ClassDB::add_compatibility_class("ConvexPolygonShape", "ConvexPolygonShape3D");
- ClassDB::add_compatibility_class("CPUParticles", "CPUParticles3D");
- ClassDB::add_compatibility_class("CSGBox", "CSGBox3D");
- ClassDB::add_compatibility_class("CSGCombiner", "CSGCombiner3D");
- ClassDB::add_compatibility_class("CSGCylinder", "CSGCylinder3D");
- ClassDB::add_compatibility_class("CSGMesh", "CSGMesh3D");
- ClassDB::add_compatibility_class("CSGPolygon", "CSGPolygon3D");
- ClassDB::add_compatibility_class("CSGPrimitive", "CSGPrimitive3D");
- ClassDB::add_compatibility_class("CSGShape", "CSGShape3D");
- ClassDB::add_compatibility_class("CSGSphere", "CSGSphere3D");
- ClassDB::add_compatibility_class("CSGTorus", "CSGTorus3D");
- ClassDB::add_compatibility_class("CubeMesh", "BoxMesh");
- ClassDB::add_compatibility_class("CylinderShape", "CylinderShape3D");
- ClassDB::add_compatibility_class("DirectionalLight", "DirectionalLight3D");
- ClassDB::add_compatibility_class("EditorSpatialGizmo", "EditorNode3DGizmo");
- ClassDB::add_compatibility_class("EditorSpatialGizmoPlugin", "EditorNode3DGizmoPlugin");
- ClassDB::add_compatibility_class("Generic6DOFJoint", "Generic6DOFJoint3D");
- ClassDB::add_compatibility_class("GIProbe", "VoxelGI");
- ClassDB::add_compatibility_class("GIProbeData", "VoxelGIData");
- ClassDB::add_compatibility_class("GradientTexture", "GradientTexture1D");
- ClassDB::add_compatibility_class("HeightMapShape", "HeightMapShape3D");
- ClassDB::add_compatibility_class("HingeJoint", "HingeJoint3D");
- ClassDB::add_compatibility_class("Joint", "Joint3D");
- ClassDB::add_compatibility_class("KinematicBody", "CharacterBody3D");
- ClassDB::add_compatibility_class("KinematicBody2D", "CharacterBody2D");
- ClassDB::add_compatibility_class("KinematicCollision", "KinematicCollision3D");
- ClassDB::add_compatibility_class("Light", "Light3D");
- ClassDB::add_compatibility_class("Light2D", "PointLight2D");
- ClassDB::add_compatibility_class("LineShape2D", "WorldBoundaryShape2D");
- ClassDB::add_compatibility_class("Listener", "AudioListener3D");
- ClassDB::add_compatibility_class("MeshInstance", "MeshInstance3D");
- ClassDB::add_compatibility_class("MultiMeshInstance", "MultiMeshInstance3D");
- ClassDB::add_compatibility_class("NavigationAgent", "NavigationAgent3D");
- ClassDB::add_compatibility_class("NavigationMeshInstance", "NavigationRegion3D");
- ClassDB::add_compatibility_class("NavigationObstacle", "NavigationObstacle3D");
- ClassDB::add_compatibility_class("NavigationPolygonInstance", "NavigationRegion2D");
- ClassDB::add_compatibility_class("NavigationRegion", "NavigationRegion3D");
- ClassDB::add_compatibility_class("Navigation2DServer", "NavigationServer2D");
- ClassDB::add_compatibility_class("NavigationServer", "NavigationServer3D");
- ClassDB::add_compatibility_class("OmniLight", "OmniLight3D");
- ClassDB::add_compatibility_class("PanoramaSky", "Sky");
- ClassDB::add_compatibility_class("Particles", "GPUParticles3D");
- ClassDB::add_compatibility_class("Particles2D", "GPUParticles2D");
- ClassDB::add_compatibility_class("ParticlesMaterial", "ParticleProcessMaterial");
- ClassDB::add_compatibility_class("Path", "Path3D");
- ClassDB::add_compatibility_class("PathFollow", "PathFollow3D");
- ClassDB::add_compatibility_class("PhysicalBone", "PhysicalBone3D");
- ClassDB::add_compatibility_class("Physics2DDirectBodyState", "PhysicsDirectBodyState2D");
- ClassDB::add_compatibility_class("Physics2DDirectSpaceState", "PhysicsDirectSpaceState2D");
- ClassDB::add_compatibility_class("Physics2DServer", "PhysicsServer2D");
- ClassDB::add_compatibility_class("Physics2DShapeQueryParameters", "PhysicsShapeQueryParameters2D");
- ClassDB::add_compatibility_class("Physics2DTestMotionResult", "PhysicsTestMotionResult2D");
- ClassDB::add_compatibility_class("PhysicsBody", "PhysicsBody3D");
- ClassDB::add_compatibility_class("PhysicsDirectBodyState", "PhysicsDirectBodyState3D");
- ClassDB::add_compatibility_class("PhysicsDirectSpaceState", "PhysicsDirectSpaceState3D");
- ClassDB::add_compatibility_class("PhysicsServer", "PhysicsServer3D");
- ClassDB::add_compatibility_class("PhysicsShapeQueryParameters", "PhysicsShapeQueryParameters3D");
- ClassDB::add_compatibility_class("PinJoint", "PinJoint3D");
- ClassDB::add_compatibility_class("PlaneShape", "WorldBoundaryShape3D");
- ClassDB::add_compatibility_class("Position2D", "Marker2D");
- ClassDB::add_compatibility_class("Position3D", "Marker3D");
- ClassDB::add_compatibility_class("ProceduralSky", "Sky");
- ClassDB::add_compatibility_class("RayCast", "RayCast3D");
- ClassDB::add_compatibility_class("RayShape", "SeparationRayShape3D");
- ClassDB::add_compatibility_class("RayShape2D", "SeparationRayShape2D");
- ClassDB::add_compatibility_class("RemoteTransform", "RemoteTransform3D");
- ClassDB::add_compatibility_class("RigidBody", "RigidBody3D");
- ClassDB::add_compatibility_class("RigidDynamicBody2D", "RigidBody2D");
- ClassDB::add_compatibility_class("RigidDynamicBody3D", "RigidBody3D");
- ClassDB::add_compatibility_class("Shape", "Shape3D");
- ClassDB::add_compatibility_class("ShortCut", "Shortcut");
- ClassDB::add_compatibility_class("Skeleton", "Skeleton3D");
- ClassDB::add_compatibility_class("SkeletonIK", "SkeletonIK3D");
- ClassDB::add_compatibility_class("SliderJoint", "SliderJoint3D");
- ClassDB::add_compatibility_class("SoftBody", "SoftBody3D");
- ClassDB::add_compatibility_class("SoftDynamicBody3D", "SoftBody3D");
- ClassDB::add_compatibility_class("Spatial", "Node3D");
- ClassDB::add_compatibility_class("SpatialGizmo", "Node3DGizmo");
- ClassDB::add_compatibility_class("SpatialMaterial", "StandardMaterial3D");
- ClassDB::add_compatibility_class("SphereShape", "SphereShape3D");
- ClassDB::add_compatibility_class("SpotLight", "SpotLight3D");
- ClassDB::add_compatibility_class("SpringArm", "SpringArm3D");
- ClassDB::add_compatibility_class("Sprite", "Sprite2D");
- ClassDB::add_compatibility_class("StaticBody", "StaticBody3D");
- ClassDB::add_compatibility_class("StreamTexture", "CompressedTexture2D");
- ClassDB::add_compatibility_class("TextureProgress", "TextureProgressBar");
- ClassDB::add_compatibility_class("VehicleBody", "VehicleBody3D");
- ClassDB::add_compatibility_class("VehicleWheel", "VehicleWheel3D");
- ClassDB::add_compatibility_class("VideoPlayer", "VideoStreamPlayer");
- ClassDB::add_compatibility_class("ViewportContainer", "SubViewportContainer");
- ClassDB::add_compatibility_class("Viewport", "SubViewport");
- ClassDB::add_compatibility_class("VisibilityEnabler", "VisibleOnScreenEnabler3D");
- ClassDB::add_compatibility_class("VisibilityNotifier", "VisibleOnScreenNotifier3D");
- ClassDB::add_compatibility_class("VisibilityNotifier2D", "VisibleOnScreenNotifier2D");
- ClassDB::add_compatibility_class("VisibilityNotifier3D", "VisibleOnScreenNotifier3D");
- ClassDB::add_compatibility_class("VisualServer", "RenderingServer");
- ClassDB::add_compatibility_class("World", "World3D");
- // VisualShader classes.
- ClassDB::add_compatibility_class("VisualShaderNodeScalarConstant", "VisualShaderNodeFloatConstant");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarFunc", "VisualShaderNodeFloatFunc");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarOp", "VisualShaderNodeFloatOp");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarClamp", "VisualShaderNodeClamp");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorClamp", "VisualShaderNodeClamp");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarInterp", "VisualShaderNodeMix");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorInterp", "VisualShaderNodeMix");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorScalarMix", "VisualShaderNodeMix");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarSmoothStep", "VisualShaderNodeSmoothStep");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorSmoothStep", "VisualShaderNodeSmoothStep");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorScalarSmoothStep", "VisualShaderNodeSmoothStep");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorScalarStep", "VisualShaderNodeStep");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarSwitch", "VisualShaderNodeSwitch");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarTransformMult", "VisualShaderNodeTransformOp");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarDerivativeFunc", "VisualShaderNodeDerivativeFunc");
- ClassDB::add_compatibility_class("VisualShaderNodeVectorDerivativeFunc", "VisualShaderNodeDerivativeFunc");
- ClassDB::add_compatibility_class("VisualShaderNodeBooleanUniform", "VisualShaderNodeBooleanParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeColorUniform", "VisualShaderNodeColorParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeScalarUniform", "VisualShaderNodeFloatParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeCubeMapUniform", "VisualShaderNodeCubeMapParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeTextureUniform", "VisualShaderNodeTexture2DParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeTextureUniformTriplanar", "VisualShaderNodeTextureParameterTriplanar");
- ClassDB::add_compatibility_class("VisualShaderNodeTransformUniform", "VisualShaderNodeTransformParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeVec3Uniform", "VisualShaderNodeVec3Parameter");
- ClassDB::add_compatibility_class("VisualShaderNodeUniform", "VisualShaderNodeParameter");
- ClassDB::add_compatibility_class("VisualShaderNodeUniformRef", "VisualShaderNodeParameterRef");
- // Renamed during 4.0 alpha, added to ease transition between alphas.
- ClassDB::add_compatibility_class("AudioStreamOGGVorbis", "AudioStreamOggVorbis");
- ClassDB::add_compatibility_class("AudioStreamSample", "AudioStreamWAV");
- ClassDB::add_compatibility_class("OGGPacketSequence", "OggPacketSequence");
- ClassDB::add_compatibility_class("StreamCubemap", "CompressedCubemap");
- ClassDB::add_compatibility_class("StreamCubemapArray", "CompressedCubemapArray");
- ClassDB::add_compatibility_class("StreamTexture2D", "CompressedTexture2D");
- ClassDB::add_compatibility_class("StreamTexture2DArray", "CompressedTexture2DArray");
- ClassDB::add_compatibility_class("StreamTexture3D", "CompressedTexture3D");
- ClassDB::add_compatibility_class("StreamTextureLayered", "CompressedTextureLayered");
- ClassDB::add_compatibility_class("VisualShaderNodeFloatUniform", "VisualShaderNodeFloatParameter");
- #endif /* DISABLE_DEPRECATED */
- OS::get_singleton()->yield(); // may take time to init
- for (int i = 0; i < 20; i++) {
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/2d_render"), i + 1), "");
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/3d_render"), i + 1), "");
- }
- for (int i = 0; i < 32; i++) {
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/2d_physics"), i + 1), "");
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/2d_navigation"), i + 1), "");
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/3d_physics"), i + 1), "");
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/3d_navigation"), i + 1), "");
- }
- for (int i = 0; i < 32; i++) {
- GLOBAL_DEF_BASIC(vformat("%s/layer_%d", PNAME("layer_names/avoidance"), i + 1), "");
- }
- if (RenderingServer::get_singleton()) {
- // RenderingServer needs to exist for this to succeed.
- ColorPicker::init_shaders();
- GraphEdit::init_shaders();
- }
- SceneDebugger::initialize();
- OS::get_singleton()->benchmark_end_measure("Scene", "Register Types");
- }
- void unregister_scene_types() {
- OS::get_singleton()->benchmark_begin_measure("Scene", "Unregister Types");
- SceneDebugger::deinitialize();
- ResourceLoader::remove_resource_format_loader(resource_loader_texture_layered);
- resource_loader_texture_layered.unref();
- ResourceLoader::remove_resource_format_loader(resource_loader_texture_3d);
- resource_loader_texture_3d.unref();
- ResourceLoader::remove_resource_format_loader(resource_loader_stream_texture);
- resource_loader_stream_texture.unref();
- ResourceSaver::remove_resource_format_saver(resource_saver_text);
- resource_saver_text.unref();
- ResourceLoader::remove_resource_format_loader(resource_loader_text);
- resource_loader_text.unref();
- ResourceSaver::remove_resource_format_saver(resource_saver_shader);
- resource_saver_shader.unref();
- ResourceLoader::remove_resource_format_loader(resource_loader_shader);
- resource_loader_shader.unref();
- ResourceSaver::remove_resource_format_saver(resource_saver_shader_include);
- resource_saver_shader_include.unref();
- ResourceLoader::remove_resource_format_loader(resource_loader_shader_include);
- resource_loader_shader_include.unref();
- // StandardMaterial3D is not initialized when 3D is disabled, so it shouldn't be cleaned up either
- #ifndef _3D_DISABLED
- BaseMaterial3D::finish_shaders();
- PhysicalSkyMaterial::cleanup_shader();
- PanoramaSkyMaterial::cleanup_shader();
- ProceduralSkyMaterial::cleanup_shader();
- FogMaterial::cleanup_shader();
- #endif // _3D_DISABLED
- ParticleProcessMaterial::finish_shaders();
- CanvasItemMaterial::finish_shaders();
- ColorPicker::finish_shaders();
- GraphEdit::finish_shaders();
- SceneStringNames::free();
- OS::get_singleton()->benchmark_end_measure("Scene", "Unregister Types");
- }
- void register_scene_singletons() {
- OS::get_singleton()->benchmark_begin_measure("Scene", "Register Singletons");
- GDREGISTER_CLASS(ThemeDB);
- Engine::get_singleton()->add_singleton(Engine::Singleton("ThemeDB", ThemeDB::get_singleton()));
- OS::get_singleton()->benchmark_end_measure("Scene", "Register Singletons");
- }
|