Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is gdnative_api.json manually ou programmatically generated? #58

Closed
ricardoalcantara opened this issue Oct 29, 2019 · 2 comments
Closed

Comments

@ricardoalcantara
Copy link

I am studying a way to implement the missing built-in methods discussed in this thread. godotengine/godot-cpp#107

@sheepandshepherd
Copy link

The JSON is written manually, but not in this repo. It's copied here from modules/gdnative in the main Godot repository.

The math functions and similar low-level ones shouldn't be added this way, since the C interface prevents inlining them. It's better to use the ones provided by the binding language's standard library. Some of the others are member functions of the relevant classes (JSON, Dictionary, Variant, ...). There might be a few important ones still missing that would be worth adding though

@ricardoalcantara
Copy link
Author

I found a easier way, I just clone the engine source and add it to my include path, I tested clamp and Math::angle_lerp and both has worked so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants