Clipmap-based terrain system with snow deformation for Frozen Bulgur
  • C++ 83.4%
  • Python 6%
  • CMake 5.7%
  • C 4.9%
Find a file
Robert Kossessa e5283ab1d3
Some checks failed
Build GDExtension / build (double, map[arch:arm32 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm32 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm32 os:ubuntu-22.04-arm platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm32 os:ubuntu-22.04-arm platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:macos-latest platform:ios], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:macos-latest platform:ios], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:ubuntu-22.04-arm platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:ubuntu-22.04-arm platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:windows-latest platform:windows], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:arm64 os:windows-latest platform:windows], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:universal os:macos-latest platform:macos], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:universal os:macos-latest platform:macos], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:wasm32 os:ubuntu-22.04 platform:web], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:wasm32 os:ubuntu-22.04 platform:web], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_32 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_32 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_32 os:ubuntu-22.04 platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_32 os:ubuntu-22.04 platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_32 os:windows-latest platform:windows], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_32 os:windows-latest platform:windows], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_64 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_64 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_64 os:ubuntu-22.04 platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_64 os:ubuntu-22.04 platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_64 os:windows-latest platform:windows], template_debug) (push) Has been cancelled
Build GDExtension / build (double, map[arch:x86_64 os:windows-latest platform:windows], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm32 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm32 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm32 os:ubuntu-22.04-arm platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm32 os:ubuntu-22.04-arm platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:macos-latest platform:ios], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:macos-latest platform:ios], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:ubuntu-22.04-arm platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:ubuntu-22.04-arm platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:windows-latest platform:windows], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:arm64 os:windows-latest platform:windows], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:universal os:macos-latest platform:macos], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:universal os:macos-latest platform:macos], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:wasm32 os:ubuntu-22.04 platform:web], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:wasm32 os:ubuntu-22.04 platform:web], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_32 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_32 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_32 os:ubuntu-22.04 platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_32 os:ubuntu-22.04 platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_32 os:windows-latest platform:windows], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_32 os:windows-latest platform:windows], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_64 os:ubuntu-22.04 platform:android], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_64 os:ubuntu-22.04 platform:android], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_64 os:ubuntu-22.04 platform:linux], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_64 os:ubuntu-22.04 platform:linux], template_release) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_64 os:windows-latest platform:windows], template_debug) (push) Has been cancelled
Build GDExtension / build (single, map[arch:x86_64 os:windows-latest platform:windows], template_release) (push) Has been cancelled
Build GDExtension / merge (push) Has been cancelled
FIX: Disable physics interpolation on deformers camera
2026-06-08 20:54:43 +02:00
.github Initial Commit 2025-08-25 14:47:21 +02:00
.vscode Initial Commit 2025-08-25 14:47:21 +02:00
bin FIX: Revert "ADD: Terrain curve property" 2026-02-13 16:26:03 +01:00
build Change example labels 2025-08-25 16:24:12 +02:00
demo FIX: Disable physics interpolation on deformers camera 2026-06-08 20:54:43 +02:00
doc_classes Initial Commit 2025-08-25 14:47:21 +02:00
extern/tracy ADD: tracy profiling (via cmake option PROFILING_ENABLED) 2026-01-22 16:25:07 +01:00
godot-cpp@12db0684b2 UPD: godot-cpp 2025-10-01 11:04:08 +02:00
src FIX: Revert "ADD: Terrain curve property" 2026-02-13 16:26:03 +01:00
.clang-format Initial Commit 2025-08-25 14:47:21 +02:00
.editorconfig Initial Commit 2025-08-25 14:47:21 +02:00
.gdignore Initial Commit 2025-08-25 14:47:21 +02:00
.gitattributes Initial Commit 2025-08-25 14:47:21 +02:00
.gitignore UPD: Ignore temp DLLs 2025-10-22 14:27:36 +02:00
.gitmodules Working derivative noise terrain + deformation 2025-09-09 16:51:28 +02:00
build_profile.json Initial Commit 2025-08-25 14:47:21 +02:00
CMakeLists.txt ADD: tracy profiling (via cmake option PROFILING_ENABLED) 2026-01-22 16:25:07 +01:00
LICENSE.md Initial Commit 2025-08-25 14:47:21 +02:00
methods.py Initial Commit 2025-08-25 14:47:21 +02:00
README.md Initial Commit 2025-08-25 14:47:21 +02:00
SConstruct FIX: GDExtension binary copy path 2025-09-26 19:15:15 +02:00

godot-cpp template

This repository serves as a quickstart template for GDExtension development with Godot 4.0+.

Contents

  • An empty Godot project (demo/)
  • godot-cpp as a submodule (godot-cpp/)
  • GitHub Issues template (.github/ISSUE_TEMPLATE.yml)
  • GitHub CI/CD workflows to publish your library packages when creating a release (.github/workflows/builds.yml)
  • preconfigured source files for C++ development of the GDExtension (src/)
  • setup to automatically generate .xml files in a doc_classes/ directory to be parsed by Godot as GDExtension built-in documentation

Usage - Template

To use this template, log in to GitHub and click the green "Use this template" button at the top of the repository page. This will let you create a copy of this repository with a clean git history. Make sure you clone the correct branch as these are configured for development of their respective Godot development branches and differ from each other. Refer to the docs to see what changed between the versions.

For getting started after cloning your own copy to your local machine, you should:

  • initialize the godot-cpp git submodule via git submodule update --init
  • change the name of your library
    • change the name of the compiled library file inside the SConstruct file by modifying the libname string.
    • change the pathnames of the to be loaded library name inside the demo/bin/example.gdextension file. By replacing libgdexample to the name specified in your SConstruct file.
    • change the name of the demo/bin/example.gdextension file
  • change the entry_symbol string inside your demo/bin/your-extension.gdextension file to be configured for your GDExtension name. This should be the same as the GDExtensionBool GDE_EXPORT external C function. As the name suggests, this sets the entry function for your GDExtension to be loaded by the Godot editors C API.
  • register the classes you want Godot to interact with inside the register_types.cpp file in the initialization method (here initialize_gdextension_types) in the syntax GDREGISTER_CLASS(CLASS-NAME);.

Configuring an IDE

You can develop your own extension with any text editor and by invoking scons on the command line, but if you want to work with an IDE (Integrated Development Environment), you can use a compilation database file called compile_commands.json. Most IDEs should automatically identify this file, and self-configure appropriately. To generate the database file, you can run one of the following commands in the project root directory:

# Generate compile_commands.json while compiling
scons compiledb=yes

# Generate compile_commands.json without compiling
scons compiledb=yes compile_commands.json

Usage - Actions

This repository comes with a GitHub action that builds the GDExtension for cross-platform use. It triggers automatically for each pushed change. You can find and edit it in builds.yml. After a workflow run is complete, you can find the file godot-cpp-template.zip on the Actions tab on GitHub.