Package org.lwjgl.openxr
Class HTCPassthrough
java.lang.Object
org.lwjgl.openxr.HTCPassthrough
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:
- Decide the passthrough layer shown over or under the frame submitted by the application.
- Specify the passthrough form with full of the entire screen or projection onto the mesh specified by the application.
- Set the alpha blending level for the composition of the passthrough layer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrObjectType.static final intXrPassthroughFormHTC - Describes the form of passthrough.static final intXrPassthroughFormHTC - Describes the form of passthrough.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough) Unsafe version of:CreatePassthroughHTCstatic intxrCreatePassthroughHTC(XrSession session, XrPassthroughCreateInfoHTC createInfo, org.lwjgl.PointerBuffer passthrough) Create a passthrough handle.static intxrDestroyPassthroughHTC(XrPassthroughHTC passthrough) Destroy a passthrough handle.
-
Field Details
-
XR_HTC_passthrough_SPEC_VERSION
public static final int XR_HTC_passthrough_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_HTC_PASSTHROUGH_EXTENSION_NAME
The extension name.- See Also:
-
XR_OBJECT_TYPE_PASSTHROUGH_HTC
public static final int XR_OBJECT_TYPE_PASSTHROUGH_HTCExtendsXrObjectType.- See Also:
-
XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC
public static final int XR_TYPE_PASSTHROUGH_CREATE_INFO_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PASSTHROUGH_COLOR_HTC
public static final int XR_TYPE_PASSTHROUGH_COLOR_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC
public static final int XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC
public static final int XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_PASSTHROUGH_FORM_PLANAR_HTC
public static final int XR_PASSTHROUGH_FORM_PLANAR_HTCXrPassthroughFormHTC - Describes the form of passthrough.Enumerant Descriptions
PASSTHROUGH_FORM_PLANAR_HTC— Presents the passthrough with full of the entire screen.PASSTHROUGH_FORM_PROJECTED_HTC— Presents the passthrough projecting onto a custom mesh.
See Also
- See Also:
-
XR_PASSTHROUGH_FORM_PROJECTED_HTC
public static final int XR_PASSTHROUGH_FORM_PROJECTED_HTCXrPassthroughFormHTC - Describes the form of passthrough.Enumerant Descriptions
PASSTHROUGH_FORM_PLANAR_HTC— Presents the passthrough with full of the entire screen.PASSTHROUGH_FORM_PROJECTED_HTC— Presents the passthrough projecting onto a custom mesh.
See Also
- See Also:
-
-
Method Details
-
nxrCreatePassthroughHTC
Unsafe version of:CreatePassthroughHTC -
xrCreatePassthroughHTC
public static int xrCreatePassthroughHTC(XrSession session, XrPassthroughCreateInfoHTC createInfo, org.lwjgl.PointerBuffer passthrough) Create a passthrough handle.C Specification
The
CreatePassthroughHTCfunction is defined as:XrResult xrCreatePassthroughHTC( XrSession session, const XrPassthroughCreateInfoHTC* createInfo, XrPassthroughHTC* passthrough);Description
Creates an
XrPassthroughHTChandle.If the function successfully returned, the output
passthroughmust be a valid handle.Valid Usage (Implicit)
- The
XR_HTC_passthroughextension must be enabled prior to callingCreatePassthroughHTC sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrPassthroughCreateInfoHTCstructurepassthroughmust be a pointer to anXrPassthroughHTChandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- anXrSessionin which the passthrough will be active.createInfo- a pointer to anXrPassthroughCreateInfoHTCstructure containing information about how to create the passthrough.passthrough- a pointer to a handle in which the createdXrPassthroughHTCis returned.
- The
-
xrDestroyPassthroughHTC
Destroy a passthrough handle.C Specification
The
DestroyPassthroughHTCfunction is defined as:XrResult xrDestroyPassthroughHTC( XrPassthroughHTC passthrough);Description
The
DestroyPassthroughHTCfunction releases the passthrough and the underlying resources.Valid Usage (Implicit)
- The
XR_HTC_passthroughextension must be enabled prior to callingDestroyPassthroughHTC passthroughmust be a validXrPassthroughHTChandle
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- theXrPassthroughHTCto be destroyed.
- The
-