OpenXRAndroidEnvironmentDepthExtensionWrapper

Inherits: OpenXRExtensionWrapperExtension

Wraps the XR_ANDROID_depth_texture extension.

Description

Wraps the XR_ANDROID_depth_texture extension.

Methods

Array

get_supported_resolutions ( ) const

bool

is_environment_depth_started ( )

bool

is_environment_depth_supported ( )

bool

set_resolution ( DepthCameraResolution resolution )

bool

set_smooth ( bool smooth )

bool

start_environment_depth ( )

void

stop_environment_depth ( )


Signals

openxr_android_environment_depth_started ( )

Emitted after environment depth successfully starts.


openxr_android_environment_depth_stopped ( )

Emitted after environment depth successfully stops.


Enumerations

enum DepthCameraResolution:

DepthCameraResolution DEPTH_CAMERA_RESOLUTION_80x80 = 0

DepthCameraResolution DEPTH_CAMERA_RESOLUTION_160x160 = 1

DepthCameraResolution DEPTH_CAMERA_RESOLUTION_320x320 = 2


Method Descriptions

Array get_supported_resolutions ( ) const

Return an Array of containing DepthCameraResolution, which are supported resolutions to use in set_resolution.


bool is_environment_depth_started ( )

Returns true if environment depth has been started; otherwise, false.


bool is_environment_depth_supported ( )

Returns true if environment depth is supported; otherwise, false.


bool set_resolution ( DepthCameraResolution resolution )

Set the desired depth texture resolution to retrieve in the next frame.

Default is DEPTH_CAMERA_RESOLUTION_320x320.


bool set_smooth ( bool smooth )

Set whether the depth texture should be smooth or not.

Default is false.


bool start_environment_depth ( )

Starts environment depth.


void stop_environment_depth ( )

Stops environment depth.