Merge pull request #110863 from kisg/libgodot_migeran_core
LibGodot: Core - Build Godot Engine as a Library
This commit is contained in:
commit
7c033002b0
23 changed files with 752 additions and 16 deletions
|
|
@ -39,6 +39,14 @@
|
|||
Loads an extension by absolute file path. The [param path] needs to point to a valid [GDExtension]. Returns [constant LOAD_STATUS_OK] if successful.
|
||||
</description>
|
||||
</method>
|
||||
<method name="load_extension_from_function">
|
||||
<return type="int" enum="GDExtensionManager.LoadStatus" />
|
||||
<param index="0" name="path" type="String" />
|
||||
<param index="1" name="init_func" type="const GDExtensionInitializationFunction*" />
|
||||
<description>
|
||||
Loads the extension already in address space via the given path and initialization function. The [param path] needs to be unique and start with [code]"libgodot://"[/code]. Returns [constant LOAD_STATUS_OK] if successful.
|
||||
</description>
|
||||
</method>
|
||||
<method name="reload_extension">
|
||||
<return type="int" enum="GDExtensionManager.LoadStatus" />
|
||||
<param index="0" name="path" type="String" />
|
||||
|
|
|
|||
55
doc/classes/GodotInstance.xml
Normal file
55
doc/classes/GodotInstance.xml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="GodotInstance" inherits="Object" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<brief_description>
|
||||
Provides access to an embedded Godot instance.
|
||||
</brief_description>
|
||||
<description>
|
||||
GodotInstance represents a running Godot instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API [code]libgodot_create_godot_instance[/code]. Only one may be created per process.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="focus_in">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Notifies the instance that it is now in focus.
|
||||
</description>
|
||||
</method>
|
||||
<method name="focus_out">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Notifies the instance that it is now not in focus.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_started">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if this instance has been fully started.
|
||||
</description>
|
||||
</method>
|
||||
<method name="iteration">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Runs a single iteration of the main loop. Returns [code]true[/code] if the engine is attempting to quit.
|
||||
</description>
|
||||
</method>
|
||||
<method name="pause">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Notifies the instance that it is going to be paused.
|
||||
</description>
|
||||
</method>
|
||||
<method name="resume">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Notifies the instance that it is being resumed.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Finishes this instance's startup sequence. Returns [code]true[/code] on success.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
</class>
|
||||
Loading…
Add table
Add a link
Reference in a new issue