Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class HTCPassthrough

extends Object
Class Inheritance
Imports
org.lwjgl.*, org.lwjgl.system.*

The XR_HTC_passthrough extension.

This extension enables an application to show the passthrough image to see the surrounding environment from the VR headset. The application is allowed to configure the passthrough image with the different appearances according to the demand of the application.

The passthrough configurations that runtime provides to applications contain:

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
XR_HTC_passthrough_SPEC_VERSION

The extension specification version.

public static final int
XR_OBJECT_TYPE_PASSTHROUGH_HTC

Extends XrObjectType.

public static final int
XR_PASSTHROUGH_FORM_PLANAR_HTC

XrPassthroughFormHTC - Describes the form of passthrough.

public static final int
XR_PASSTHROUGH_FORM_PROJECTED_HTC

XrPassthroughFormHTC - Describes the form of passthrough.

public static final int
public static final int
XR_TYPE_PASSTHROUGH_COLOR_HTC

Extends XrStructureType.

public static final int
XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC

Extends XrStructureType.

public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough)

Unsafe version of: CreatePassthroughHTC

public static int
xrCreatePassthroughHTC(XrSession
an XrSession in which the passthrough will be active.
session
,
XrPassthroughCreateInfoHTC
a pointer to an XrPassthroughCreateInfoHTC structure containing information about how to create the passthrough.
createInfo
,
PointerBuffer
a pointer to a handle in which the created XrPassthroughHTC is returned.
passthrough
)

Create a passthrough handle.

public static int
xrDestroyPassthroughHTC(XrPassthroughHTC
the XrPassthroughHTC to be destroyed.
passthrough
)

Destroy a passthrough handle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_HTC_PASSTHROUGH_EXTENSION_NAMEback to summary
public static final String XR_HTC_PASSTHROUGH_EXTENSION_NAME

The extension name.

XR_HTC_passthrough_SPEC_VERSIONback to summary
public static final int XR_HTC_passthrough_SPEC_VERSION

The extension specification version.

XR_OBJECT_TYPE_PASSTHROUGH_HTCback to summary
public static final int XR_OBJECT_TYPE_PASSTHROUGH_HTC

Extends XrObjectType.

XR_PASSTHROUGH_FORM_PLANAR_HTCback to summary
public static final int XR_PASSTHROUGH_FORM_PLANAR_HTC

XrPassthroughFormHTC - Describes the form of passthrough.

Enumerant Descriptions
See Also

XrPassthroughCreateInfoHTC

XR_PASSTHROUGH_FORM_PROJECTED_HTCback to summary
public static final int XR_PASSTHROUGH_FORM_PROJECTED_HTC

XrPassthroughFormHTC - Describes the form of passthrough.

Enumerant Descriptions
See Also

XrPassthroughCreateInfoHTC

XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTCback to summary
public static final int XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC

Extends XrStructureType.

Enum values:
XR_TYPE_PASSTHROUGH_COLOR_HTCback to summary
public static final int XR_TYPE_PASSTHROUGH_COLOR_HTC

Extends XrStructureType.

Enum values:
XR_TYPE_PASSTHROUGH_CREATE_INFO_HTCback to summary
public static final int XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC

Extends XrStructureType.

Enum values:
XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTCback to summary
public static final int XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC

Extends XrStructureType.

Enum values:

Constructor Detail

HTCPassthroughback to summary
protected HTCPassthrough()

Method Detail

nxrCreatePassthroughHTCback to summary
public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough)

Unsafe version of: CreatePassthroughHTC

xrCreatePassthroughHTCback to summary
public static int xrCreatePassthroughHTC(XrSession session, XrPassthroughCreateInfoHTC createInfo, PointerBuffer passthrough)

Create a passthrough handle.

C Specification

The CreatePassthroughHTC function is defined as:


XrResult xrCreatePassthroughHTC(
    XrSession                                   session,
    const XrPassthroughCreateInfoHTC*           createInfo,
    XrPassthroughHTC*                           passthrough);
Description

Creates an XrPassthroughHTC handle.

If the function successfully returned, the output passthrough must be a valid handle.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrPassthroughCreateInfoHTC

Parameters
session:XrSession

an XrSession in which the passthrough will be active.

createInfo:XrPassthroughCreateInfoHTC

a pointer to an XrPassthroughCreateInfoHTC structure containing information about how to create the passthrough.

passthrough:PointerBuffer

a pointer to a handle in which the created XrPassthroughHTC is returned.

Annotations
@NativeType:XrResult
xrDestroyPassthroughHTCback to summary
public static int xrDestroyPassthroughHTC(XrPassthroughHTC passthrough)

Destroy a passthrough handle.

C Specification

The DestroyPassthroughHTC function is defined as:


XrResult xrDestroyPassthroughHTC(
    XrPassthroughHTC                            passthrough);
Description

The DestroyPassthroughHTC function releases the passthrough and the underlying resources.

Valid Usage (Implicit)
Thread Safety
  • Access to passthrough, and any child handles, must be externally synchronized
Return Codes
On success, this command returns
On failure, this command returns
Parameters
passthrough:XrPassthroughHTC

the XrPassthroughHTC to be destroyed.

Annotations
@NativeType:XrResult