From e5cfb30517dd4734469ce7bade19665780d704cc Mon Sep 17 00:00:00 2001 From: somebody_master Date: Sun, 5 Feb 2023 13:37:24 +0100 Subject: [PATCH] Commit inicial Signed-off-by: somebody_master --- .gitattributes | 2 ++ .gitignore | 5 +++++ .gitmodules | 3 +++ gdextension/SConstruct | 13 +++++++++++++ gdextension/godot-cpp | 1 + gdextension/src/test.cpp | 1 + gdextension/src/test.h | 0 icon.svg | 1 + icon.svg.import | 37 +++++++++++++++++++++++++++++++++++++ project.godot | 15 +++++++++++++++ 10 files changed, 78 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 gdextension/SConstruct create mode 160000 gdextension/godot-cpp create mode 100644 gdextension/src/test.cpp create mode 100644 gdextension/src/test.h create mode 100644 icon.svg create mode 100644 icon.svg.import create mode 100644 project.godot diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c02faf --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Godot 4+ specific ignores +.godot/ +.vscode +.ccls-cache +gdextension/.sconsign.dblite diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..950311d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "gdextension/godot-cpp"] + path = gdextension/godot-cpp + url = https://github.com/godotengine/godot-cpp diff --git a/gdextension/SConstruct b/gdextension/SConstruct new file mode 100644 index 0000000..4a3b887 --- /dev/null +++ b/gdextension/SConstruct @@ -0,0 +1,13 @@ +env = SConscript("godot-cpp/SConstruct") + +env.Append(CPPPATH="src/") + +src = Glob("src/*.cpp") + +if env["platform"] == "linux": + libpath = "../libtest{}{}".format( env["suffix"], env["SHLIBSUFFIX"] ) + sharedlib = env.SharedLibrary(libpath, src) +elif env["platform"] == "windows": + pass +elif env["platform"] == "android": + pass \ No newline at end of file diff --git a/gdextension/godot-cpp b/gdextension/godot-cpp new file mode 160000 index 0000000..f2b9752 --- /dev/null +++ b/gdextension/godot-cpp @@ -0,0 +1 @@ +Subproject commit f2b97528c1369a6c40f3749817d00e4633afc43e diff --git a/gdextension/src/test.cpp b/gdextension/src/test.cpp new file mode 100644 index 0000000..91ab081 --- /dev/null +++ b/gdextension/src/test.cpp @@ -0,0 +1 @@ +#include "test.h" \ No newline at end of file diff --git a/gdextension/src/test.h b/gdextension/src/test.h new file mode 100644 index 0000000..e69de29 diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..adc26df --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..8436a78 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bprhtq202pk2y" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..5a72a36 --- /dev/null +++ b/project.godot @@ -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="TestGDExtension" +config/features=PackedStringArray("4.0", "Forward Plus") +config/icon="res://icon.svg"