turn into addon
parent
0f08efac2d
commit
4102ba4eb9
@ -1 +1,3 @@
|
||||
# gdextension example
|
||||
# gdextension
|
||||
|
||||
Self-contained gdextension template for Godot Engine 4.x
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
[configuration]
|
||||
|
||||
entry_symbol = "example_library_init"
|
||||
|
||||
[libraries]
|
||||
|
||||
macos.debug = "bin/libgdexample.osx.debug.framework"
|
||||
macos.release = "bin/libgdexample.osx.release.framework"
|
||||
windows.debug.x86_64 = "bin/libgdexample.windows.debug.x86_64.dll"
|
||||
windows.release.x86_64 = "bin/libgdexample.windows.release.x86_64.dll"
|
||||
linux.debug.x86_64 = "bin/libgdexample.linux.debug.x86_64.so"
|
||||
linux.release.x86_64 = "bin/libgdexample.linux.release.x86_64.so"
|
||||
linux.debug.arm64 = "bin/libgdexample.linux.debug.arm64.so"
|
||||
linux.release.arm64 = "bin/libgdexample.linux.release.arm64.so"
|
||||
linux.debug.rv64 = "bin/libgdexample.linux.debug.rv64.so"
|
||||
linux.release.rv64 = "bin/libgdexample.linux.release.rv64.so"
|
||||
@ -0,0 +1,6 @@
|
||||
extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
print("Hello GDScript!")
|
||||
# TODO: Static https://github.com/godotengine/godot/issues/61963
|
||||
Example.new().hello_extension()
|
||||
@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://p4prpbgep4um"]
|
||||
|
||||
[ext_resource type="Script" path="res://demo/demo.gd" id="1_6gvlp"]
|
||||
|
||||
[node name="Demo" type="Node"]
|
||||
script = ExtResource( "1_6gvlp" )
|
||||
@ -0,0 +1,15 @@
|
||||
; 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="example"
|
||||
run/main_scene="res://demo/demo.tscn"
|
||||
config/features=PackedStringArray("4.0", "Vulkan Clustered")
|
||||
Loading…
Reference in New Issue