-
Notifications
You must be signed in to change notification settings - Fork 1
License
ytnuf/gdextension_example
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An example project that uses GDExtension. This is adapted from the official example code: https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/gdextension_cpp_example.html But the project uses CMake instead of Scons. To build you would need: - git (as godot-cpp is a git submodule) - CMake - Python - A backend build system (e.g. Ninja) - Compiler toolset (e.g. GCC) To build run these two commands: cmake -B build cmake --build build If done correctly, you should have a shared library in the build directory. (Do note that the demo project expects the gdextension library to be in the build/ folder) Once done, you can run the demo via the project.godot file. Note that this project is a very minimal example, that doesn't handle many things that would will need in a real project. For another example project that shows how one can use package manager, cmake presets, cross-compilation, sanitisers, compiler warnings, etc: https://github.com/ytnuf/gdextension_example_bullet_shower
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published