mirror of
https://github.com/godotengine/gdnative-demos.git
synced 2026-01-01 05:48:13 +03:00
24 lines
640 B
Markdown
24 lines
640 B
Markdown
# C++ demos
|
|
|
|
These demos show how to use the GDNative C++ bindings.
|
|
|
|
Language: [GDNative C++](https://docs.godotengine.org/en/latest/tutorials/scripting/gdnative/index.html)
|
|
|
|
Dependencies:
|
|
* You need [godot-cpp](https://github.com/godotengine/godot-cpp),
|
|
this is now a Git submodule of this repo.
|
|
* `clang`, `gcc`, or any decent C++ compiler that's C++14 compatible.
|
|
|
|
## Compiling
|
|
|
|
For each of the C++ demos, you can use SCons to compile the library:
|
|
|
|
```
|
|
scons platform=PLATFORM
|
|
```
|
|
|
|
Where PLATFORM is: `windows`, `linux`, or `osx`.
|
|
|
|
This creates the file `libsimple` in the respective
|
|
subfolders in the `project/gdnative` directory.
|