Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/openxr/doc_classes/OpenXRFutureResult.xml
10278 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="OpenXRFutureResult" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3
<brief_description>
4
Result object tracking the asynchronous result of an OpenXR Future object.
5
</brief_description>
6
<description>
7
Result object tracking the asynchronous result of an OpenXR Future object, you can use this object to track the result status.
8
</description>
9
<tutorials>
10
</tutorials>
11
<methods>
12
<method name="cancel_future">
13
<return type="void" />
14
<description>
15
Cancel this future, this will interrupt and stop the asynchronous function.
16
</description>
17
</method>
18
<method name="get_future" qualifiers="const">
19
<return type="int" />
20
<description>
21
Return the [code]XrFutureEXT[/code] value this result relates to.
22
</description>
23
</method>
24
<method name="get_result_value" qualifiers="const">
25
<return type="Variant" />
26
<description>
27
Returns the result value of our asynchronous function (if set by the extension). The type of this result value depends on the function being called. Consult the documentation of the relevant function.
28
</description>
29
</method>
30
<method name="get_status" qualifiers="const">
31
<return type="int" enum="OpenXRFutureResult.ResultStatus" />
32
<description>
33
Returns the status of this result.
34
</description>
35
</method>
36
<method name="set_result_value">
37
<return type="void" />
38
<param index="0" name="result_value" type="Variant" />
39
<description>
40
Stores the result value we expose to the user.
41
[b]Note:[/b] This method should only be called by an OpenXR extension that implements an asynchronous function.
42
</description>
43
</method>
44
</methods>
45
<signals>
46
<signal name="completed">
47
<param index="0" name="result" type="OpenXRFutureResult" />
48
<description>
49
Emitted when the asynchronous function is finished or has been cancelled.
50
</description>
51
</signal>
52
</signals>
53
<constants>
54
<constant name="RESULT_RUNNING" value="0" enum="ResultStatus">
55
The asynchronous function is running.
56
</constant>
57
<constant name="RESULT_FINISHED" value="1" enum="ResultStatus">
58
The asynchronous function has finished.
59
</constant>
60
<constant name="RESULT_CANCELLED" value="2" enum="ResultStatus">
61
The asynchronous function has been cancelled.
62
</constant>
63
</constants>
64
</class>
65
66