libgodot_create_godot_instance method

GDExtensionObjectPtr libgodot_create_godot_instance(
  1. int p_argc,
  2. Pointer<Pointer<Char>> p_argv,
  3. GDExtensionInitializationFunction p_init_func,
  4. InvokeCallbackFunction$1 p_async_func,
  5. ExecutorData p_async_data,
  6. InvokeCallbackFunction$1 p_sync_func,
  7. 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,
  );
}