libgodot_create_godot_instance method
GDExtensionObjectPtr
libgodot_create_godot_instance(
- int p_argc,
- Pointer<
Pointer< p_argv,Char> > - GDExtensionInitializationFunction p_init_func,
- InvokeCallbackFunction$1 p_async_func,
- ExecutorData p_async_data,
- InvokeCallbackFunction$1 p_sync_func,
- ExecutorData p_sync_data,
@name libgodot_create_godot_instance @since 4.4
Creates a new Godot instance.
@param p_argc The number of command line arguments. @param p_argv The C-style array of command line arguments. @param p_init_func GDExtension initialization function of the host application.
@return A pointer to created \ref GodotInstance GDExtension object or nullptr if there was an error.
Implementation
GDExtensionObjectPtr libgodot_create_godot_instance(
int p_argc,
ffi.Pointer<ffi.Pointer<ffi.Char>> p_argv,
GDExtensionInitializationFunction p_init_func,
InvokeCallbackFunction$1 p_async_func,
ExecutorData p_async_data,
InvokeCallbackFunction$1 p_sync_func,
ExecutorData p_sync_data,
) {
return _libgodot_create_godot_instance(
p_argc,
p_argv,
p_init_func,
p_async_func,
p_async_data,
p_sync_func,
p_sync_data,
);
}