diff options
Diffstat (limited to 'plugins/hello_gdextension/demo')
-rw-r--r-- | plugins/hello_gdextension/demo/.gitattributes | 2 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/.gitignore | 4 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/addons/.gitignore | 2 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/export_presets.cfg | 200 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/icon.svg | 1 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/main.gd | 5 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/main.tscn | 12 | ||||
-rw-r--r-- | plugins/hello_gdextension/demo/project.godot | 30 |
8 files changed, 256 insertions, 0 deletions
diff --git a/plugins/hello_gdextension/demo/.gitattributes b/plugins/hello_gdextension/demo/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/plugins/hello_gdextension/demo/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/plugins/hello_gdextension/demo/.gitignore b/plugins/hello_gdextension/demo/.gitignore new file mode 100644 index 0000000..aadc0ba --- /dev/null +++ b/plugins/hello_gdextension/demo/.gitignore @@ -0,0 +1,4 @@ +# Godot 4+ specific ignores +.godot/ +*.import +/android/ diff --git a/plugins/hello_gdextension/demo/addons/.gitignore b/plugins/hello_gdextension/demo/addons/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/plugins/hello_gdextension/demo/addons/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/plugins/hello_gdextension/demo/export_presets.cfg b/plugins/hello_gdextension/demo/export_presets.cfg new file mode 100644 index 0000000..8fcc7e7 --- /dev/null +++ b/plugins/hello_gdextension/demo/export_presets.cfg @@ -0,0 +1,200 @@ +[preset.0] + +name="Android" +platform="Android" +runnable=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +gradle_build/use_gradle_build=true +gradle_build/export_format=0 +gradle_build/min_sdk="" +gradle_build/target_sdk="" +architectures/armeabi-v7a=false +architectures/arm64-v8a=true +architectures/x86=false +architectures/x86_64=false +version/code=1 +version/name="" +package/unique_name="org.godotengine.hellogdextension" +package/name="" +package/signed=true +package/app_category=2 +package/retain_data_on_uninstall=false +package/exclude_from_recents=false +package/show_in_android_tv=false +package/show_as_launcher_app=false +launcher_icons/main_192x192="" +launcher_icons/adaptive_foreground_432x432="" +launcher_icons/adaptive_background_432x432="" +graphics/opengl_debug=false +xr_features/xr_mode=0 +screen/immersive_mode=true +screen/support_small=true +screen/support_normal=true +screen/support_large=true +screen/support_xlarge=true +user_data_backup/allow=false +command_line/extra_args="" +apk_expansion/enable=false +apk_expansion/SALT="" +apk_expansion/public_key="" +permissions/custom_permissions=PackedStringArray() +permissions/access_checkin_properties=false +permissions/access_coarse_location=false +permissions/access_fine_location=false +permissions/access_location_extra_commands=false +permissions/access_mock_location=false +permissions/access_network_state=false +permissions/access_surface_flinger=false +permissions/access_wifi_state=false +permissions/account_manager=false +permissions/add_voicemail=false +permissions/authenticate_accounts=false +permissions/battery_stats=false +permissions/bind_accessibility_service=false +permissions/bind_appwidget=false +permissions/bind_device_admin=false +permissions/bind_input_method=false +permissions/bind_nfc_service=false +permissions/bind_notification_listener_service=false +permissions/bind_print_service=false +permissions/bind_remoteviews=false +permissions/bind_text_service=false +permissions/bind_vpn_service=false +permissions/bind_wallpaper=false +permissions/bluetooth=false +permissions/bluetooth_admin=false +permissions/bluetooth_privileged=false +permissions/brick=false +permissions/broadcast_package_removed=false +permissions/broadcast_sms=false +permissions/broadcast_sticky=false +permissions/broadcast_wap_push=false +permissions/call_phone=false +permissions/call_privileged=false +permissions/camera=false +permissions/capture_audio_output=false +permissions/capture_secure_video_output=false +permissions/capture_video_output=false +permissions/change_component_enabled_state=false +permissions/change_configuration=false +permissions/change_network_state=false +permissions/change_wifi_multicast_state=false +permissions/change_wifi_state=false +permissions/clear_app_cache=false +permissions/clear_app_user_data=false +permissions/control_location_updates=false +permissions/delete_cache_files=false +permissions/delete_packages=false +permissions/device_power=false +permissions/diagnostic=false +permissions/disable_keyguard=false +permissions/dump=false +permissions/expand_status_bar=false +permissions/factory_test=false +permissions/flashlight=false +permissions/force_back=false +permissions/get_accounts=false +permissions/get_package_size=false +permissions/get_tasks=false +permissions/get_top_activity_info=false +permissions/global_search=false +permissions/hardware_test=false +permissions/inject_events=false +permissions/install_location_provider=false +permissions/install_packages=false +permissions/install_shortcut=false +permissions/internal_system_window=false +permissions/internet=false +permissions/kill_background_processes=false +permissions/location_hardware=false +permissions/manage_accounts=false +permissions/manage_app_tokens=false +permissions/manage_documents=false +permissions/manage_external_storage=false +permissions/master_clear=false +permissions/media_content_control=false +permissions/modify_audio_settings=false +permissions/modify_phone_state=false +permissions/mount_format_filesystems=false +permissions/mount_unmount_filesystems=false +permissions/nfc=false +permissions/persistent_activity=false +permissions/process_outgoing_calls=false +permissions/read_calendar=false +permissions/read_call_log=false +permissions/read_contacts=false +permissions/read_external_storage=false +permissions/read_frame_buffer=false +permissions/read_history_bookmarks=false +permissions/read_input_state=false +permissions/read_logs=false +permissions/read_phone_state=false +permissions/read_profile=false +permissions/read_sms=false +permissions/read_social_stream=false +permissions/read_sync_settings=false +permissions/read_sync_stats=false +permissions/read_user_dictionary=false +permissions/reboot=false +permissions/receive_boot_completed=false +permissions/receive_mms=false +permissions/receive_sms=false +permissions/receive_wap_push=false +permissions/record_audio=false +permissions/reorder_tasks=false +permissions/restart_packages=false +permissions/send_respond_via_message=false +permissions/send_sms=false +permissions/set_activity_watcher=false +permissions/set_alarm=false +permissions/set_always_finish=false +permissions/set_animation_scale=false +permissions/set_debug_app=false +permissions/set_orientation=false +permissions/set_pointer_speed=false +permissions/set_preferred_applications=false +permissions/set_process_limit=false +permissions/set_time=false +permissions/set_time_zone=false +permissions/set_wallpaper=false +permissions/set_wallpaper_hints=false +permissions/signal_persistent_processes=false +permissions/status_bar=false +permissions/subscribed_feeds_read=false +permissions/subscribed_feeds_write=false +permissions/system_alert_window=false +permissions/transmit_ir=false +permissions/uninstall_shortcut=false +permissions/update_device_stats=false +permissions/use_credentials=false +permissions/use_sip=false +permissions/vibrate=false +permissions/wake_lock=false +permissions/write_apn_settings=false +permissions/write_calendar=false +permissions/write_call_log=false +permissions/write_contacts=false +permissions/write_external_storage=false +permissions/write_gservices=false +permissions/write_history_bookmarks=false +permissions/write_profile=false +permissions/write_secure_settings=false +permissions/write_settings=false +permissions/write_sms=false +permissions/write_social_stream=false +permissions/write_sync_settings=false +permissions/write_user_dictionary=false diff --git a/plugins/hello_gdextension/demo/icon.svg b/plugins/hello_gdextension/demo/icon.svg new file mode 100644 index 0000000..b370ceb --- /dev/null +++ b/plugins/hello_gdextension/demo/icon.svg @@ -0,0 +1 @@ +<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg> diff --git a/plugins/hello_gdextension/demo/main.gd b/plugins/hello_gdextension/demo/main.gd new file mode 100644 index 0000000..c457271 --- /dev/null +++ b/plugins/hello_gdextension/demo/main.gd @@ -0,0 +1,5 @@ +extends Node2D + +func _ready(): + var hello_gdextension_plugin = preload("res://addons/hello_gdextension_plugin/interface/hello_gdextension_plugin.gd").new() + hello_gdextension_plugin.add_gdexample_node(get_path()) diff --git a/plugins/hello_gdextension/demo/main.tscn b/plugins/hello_gdextension/demo/main.tscn new file mode 100644 index 0000000..1ce2c1c --- /dev/null +++ b/plugins/hello_gdextension/demo/main.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=3 format=3 uid="uid://7wuhp5udocan"] + +[ext_resource type="Texture2D" uid="uid://ci0rbwt8c67dx" path="res://icon.svg" id="1_ibk70"] +[ext_resource type="Script" path="res://main.gd" id="1_uldmm"] + +[node name="Main" type="Node2D"] +script = ExtResource("1_uldmm") + +[node name="GDExample" type="GDExample" parent="."] +position = Vector2(2.52749, 8.48129) +texture = ExtResource("1_ibk70") +centered = false diff --git a/plugins/hello_gdextension/demo/project.godot b/plugins/hello_gdextension/demo/project.godot new file mode 100644 index 0000000..c19424e --- /dev/null +++ b/plugins/hello_gdextension/demo/project.godot @@ -0,0 +1,30 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="Hello Gdextension" +run/main_scene="res://main.tscn" +config/features=PackedStringArray("4.2", "GL Compatibility") +config/icon="res://icon.svg" + +[debug] + +settings/stdout/verbose_stdout=true + +[editor_plugins] + +enabled=PackedStringArray("res://addons/hello_gdextension_plugin/plugin.cfg") + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" +textures/vram_compression/import_etc2_astc=true |