mirror of
https://github.com/godotengine/gdnative-demos.git
synced 2026-01-04 22:10:30 +03:00
Improve outdated README files and improve simple C++ demo
This commit is contained in:
21
c/README.md
Normal file
21
c/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# C demos
|
||||
|
||||
These demos show how to use the GDNative C bindings.
|
||||
|
||||
Dependencies:
|
||||
* You need [Godot headers](https://github.com/godotengine/godot-headers),
|
||||
this is now a Git submodule of this repo.
|
||||
* `clang`, `gcc`, or any decent C compiler that's C11 compatible.
|
||||
|
||||
## Compiling
|
||||
|
||||
For each of the C demos, you can use SCons to compile the library:
|
||||
|
||||
```
|
||||
scons platform=PLATFORM
|
||||
```
|
||||
|
||||
Where PLATFORM is: `windows`, `linuxbsd`, or `macos`.
|
||||
|
||||
This creates the file `libsimple` in the respective
|
||||
subfolders in the `project/gdnative` directory.
|
||||
Reference in New Issue
Block a user