Commit Graph

27 Commits (476a870d6c02957df63f3b961df8823874549de1)

Author SHA1 Message Date
Fabio Alessandrelli f6899e190f Add JavaScript platform support (emcc, wasm).
Includes update to `README.md` with instructions on how to build a
GDNative library for webassembly.
2021-03-11 05:11:13 +01:00
Rémi Verschelde b36df8f86c Rename godot_headers to godot-headers to match upstream rename
Also updated the URLs which were still pointing to the old GitHub org.
2021-02-26 10:07:38 +01:00
Jummit ecf0948f35
Remove semicolons from GDScript example 2020-12-19 18:40:15 +01:00
Marc 0afb66c11a
Merge branch 'master' into fix-android-build 2020-08-23 16:14:16 +01:00
Marc Gilleron 63066f2570 Replace ".os" with ".o" because it is "Object files" on Linux 2020-08-23 15:11:57 +01:00
smeikx d808f04497 fix Android build command in README
Using `*-linux-android29-clang` results in errors, adding `++` fixes this.

Credits go to zhangshiqian1214:
https://github.com/godotengine/godot-cpp/issues/372#issuecomment-596079055
2020-06-30 22:27:13 +02:00
Hugo Locurcio 66521bb416 Improve README
This improves the writing style and adds more information about
compiling for each platform.

This also adds an explicit mention that HTML5 and iOS don't support
GDNative yet.
2020-04-10 10:44:16 +02:00
sheepandshepherd 65295d6c44 Mention rules for using Godot classes in the readme 2019-12-29 22:34:13 +01:00
TGRCDev 7482074779 Android compile fixed for Windows 2019-09-18 11:01:54 -07:00
Jayanth-L 77cde5bb3a Add android support, Update README.md
Compiles and runs fine on Android platform
2019-09-18 10:44:46 -07:00
Olivier FAURE a76df5c7d1
Add instructions to use submodules
Git submodules are a little tricky to use, but are the default
way to go when adding a github project as a dependency in C++.

Add instructions on how to add godot-cpp as a dependency when
working from an existing repository.
2019-03-13 15:56:53 +01:00
Bastiaan Olij fc20fa3fce Implementing clang-format and applying it to all classes 2018-11-24 09:09:41 +11:00
Bastiaan Olij b7ee774a59 Added info about the older branches to the README.md 2018-11-07 21:48:16 +11:00
karroffel 200bf226bf Nativescript 1.1
implemented instance binding data usage

This commit changes the way C++ wrapper classes work.
Previously, wrapper classes were merely wrapper *interfaces*.
They used the `this` pointer to store the actual foreign Godot
Object.

With the NativeScript 1.1 extension it is now possible to have
low-overhead language binding data attached to Objects.

The C++ bindings use that feature to implement *proper* wrappers
and enable regular C++ inheritance usage that way.

Some things might still be buggy and untested, but the C++
SimpleDemo works with those changes.

new and free change, custom free will crash engine, be wary

fix exporting of non-object types

fix free() crash with custom resources

added type tags and safe object casting

fix global type registration order

fix cast_to

changed build system to be more self contained

updated .gitignore

use typeid() for type tags now

fix indentation in bindings generator

remove accidentally added files

fix gitignore

Fixed up registering tool and updated godot_headers

Fix crash when calling String::split/split_floats

Was casting to the wrong object type.
Also adds parse_ints function to String with the same logic

Better warning/error macros

Change gitignore so we get our gen folders

New documentation based on nativescript 1.1

Fixed GODOT_SUBCLASS macro

Preventing crash when function returned null ptr

Adds needed include <typeinfo>

 Solves this issue #168 due to not having the include of typeinfo

Fix compile error of 'WARN_PRINT' and 'ERR_PRINT'.

cannot pass non-trivial object of type 'godot::String' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]

update vector3::distance_to

Remove godot_api.json as its now in the godot_headers submodule (api.json)
2018-11-07 21:23:08 +11:00
Joe Alam 50c9ed60b1 Fix misleading typo regarding generate_bindings 2018-07-20 23:23:49 +01:00
Kowbell 2bed3eeb49 Update README.md to include compilation error fix
A PR and issue were already submitted related to this but they are dead
in the water for other reasons. I needed this fix as well, so I assume this isn't a one-off
error and that this information may be helpful to others.
2018-06-19 20:06:35 -04:00
danielytics 85e73de2e0 adds an example of registering signal with arguments to README 2018-03-07 10:34:25 +00:00
QuentinCaffeino 43f57c7f80 Bindings are generated by default; Replaced generate with regenerate flag; Updated readme 2018-02-25 16:25:42 +01:00
Nickolai Korshunov 00e1b47c6f Updated readme 2018-02-18 15:11:22 +03:00
Dharkael 67a9edba33
README: Enable cpp syntax highlighting 2018-01-29 23:05:42 +01:00
RameshRavone b8946ae829
Update README.md 2018-01-24 14:45:12 +05:30
Ramesh Ravone 50dec32bda
Updated README 2017-10-03 21:18:47 +05:30
Josh Taylor be14fd92ae Fixed typos
Multiple instances of "directory" were misspelled as "director". Fixed plural spellings.
2017-08-04 17:41:25 -04:00
Ramesh Ravone 49b0301b58
Update README.md 2017-07-26 08:50:23 +05:30
Thomas Herzog ba32738ec7 Update README.md 2017-05-30 23:13:48 +02:00
Ramesh Ravone 440a3ffa19
[GDNative] Creating Example library 2017-05-18 16:53:13 +05:30
Karroffel c5a7453a58 Create README.md 2017-03-02 23:50:27 +01:00