OpenXRExtensionWrapperExtension¶
Inherits: Object
Allows clients to implement OpenXR extensions with GDExtension.
Description¶
OpenXRExtensionWrapperExtension allows clients to implement OpenXR extensions with GDExtension. The extension should be registered with register_extension_wrapper.
Methods¶
Method Descriptions¶
Dictionary _get_requested_extensions ( ) virtual
Returns a Dictionary of OpenXR extensions related to this extension. The Dictionary should contain the name of the extension, mapped to a bool *
cast to an integer:
If the
bool *
is anullptr
this extension is mandatory.If the
bool *
points to a boolean, the boolean will be updated totrue
if the extension is enabled.
void _on_before_instance_created ( ) virtual
Called before the OpenXR instance is created.
bool _on_event_polled ( const void* event ) virtual
Called when there is an OpenXR event to process. When implementing, return true
if the event was handled, return false
otherwise.
void _on_instance_created ( int instance ) virtual
Called right after the OpenXR instance is created.
void _on_instance_destroyed ( ) virtual
Called right before the OpenXR instance is destroyed.
void _on_pre_render ( ) virtual
Called right before the XR viewports begin their rendering step.
void _on_process ( ) virtual
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.
void _on_register_metadata ( ) virtual
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.
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.
void _on_session_created ( int session )