Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | nikz |
Hi folks,
im trying out a bit godot 4 extensions and I’m facing a bit of trouble with constructing a registered godot extension class.
I’m first registering the extension class by using the method
void (*classdb_register_extension_class)(const GDNativeExtensionClassLibraryPtr p_library, const GDNativeStringNamePtr p_class_name, const GDNativeStringNamePtr p_parent_class_name, const GDNativeExtensionClassCreationInfo *p_extension_funcs);.
This seems to work and runs through fine.
For constructing the class, I’m first calling
GDNativeObjectPtr (*classdb_construct_object)(const GDNativeStringNamePtr p_classname);
But here I’m running into trouble that the method
typedef GDNativeObjectPtr (*GDNativeExtensionClassCreateInstance)(void *p_userdata);
, I had to implemented for GDNativeExtensionClassCreationInfo
is being called.
But I don’t creally knwo where I should get the GDNativeObjectPtr
from, as that’s the reason, I call the constructor in the first place. Does anyone have an idea on how to handle this or maybe a link to some documentation or tutorial.
Thank you in advance, if I should provide more information, please let me know