Class XrPassthroughKeyboardHandsIntensityFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrPassthroughKeyboardHandsIntensityFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrPassthroughKeyboardHandsIntensityFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA struct for setting the level of intensity for hands in the passthrough layer.Description
XrPassthroughKeyboardHandsIntensityFBdescribes intensities of passthrough hands, and is used as a parameter toPassthroughLayerSetKeyboardHandsIntensityFB.Each of the intensity values
leftHandIntensityandrightHandIntensitymust be in the range [0.0, 1.0]. The hand intensity value represents the level of visibility of rendered hand, the minimal value of the intensity 0.0 represents the fully transparent hand (not visible), the maximal value of 1.0 represented fully opaque hands (maximal visibility).If either
leftHandIntensityorrightHandIntensityis outside the range [0.0, 1.0], the runtime must returnERROR_VALIDATION_FAILURE.Valid Usage (Implicit)
- The
XR_FB_passthrough_keyboard_handsextension must be enabled prior to usingXrPassthroughKeyboardHandsIntensityFB typemust beTYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
PassthroughLayerSetKeyboardHandsIntensityFBLayout
struct XrPassthroughKeyboardHandsIntensityFB { XrStructureTypetype(); void const *next(); floatleftHandIntensity(); floatrightHandIntensity(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrPassthroughKeyboardHandsIntensityFB.BufferAn array ofXrPassthroughKeyboardHandsIntensityFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLEFTHANDINTENSITY
NEXT
RIGHTHANDINTENSITYThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrPassthroughKeyboardHandsIntensityFB(java.nio.ByteBuffer container)Creates aXrPassthroughKeyboardHandsIntensityFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrPassthroughKeyboardHandsIntensityFBcalloc()Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated withmemCalloc.static XrPassthroughKeyboardHandsIntensityFB.Buffercalloc(int capacity)Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated withmemCalloc.static XrPassthroughKeyboardHandsIntensityFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughKeyboardHandsIntensityFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughKeyboardHandsIntensityFBcreate()Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated withBufferUtils.static XrPassthroughKeyboardHandsIntensityFB.Buffercreate(int capacity)Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated withBufferUtils.static XrPassthroughKeyboardHandsIntensityFBcreate(long address)Returns a newXrPassthroughKeyboardHandsIntensityFBinstance for the specified memory address.static XrPassthroughKeyboardHandsIntensityFB.Buffercreate(long address, int capacity)Create aXrPassthroughKeyboardHandsIntensityFB.Bufferinstance at the specified memory.static XrPassthroughKeyboardHandsIntensityFBcreateSafe(long address)static XrPassthroughKeyboardHandsIntensityFB.BuffercreateSafe(long address, int capacity)floatleftHandIntensity()defines an intensity for the left tracked hand.XrPassthroughKeyboardHandsIntensityFBleftHandIntensity(float value)Sets the specified value to theleftHandIntensity()field.static XrPassthroughKeyboardHandsIntensityFBmalloc()Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated withmemAlloc.static XrPassthroughKeyboardHandsIntensityFB.Buffermalloc(int capacity)Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated withmemAlloc.static XrPassthroughKeyboardHandsIntensityFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated on the specifiedMemoryStack.static XrPassthroughKeyboardHandsIntensityFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrPassthroughKeyboardHandsIntensityFBnext(long value)Sets the specified value to thenext()field.static floatnleftHandIntensity(long struct)Unsafe version ofleftHandIntensity().static voidnleftHandIntensity(long struct, float value)Unsafe version ofleftHandIntensity.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static floatnrightHandIntensity(long struct)Unsafe version ofrightHandIntensity().static voidnrightHandIntensity(long struct, float value)Unsafe version ofrightHandIntensity.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.floatrightHandIntensity()defines an intensity for the right tracked hand.XrPassthroughKeyboardHandsIntensityFBrightHandIntensity(float value)Sets the specified value to therightHandIntensity()field.XrPassthroughKeyboardHandsIntensityFBset(int type, long next, float leftHandIntensity, float rightHandIntensity)Initializes this struct with the specified values.XrPassthroughKeyboardHandsIntensityFBset(XrPassthroughKeyboardHandsIntensityFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrPassthroughKeyboardHandsIntensityFBtype(int value)Sets the specified value to thetype()field.XrPassthroughKeyboardHandsIntensityFBtype$Default()Sets theTYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrPassthroughKeyboardHandsIntensityFB
public XrPassthroughKeyboardHandsIntensityFB(java.nio.ByteBuffer container)
Creates aXrPassthroughKeyboardHandsIntensityFBinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
leftHandIntensity
public float leftHandIntensity()
defines an intensity for the left tracked hand.
-
rightHandIntensity
public float rightHandIntensity()
defines an intensity for the right tracked hand.
-
type
public XrPassthroughKeyboardHandsIntensityFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrPassthroughKeyboardHandsIntensityFB type$Default()
Sets theTYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FBvalue to thetype()field.
-
next
public XrPassthroughKeyboardHandsIntensityFB next(long value)
Sets the specified value to thenext()field.
-
leftHandIntensity
public XrPassthroughKeyboardHandsIntensityFB leftHandIntensity(float value)
Sets the specified value to theleftHandIntensity()field.
-
rightHandIntensity
public XrPassthroughKeyboardHandsIntensityFB rightHandIntensity(float value)
Sets the specified value to therightHandIntensity()field.
-
set
public XrPassthroughKeyboardHandsIntensityFB set(int type, long next, float leftHandIntensity, float rightHandIntensity)
Initializes this struct with the specified values.
-
set
public XrPassthroughKeyboardHandsIntensityFB set(XrPassthroughKeyboardHandsIntensityFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrPassthroughKeyboardHandsIntensityFB malloc()
Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrPassthroughKeyboardHandsIntensityFB calloc()
Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrPassthroughKeyboardHandsIntensityFB create()
Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated withBufferUtils.
-
create
public static XrPassthroughKeyboardHandsIntensityFB create(long address)
Returns a newXrPassthroughKeyboardHandsIntensityFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrPassthroughKeyboardHandsIntensityFB createSafe(long address)
-
malloc
public static XrPassthroughKeyboardHandsIntensityFB.Buffer malloc(int capacity)
Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrPassthroughKeyboardHandsIntensityFB.Buffer calloc(int capacity)
Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughKeyboardHandsIntensityFB.Buffer create(int capacity)
Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughKeyboardHandsIntensityFB.Buffer create(long address, int capacity)
Create aXrPassthroughKeyboardHandsIntensityFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrPassthroughKeyboardHandsIntensityFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrPassthroughKeyboardHandsIntensityFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrPassthroughKeyboardHandsIntensityFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughKeyboardHandsIntensityFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrPassthroughKeyboardHandsIntensityFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrPassthroughKeyboardHandsIntensityFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughKeyboardHandsIntensityFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nleftHandIntensity
public static float nleftHandIntensity(long struct)
Unsafe version ofleftHandIntensity().
-
nrightHandIntensity
public static float nrightHandIntensity(long struct)
Unsafe version ofrightHandIntensity().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nleftHandIntensity
public static void nleftHandIntensity(long struct, float value)Unsafe version ofleftHandIntensity.
-
nrightHandIntensity
public static void nrightHandIntensity(long struct, float value)Unsafe version ofrightHandIntensity.
-
-