mirror of
https://github.com/godotengine/godot-cpp.git
synced 2025-12-31 01:48:45 +03:00
gdextension: Sync with upstream commit 46c495ca21f40f57a7fb9c7cde6143738f1652d4 (4.5-beta1)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -805,6 +805,21 @@ typedef struct {
|
||||
const char *string; // (e.g. "Godot v3.1.4.stable.official.mono")
|
||||
} GDExtensionGodotVersion2;
|
||||
|
||||
/* Called when starting the main loop. */
|
||||
typedef void (*GDExtensionMainLoopStartupCallback)();
|
||||
|
||||
/* Called when shutting down the main loop. */
|
||||
typedef void (*GDExtensionMainLoopShutdownCallback)();
|
||||
|
||||
/* Called for every frame iteration of the main loop. */
|
||||
typedef void (*GDExtensionMainLoopFrameCallback)();
|
||||
|
||||
typedef struct {
|
||||
GDExtensionMainLoopStartupCallback startup_func;
|
||||
GDExtensionMainLoopShutdownCallback shutdown_func;
|
||||
GDExtensionMainLoopFrameCallback frame_func;
|
||||
} GDExtensionMainLoopCallbacks;
|
||||
|
||||
/**
|
||||
* @name get_godot_version
|
||||
* @since 4.1
|
||||
@@ -2386,6 +2401,7 @@ typedef GDExtensionVariantPtr (*GDExtensionInterfaceArrayOperatorIndexConst)(GDE
|
||||
/**
|
||||
* @name array_ref
|
||||
* @since 4.1
|
||||
* @deprecated in Godot 4.5. use `Array::operator=` instead.
|
||||
*
|
||||
* Sets an Array to be a reference to another Array object.
|
||||
*
|
||||
@@ -3131,6 +3147,17 @@ typedef void (*GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8CharsAndLen)(const
|
||||
*/
|
||||
typedef void (*GDExtensionInterfaceEditorRegisterGetClassesUsedCallback)(GDExtensionClassLibraryPtr p_library, GDExtensionEditorGetClassesUsedCallback p_callback);
|
||||
|
||||
/**
|
||||
* @name register_main_loop_callbacks
|
||||
* @since 4.5
|
||||
*
|
||||
* Registers callbacks to be called at different phases of the main loop.
|
||||
*
|
||||
* @param p_library A pointer the library received by the GDExtension's entry point function.
|
||||
* @param p_callback A pointer to the structure that contains the callbacks.
|
||||
*/
|
||||
typedef void (*GDExtensionInterfaceRegisterMainLoopCallbacks)(GDExtensionClassLibraryPtr p_library, const GDExtensionMainLoopCallbacks *p_callbacks);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user