XRInterfaceExtension

Inherits: XRInterface < RefCounted < Object

Base class for XR interface extensions (plugins).

Description

External XR interface plugins should inherit from this class.

Methods

void

_commit_views ( RID render_target, Rect2 screen_rect ) virtual

bool

_get_anchor_detection_is_enabled ( ) virtual const

int

_get_camera_feed_id ( ) virtual const

Transform3D

_get_camera_transform ( ) virtual

int

_get_capabilities ( ) virtual const

StringName

_get_name ( ) virtual const

PackedVector3Array

_get_play_area ( ) virtual const

int

_get_play_area_mode ( ) virtual const

PackedFloat64Array

_get_projection_for_view ( int view, float aspect, float z_near, float z_far ) virtual

Vector2

_get_render_target_size ( ) virtual

PackedStringArray

_get_suggested_pose_names ( StringName tracker_name ) virtual const

PackedStringArray

_get_suggested_tracker_names ( ) virtual const

int

_get_tracking_status ( ) virtual const

Transform3D

_get_transform_for_view ( int view, Transform3D cam_transform ) virtual

int

_get_view_count ( ) virtual

bool

_initialize ( ) virtual

bool

_is_initialized ( ) virtual const

void

_notification ( int what ) virtual

void

_process ( ) virtual

void

_set_anchor_detection_is_enabled ( bool enabled ) virtual

bool

_set_play_area_mode ( int mode ) virtual const

bool

_supports_play_area_mode ( PlayAreaMode mode ) virtual const

void

_trigger_haptic_pulse ( String action_name, StringName tracker_name, float frequency, float amplitude, float duration_sec, float delay_sec ) virtual

void

_uninitialize ( ) virtual

void

add_blit ( RID render_target, Rect2 src_rect, Rect2i dst_rect, bool use_layer, int layer, bool apply_lens_distortion, Vector2 eye_center, float k1, float k2, float upscale, float aspect_ratio )

RID

get_render_target_texture ( RID render_target )

Method Descriptions

  • void _commit_views ( RID render_target, Rect2 screen_rect ) virtual


  • bool _get_anchor_detection_is_enabled ( ) virtual const


  • int _get_camera_feed_id ( ) virtual const



  • int _get_capabilities ( ) virtual const




  • int _get_play_area_mode ( ) virtual const



  • Vector2 _get_render_target_size ( ) virtual




  • int _get_tracking_status ( ) virtual const



  • int _get_view_count ( ) virtual


  • bool _initialize ( ) virtual


  • bool _is_initialized ( ) virtual const


  • void _notification ( int what ) virtual


  • void _process ( ) virtual


  • void _set_anchor_detection_is_enabled ( bool enabled ) virtual


  • bool _set_play_area_mode ( int mode ) virtual const




  • void _uninitialize ( ) virtual


Blits our render results to screen optionally applying lens distortion. This can only be called while processing _commit_views.


  • RID get_render_target_texture ( RID render_target )