Add a instance callback for extensions
This sends the Godot object instance back to the extension so they can keep a pointer for function calls. Incidentally fix argument order on instance bindings callback for free()
This commit is contained in:
parent
4205d907c9
commit
626c0b6905
4 changed files with 8 additions and 5 deletions
|
|
@ -272,6 +272,7 @@ struct ObjectNativeExtension {
|
|||
|
||||
GDNativeExtensionClassCreateInstance create_instance;
|
||||
GDNativeExtensionClassFreeInstance free_instance;
|
||||
GDNativeExtensionClassObjectInstance set_object_instance;
|
||||
GDNativeExtensionClassGetVirtual get_virtual;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue