GDNative: New core API

This API now uses the discovery functions present in Variant instead of
wrapping every built-in function. Users now need to query for function
pointers and use those.
This commit is contained in:
George Marques
2021-01-25 09:28:02 -03:00
parent d39f6386ce
commit 030d1d6a17
50 changed files with 5929 additions and 17366 deletions
@@ -703,12 +703,12 @@ void GDAPI godot_glyph_set_offset(godot_glyph *p_self, const godot_vector2 *p_of
self->y_off = offset->y;
}
godot_real GDAPI godot_glyph_get_advance(const godot_glyph *p_self) {
godot_float GDAPI godot_glyph_get_advance(const godot_glyph *p_self) {
const TextServer::Glyph *self = (const TextServer::Glyph *)p_self;
return self->advance;
}
void GDAPI godot_glyph_set_advance(godot_glyph *p_self, godot_real p_advance) {
void GDAPI godot_glyph_set_advance(godot_glyph *p_self, godot_float p_advance) {
TextServer::Glyph *self = (TextServer::Glyph *)p_self;
self->advance = p_advance;
}