Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
Makes the OpenXR API available for GDExtension.
It also provides methods for querying the status of OpenXR initialization, and helper methods for ease of use of the API with GDExtension.
can_render ( )
get_instance ( )
get_play_space ( )
get_session ( )
get_system_id ( )
is_initialized ( )
is_running ( )
transform_from_pose ( const void* pose )
bool can_render ( )
true if OpenXR is initialized for rendering with an XR viewport.
Returns an error string for the given XrResult.
int get_instance ( )
Returns the XrInstance created during the initialization of the OpenXR API.
Returns the function pointer of the OpenXR function with the specified name, cast to an integer. If the function with the given name does not exist, the method returns
openxr/util.h contains utility macros for acquiring OpenXR functions, e.g.
int get_next_frame_time ( )
Returns the timing for the next frame.
int get_play_space ( )
Returns the play space, which is an XrSpace cast to an integer.
int get_session ( )
Returns the OpenXR session, which is an XrSession cast to an integer.
Returns the name of the specified swapchain format.
int get_system_id ( )
Returns the id of the system, which is a XrSystemId cast to an integer.
bool is_initialized ( )
true if OpenXR is initialized.
bool is_running ( )
true if OpenXR is running (xrBeginSession was successfully called and the swapchains were created).
true if OpenXR is enabled.
Transform3D transform_from_pose ( const void* pose )