Package org.lwjgl.openxr
Class FBPassthroughKeyboardHands
java.lang.Object
org.lwjgl.openxr.FBPassthroughKeyboardHands
The XR_FB_passthrough_keyboard_hands extension.
This extension enables applications to show passthrough hands when hands are placed over the tracked keyboard. It enables users to see their hands over the keyboard in a mixed reality application. This extension is dependent on XR_FB_passthrough extension which can be used to create a passthrough layer for hand presence use-case.
The extension supports a single pair of hands (one left and one right hand), multiple pair of hands are not supported.
This extension allows:
- Creation of keyboard hands passthrough layer using
CreatePassthroughLayerFB - Setting the level of intensity for the hand mask in a passthrough layer with purpose
XrPassthroughLayerPurposeFBasPASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FBorPASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrPassthroughLayerPurposeFB.static final intExtendsXrPassthroughLayerPurposeFB.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, long intensity) Unsafe version of:PassthroughLayerSetKeyboardHandsIntensityFBstatic intxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, XrPassthroughKeyboardHandsIntensityFB intensity) Renders hands over the keyboard (keyboard hands) with a specific intensity of hands passthrough layer.
-
Field Details
-
XR_FB_passthrough_keyboard_hands_SPEC_VERSION
public static final int XR_FB_passthrough_keyboard_hands_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_PASSTHROUGH_KEYBOARD_HANDS_EXTENSION_NAME
The extension name.- See Also:
-
XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB
public static final int XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FBExtendsXrPassthroughLayerPurposeFB.Enum values:
- See Also:
-
XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB
public static final int XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FBExtendsXrPassthroughLayerPurposeFB.Enum values:
- See Also:
-
XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB
public static final int XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FBExtendsXrStructureType.- See Also:
-
-
Method Details
-
nxrPassthroughLayerSetKeyboardHandsIntensityFB
public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, long intensity) Unsafe version of:PassthroughLayerSetKeyboardHandsIntensityFB -
xrPassthroughLayerSetKeyboardHandsIntensityFB
public static int xrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, XrPassthroughKeyboardHandsIntensityFB intensity) Renders hands over the keyboard (keyboard hands) with a specific intensity of hands passthrough layer.C Specification
The
PassthroughLayerSetKeyboardHandsIntensityFBfunction is defined as:XrResult xrPassthroughLayerSetKeyboardHandsIntensityFB( XrPassthroughLayerFB layer, const XrPassthroughKeyboardHandsIntensityFB* intensity);Description
Sets an
XrPassthroughKeyboardHandsIntensityFBintensity on anXrPassthroughLayerFBlayer.Valid Usage (Implicit)
- The
XR_FB_passthrough_keyboard_handsextension must be enabled prior to callingPassthroughLayerSetKeyboardHandsIntensityFB layermust be a validXrPassthroughLayerFBhandleintensitymust be a pointer to a validXrPassthroughKeyboardHandsIntensityFBstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
layer- theXrPassthroughLayerFBto apply the intensity.intensity- theXrPassthroughKeyboardHandsIntensityFBto be set.
- The
-