class_openxrextensionwrapperextension.rst 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRExtensionWrapperExtension.xml.
  6. .. _class_OpenXRExtensionWrapperExtension:
  7. OpenXRExtensionWrapperExtension
  8. ===============================
  9. **Inherits:** :ref:`Object<class_Object>`
  10. Allows clients to implement OpenXR extensions with GDExtension.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **OpenXRExtensionWrapperExtension** allows clients to implement OpenXR extensions with GDExtension. The extension should be registered with :ref:`register_extension_wrapper<class_OpenXRExtensionWrapperExtension_method_register_extension_wrapper>`.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`_get_composition_layer<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer>`\ (\ index\: :ref:`int<class_int>`\ ) |virtual| |
  22. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`_get_composition_layer_count<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer_count>`\ (\ ) |virtual| |
  24. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`_get_composition_layer_order<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer_order>`\ (\ index\: :ref:`int<class_int>`\ ) |virtual| |
  26. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`Dictionary<class_Dictionary>` | :ref:`_get_requested_extensions<class_OpenXRExtensionWrapperExtension_private_method__get_requested_extensions>`\ (\ ) |virtual| |
  28. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`_get_suggested_tracker_names<class_OpenXRExtensionWrapperExtension_private_method__get_suggested_tracker_names>`\ (\ ) |virtual| |
  30. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`_get_viewport_composition_layer_extension_properties<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_properties>`\ (\ ) |virtual| |
  32. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`Dictionary<class_Dictionary>` | :ref:`_get_viewport_composition_layer_extension_property_defaults<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_property_defaults>`\ (\ ) |virtual| |
  34. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | |void| | :ref:`_on_before_instance_created<class_OpenXRExtensionWrapperExtension_private_method__on_before_instance_created>`\ (\ ) |virtual| |
  36. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`bool<class_bool>` | :ref:`_on_event_polled<class_OpenXRExtensionWrapperExtension_private_method__on_event_polled>`\ (\ event\: ``const void*``\ ) |virtual| |
  38. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | |void| | :ref:`_on_instance_created<class_OpenXRExtensionWrapperExtension_private_method__on_instance_created>`\ (\ instance\: :ref:`int<class_int>`\ ) |virtual| |
  40. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | |void| | :ref:`_on_instance_destroyed<class_OpenXRExtensionWrapperExtension_private_method__on_instance_destroyed>`\ (\ ) |virtual| |
  42. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | |void| | :ref:`_on_main_swapchains_created<class_OpenXRExtensionWrapperExtension_private_method__on_main_swapchains_created>`\ (\ ) |virtual| |
  44. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | |void| | :ref:`_on_post_draw_viewport<class_OpenXRExtensionWrapperExtension_private_method__on_post_draw_viewport>`\ (\ viewport\: :ref:`RID<class_RID>`\ ) |virtual| |
  46. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | |void| | :ref:`_on_pre_draw_viewport<class_OpenXRExtensionWrapperExtension_private_method__on_pre_draw_viewport>`\ (\ viewport\: :ref:`RID<class_RID>`\ ) |virtual| |
  48. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | |void| | :ref:`_on_pre_render<class_OpenXRExtensionWrapperExtension_private_method__on_pre_render>`\ (\ ) |virtual| |
  50. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | |void| | :ref:`_on_process<class_OpenXRExtensionWrapperExtension_private_method__on_process>`\ (\ ) |virtual| |
  52. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | |void| | :ref:`_on_register_metadata<class_OpenXRExtensionWrapperExtension_private_method__on_register_metadata>`\ (\ ) |virtual| |
  54. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | |void| | :ref:`_on_session_created<class_OpenXRExtensionWrapperExtension_private_method__on_session_created>`\ (\ session\: :ref:`int<class_int>`\ ) |virtual| |
  56. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | |void| | :ref:`_on_session_destroyed<class_OpenXRExtensionWrapperExtension_private_method__on_session_destroyed>`\ (\ ) |virtual| |
  58. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | |void| | :ref:`_on_state_exiting<class_OpenXRExtensionWrapperExtension_private_method__on_state_exiting>`\ (\ ) |virtual| |
  60. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | |void| | :ref:`_on_state_focused<class_OpenXRExtensionWrapperExtension_private_method__on_state_focused>`\ (\ ) |virtual| |
  62. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | |void| | :ref:`_on_state_idle<class_OpenXRExtensionWrapperExtension_private_method__on_state_idle>`\ (\ ) |virtual| |
  64. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | |void| | :ref:`_on_state_loss_pending<class_OpenXRExtensionWrapperExtension_private_method__on_state_loss_pending>`\ (\ ) |virtual| |
  66. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | |void| | :ref:`_on_state_ready<class_OpenXRExtensionWrapperExtension_private_method__on_state_ready>`\ (\ ) |virtual| |
  68. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | |void| | :ref:`_on_state_stopping<class_OpenXRExtensionWrapperExtension_private_method__on_state_stopping>`\ (\ ) |virtual| |
  70. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | |void| | :ref:`_on_state_synchronized<class_OpenXRExtensionWrapperExtension_private_method__on_state_synchronized>`\ (\ ) |virtual| |
  72. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | |void| | :ref:`_on_state_visible<class_OpenXRExtensionWrapperExtension_private_method__on_state_visible>`\ (\ ) |virtual| |
  74. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | |void| | :ref:`_on_viewport_composition_layer_destroyed<class_OpenXRExtensionWrapperExtension_private_method__on_viewport_composition_layer_destroyed>`\ (\ layer\: ``const void*``\ ) |virtual| |
  76. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`int<class_int>` | :ref:`_set_android_surface_swapchain_create_info_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_android_surface_swapchain_create_info_and_get_next_pointer>`\ (\ property_values\: :ref:`Dictionary<class_Dictionary>`, next_pointer\: ``void*``\ ) |virtual| |
  78. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`int<class_int>` | :ref:`_set_hand_joint_locations_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_hand_joint_locations_and_get_next_pointer>`\ (\ hand_index\: :ref:`int<class_int>`, next_pointer\: ``void*``\ ) |virtual| |
  80. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | :ref:`int<class_int>` | :ref:`_set_instance_create_info_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_instance_create_info_and_get_next_pointer>`\ (\ next_pointer\: ``void*``\ ) |virtual| |
  82. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | :ref:`int<class_int>` | :ref:`_set_session_create_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_session_create_and_get_next_pointer>`\ (\ next_pointer\: ``void*``\ ) |virtual| |
  84. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | :ref:`int<class_int>` | :ref:`_set_swapchain_create_info_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_swapchain_create_info_and_get_next_pointer>`\ (\ next_pointer\: ``void*``\ ) |virtual| |
  86. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | :ref:`int<class_int>` | :ref:`_set_system_properties_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_system_properties_and_get_next_pointer>`\ (\ next_pointer\: ``void*``\ ) |virtual| |
  88. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | :ref:`int<class_int>` | :ref:`_set_viewport_composition_layer_and_get_next_pointer<class_OpenXRExtensionWrapperExtension_private_method__set_viewport_composition_layer_and_get_next_pointer>`\ (\ layer\: ``const void*``, property_values\: :ref:`Dictionary<class_Dictionary>`, next_pointer\: ``void*``\ ) |virtual| |
  90. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | :ref:`OpenXRAPIExtension<class_OpenXRAPIExtension>` | :ref:`get_openxr_api<class_OpenXRExtensionWrapperExtension_method_get_openxr_api>`\ (\ ) |
  92. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | |void| | :ref:`register_extension_wrapper<class_OpenXRExtensionWrapperExtension_method_register_extension_wrapper>`\ (\ ) |
  94. +------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. .. rst-class:: classref-section-separator
  96. ----
  97. .. rst-class:: classref-descriptions-group
  98. Method Descriptions
  99. -------------------
  100. .. _class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer:
  101. .. rst-class:: classref-method
  102. :ref:`int<class_int>` **_get_composition_layer**\ (\ index\: :ref:`int<class_int>`\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer>`
  103. Returns a pointer to an ``XrCompositionLayerBaseHeader`` struct to provide the given composition layer.
  104. This will only be called if the extension previously registered itself with :ref:`OpenXRAPIExtension.register_composition_layer_provider<class_OpenXRAPIExtension_method_register_composition_layer_provider>`.
  105. .. rst-class:: classref-item-separator
  106. ----
  107. .. _class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer_count:
  108. .. rst-class:: classref-method
  109. :ref:`int<class_int>` **_get_composition_layer_count**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer_count>`
  110. Returns the number of composition layers this extension wrapper provides via :ref:`_get_composition_layer<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer>`.
  111. This will only be called if the extension previously registered itself with :ref:`OpenXRAPIExtension.register_composition_layer_provider<class_OpenXRAPIExtension_method_register_composition_layer_provider>`.
  112. .. rst-class:: classref-item-separator
  113. ----
  114. .. _class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer_order:
  115. .. rst-class:: classref-method
  116. :ref:`int<class_int>` **_get_composition_layer_order**\ (\ index\: :ref:`int<class_int>`\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer_order>`
  117. Returns an integer that will be used to sort the given composition layer provided via :ref:`_get_composition_layer<class_OpenXRExtensionWrapperExtension_private_method__get_composition_layer>`. Lower numbers will move the layer to the front of the list, and higher numbers to the end. The default projection layer has an order of ``0``, so layers provided by this method should probably be above or below (but not exactly) ``0``.
  118. This will only be called if the extension previously registered itself with :ref:`OpenXRAPIExtension.register_composition_layer_provider<class_OpenXRAPIExtension_method_register_composition_layer_provider>`.
  119. .. rst-class:: classref-item-separator
  120. ----
  121. .. _class_OpenXRExtensionWrapperExtension_private_method__get_requested_extensions:
  122. .. rst-class:: classref-method
  123. :ref:`Dictionary<class_Dictionary>` **_get_requested_extensions**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_requested_extensions>`
  124. Returns a :ref:`Dictionary<class_Dictionary>` of OpenXR extensions related to this extension. The :ref:`Dictionary<class_Dictionary>` should contain the name of the extension, mapped to a ``bool *`` cast to an integer:
  125. - If the ``bool *`` is a ``nullptr`` this extension is mandatory.
  126. - If the ``bool *`` points to a boolean, the boolean will be updated to ``true`` if the extension is enabled.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_OpenXRExtensionWrapperExtension_private_method__get_suggested_tracker_names:
  130. .. rst-class:: classref-method
  131. :ref:`PackedStringArray<class_PackedStringArray>` **_get_suggested_tracker_names**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_suggested_tracker_names>`
  132. Returns a :ref:`PackedStringArray<class_PackedStringArray>` of positional tracker names that are used within the extension wrapper.
  133. .. rst-class:: classref-item-separator
  134. ----
  135. .. _class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_properties:
  136. .. rst-class:: classref-method
  137. :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **_get_viewport_composition_layer_extension_properties**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_properties>`
  138. Gets an array of :ref:`Dictionary<class_Dictionary>`\ s that represent properties, just like :ref:`Object._get_property_list<class_Object_private_method__get_property_list>`, that will be added to :ref:`OpenXRCompositionLayer<class_OpenXRCompositionLayer>` nodes.
  139. .. rst-class:: classref-item-separator
  140. ----
  141. .. _class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_property_defaults:
  142. .. rst-class:: classref-method
  143. :ref:`Dictionary<class_Dictionary>` **_get_viewport_composition_layer_extension_property_defaults**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_property_defaults>`
  144. Gets a :ref:`Dictionary<class_Dictionary>` containing the default values for the properties returned by :ref:`_get_viewport_composition_layer_extension_properties<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_properties>`.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_OpenXRExtensionWrapperExtension_private_method__on_before_instance_created:
  148. .. rst-class:: classref-method
  149. |void| **_on_before_instance_created**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_before_instance_created>`
  150. Called before the OpenXR instance is created.
  151. .. rst-class:: classref-item-separator
  152. ----
  153. .. _class_OpenXRExtensionWrapperExtension_private_method__on_event_polled:
  154. .. rst-class:: classref-method
  155. :ref:`bool<class_bool>` **_on_event_polled**\ (\ event\: ``const void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_event_polled>`
  156. Called when there is an OpenXR event to process. When implementing, return ``true`` if the event was handled, return ``false`` otherwise.
  157. .. rst-class:: classref-item-separator
  158. ----
  159. .. _class_OpenXRExtensionWrapperExtension_private_method__on_instance_created:
  160. .. rst-class:: classref-method
  161. |void| **_on_instance_created**\ (\ instance\: :ref:`int<class_int>`\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_instance_created>`
  162. Called right after the OpenXR instance is created.
  163. .. rst-class:: classref-item-separator
  164. ----
  165. .. _class_OpenXRExtensionWrapperExtension_private_method__on_instance_destroyed:
  166. .. rst-class:: classref-method
  167. |void| **_on_instance_destroyed**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_instance_destroyed>`
  168. Called right before the OpenXR instance is destroyed.
  169. .. rst-class:: classref-item-separator
  170. ----
  171. .. _class_OpenXRExtensionWrapperExtension_private_method__on_main_swapchains_created:
  172. .. rst-class:: classref-method
  173. |void| **_on_main_swapchains_created**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_main_swapchains_created>`
  174. Called right after the main swapchains are (re)created.
  175. .. rst-class:: classref-item-separator
  176. ----
  177. .. _class_OpenXRExtensionWrapperExtension_private_method__on_post_draw_viewport:
  178. .. rst-class:: classref-method
  179. |void| **_on_post_draw_viewport**\ (\ viewport\: :ref:`RID<class_RID>`\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_post_draw_viewport>`
  180. Called right after the given viewport is rendered.
  181. \ **Note:** The draw commands might only be queued at this point, not executed.
  182. .. rst-class:: classref-item-separator
  183. ----
  184. .. _class_OpenXRExtensionWrapperExtension_private_method__on_pre_draw_viewport:
  185. .. rst-class:: classref-method
  186. |void| **_on_pre_draw_viewport**\ (\ viewport\: :ref:`RID<class_RID>`\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_pre_draw_viewport>`
  187. Called right before the given viewport is rendered.
  188. .. rst-class:: classref-item-separator
  189. ----
  190. .. _class_OpenXRExtensionWrapperExtension_private_method__on_pre_render:
  191. .. rst-class:: classref-method
  192. |void| **_on_pre_render**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_pre_render>`
  193. Called right before the XR viewports begin their rendering step.
  194. .. rst-class:: classref-item-separator
  195. ----
  196. .. _class_OpenXRExtensionWrapperExtension_private_method__on_process:
  197. .. rst-class:: classref-method
  198. |void| **_on_process**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_process>`
  199. Called as part of the OpenXR process handling. This happens right before general and physics processing steps of the main loop. During this step controller data is queried and made available to game logic.
  200. .. rst-class:: classref-item-separator
  201. ----
  202. .. _class_OpenXRExtensionWrapperExtension_private_method__on_register_metadata:
  203. .. rst-class:: classref-method
  204. |void| **_on_register_metadata**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_register_metadata>`
  205. Allows extensions to register additional controller metadata. This function is called even when the OpenXR API is not constructed as the metadata needs to be available to the editor.
  206. Extensions should also provide metadata regardless of whether they are supported on the host system. The controller data is used to setup action maps for users who may have access to the relevant hardware.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_OpenXRExtensionWrapperExtension_private_method__on_session_created:
  210. .. rst-class:: classref-method
  211. |void| **_on_session_created**\ (\ session\: :ref:`int<class_int>`\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_session_created>`
  212. Called right after the OpenXR session is created.
  213. .. rst-class:: classref-item-separator
  214. ----
  215. .. _class_OpenXRExtensionWrapperExtension_private_method__on_session_destroyed:
  216. .. rst-class:: classref-method
  217. |void| **_on_session_destroyed**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_session_destroyed>`
  218. Called right before the OpenXR session is destroyed.
  219. .. rst-class:: classref-item-separator
  220. ----
  221. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_exiting:
  222. .. rst-class:: classref-method
  223. |void| **_on_state_exiting**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_exiting>`
  224. Called when the OpenXR session state is changed to exiting.
  225. .. rst-class:: classref-item-separator
  226. ----
  227. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_focused:
  228. .. rst-class:: classref-method
  229. |void| **_on_state_focused**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_focused>`
  230. Called when the OpenXR session state is changed to focused. This state is the active state when the game runs.
  231. .. rst-class:: classref-item-separator
  232. ----
  233. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_idle:
  234. .. rst-class:: classref-method
  235. |void| **_on_state_idle**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_idle>`
  236. Called when the OpenXR session state is changed to idle.
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_loss_pending:
  240. .. rst-class:: classref-method
  241. |void| **_on_state_loss_pending**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_loss_pending>`
  242. Called when the OpenXR session state is changed to loss pending.
  243. .. rst-class:: classref-item-separator
  244. ----
  245. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_ready:
  246. .. rst-class:: classref-method
  247. |void| **_on_state_ready**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_ready>`
  248. Called when the OpenXR session state is changed to ready. This means OpenXR is ready to set up the session.
  249. .. rst-class:: classref-item-separator
  250. ----
  251. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_stopping:
  252. .. rst-class:: classref-method
  253. |void| **_on_state_stopping**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_stopping>`
  254. Called when the OpenXR session state is changed to stopping.
  255. .. rst-class:: classref-item-separator
  256. ----
  257. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_synchronized:
  258. .. rst-class:: classref-method
  259. |void| **_on_state_synchronized**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_synchronized>`
  260. Called when the OpenXR session state is changed to synchronized. OpenXR also returns to this state when the application loses focus.
  261. .. rst-class:: classref-item-separator
  262. ----
  263. .. _class_OpenXRExtensionWrapperExtension_private_method__on_state_visible:
  264. .. rst-class:: classref-method
  265. |void| **_on_state_visible**\ (\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_state_visible>`
  266. Called when the OpenXR session state is changed to visible. This means OpenXR is now ready to receive frames.
  267. .. rst-class:: classref-item-separator
  268. ----
  269. .. _class_OpenXRExtensionWrapperExtension_private_method__on_viewport_composition_layer_destroyed:
  270. .. rst-class:: classref-method
  271. |void| **_on_viewport_composition_layer_destroyed**\ (\ layer\: ``const void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__on_viewport_composition_layer_destroyed>`
  272. Called when a composition layer created via :ref:`OpenXRCompositionLayer<class_OpenXRCompositionLayer>` is destroyed.
  273. \ ``layer`` is a pointer to an ``XrCompositionLayerBaseHeader`` struct.
  274. .. rst-class:: classref-item-separator
  275. ----
  276. .. _class_OpenXRExtensionWrapperExtension_private_method__set_android_surface_swapchain_create_info_and_get_next_pointer:
  277. .. rst-class:: classref-method
  278. :ref:`int<class_int>` **_set_android_surface_swapchain_create_info_and_get_next_pointer**\ (\ property_values\: :ref:`Dictionary<class_Dictionary>`, next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_android_surface_swapchain_create_info_and_get_next_pointer>`
  279. Adds additional data structures to Android surface swapchains created by :ref:`OpenXRCompositionLayer<class_OpenXRCompositionLayer>`.
  280. \ ``property_values`` contains the values of the properties returned by :ref:`_get_viewport_composition_layer_extension_properties<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_properties>`.
  281. .. rst-class:: classref-item-separator
  282. ----
  283. .. _class_OpenXRExtensionWrapperExtension_private_method__set_hand_joint_locations_and_get_next_pointer:
  284. .. rst-class:: classref-method
  285. :ref:`int<class_int>` **_set_hand_joint_locations_and_get_next_pointer**\ (\ hand_index\: :ref:`int<class_int>`, next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_hand_joint_locations_and_get_next_pointer>`
  286. Adds additional data structures when each hand tracker is created.
  287. .. rst-class:: classref-item-separator
  288. ----
  289. .. _class_OpenXRExtensionWrapperExtension_private_method__set_instance_create_info_and_get_next_pointer:
  290. .. rst-class:: classref-method
  291. :ref:`int<class_int>` **_set_instance_create_info_and_get_next_pointer**\ (\ next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_instance_create_info_and_get_next_pointer>`
  292. Adds additional data structures when the OpenXR instance is created.
  293. .. rst-class:: classref-item-separator
  294. ----
  295. .. _class_OpenXRExtensionWrapperExtension_private_method__set_session_create_and_get_next_pointer:
  296. .. rst-class:: classref-method
  297. :ref:`int<class_int>` **_set_session_create_and_get_next_pointer**\ (\ next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_session_create_and_get_next_pointer>`
  298. Adds additional data structures when the OpenXR session is created.
  299. .. rst-class:: classref-item-separator
  300. ----
  301. .. _class_OpenXRExtensionWrapperExtension_private_method__set_swapchain_create_info_and_get_next_pointer:
  302. .. rst-class:: classref-method
  303. :ref:`int<class_int>` **_set_swapchain_create_info_and_get_next_pointer**\ (\ next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_swapchain_create_info_and_get_next_pointer>`
  304. Adds additional data structures when creating OpenXR swapchains.
  305. .. rst-class:: classref-item-separator
  306. ----
  307. .. _class_OpenXRExtensionWrapperExtension_private_method__set_system_properties_and_get_next_pointer:
  308. .. rst-class:: classref-method
  309. :ref:`int<class_int>` **_set_system_properties_and_get_next_pointer**\ (\ next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_system_properties_and_get_next_pointer>`
  310. Adds additional data structures when querying OpenXR system abilities.
  311. .. rst-class:: classref-item-separator
  312. ----
  313. .. _class_OpenXRExtensionWrapperExtension_private_method__set_viewport_composition_layer_and_get_next_pointer:
  314. .. rst-class:: classref-method
  315. :ref:`int<class_int>` **_set_viewport_composition_layer_and_get_next_pointer**\ (\ layer\: ``const void*``, property_values\: :ref:`Dictionary<class_Dictionary>`, next_pointer\: ``void*``\ ) |virtual| :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_private_method__set_viewport_composition_layer_and_get_next_pointer>`
  316. Adds additional data structures to composition layers created by :ref:`OpenXRCompositionLayer<class_OpenXRCompositionLayer>`.
  317. \ ``property_values`` contains the values of the properties returned by :ref:`_get_viewport_composition_layer_extension_properties<class_OpenXRExtensionWrapperExtension_private_method__get_viewport_composition_layer_extension_properties>`.
  318. \ ``layer`` is a pointer to an ``XrCompositionLayerBaseHeader`` struct.
  319. .. rst-class:: classref-item-separator
  320. ----
  321. .. _class_OpenXRExtensionWrapperExtension_method_get_openxr_api:
  322. .. rst-class:: classref-method
  323. :ref:`OpenXRAPIExtension<class_OpenXRAPIExtension>` **get_openxr_api**\ (\ ) :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_method_get_openxr_api>`
  324. Returns the created :ref:`OpenXRAPIExtension<class_OpenXRAPIExtension>`, which can be used to access the OpenXR API.
  325. .. rst-class:: classref-item-separator
  326. ----
  327. .. _class_OpenXRExtensionWrapperExtension_method_register_extension_wrapper:
  328. .. rst-class:: classref-method
  329. |void| **register_extension_wrapper**\ (\ ) :ref:`๐Ÿ”—<class_OpenXRExtensionWrapperExtension_method_register_extension_wrapper>`
  330. Registers the extension. This should happen at core module initialization level.
  331. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  332. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  333. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  334. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  335. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  336. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  337. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  338. .. |void| replace:: :abbr:`void (No return value.)`