Package org.lwjgl.openxr
Class XrHandTrackingAimStateFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandTrackingAimStateFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandTrackingAimStateFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCurrent aiming gesture state for the hand.Valid Usage (Implicit)
- The
XR_FB_hand_tracking_aimextension must be enabled prior to usingXrHandTrackingAimStateFB typemust beTYPE_HAND_TRACKING_AIM_STATE_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrHandTrackingAimStateFB { XrStructureTypetype(); void *next(); XrHandTrackingAimFlagsFBstatus();XrPosefaimPose(); floatpinchStrengthIndex(); floatpinchStrengthMiddle(); floatpinchStrengthRing(); floatpinchStrengthLittle(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandTrackingAimStateFB.BufferAn array ofXrHandTrackingAimStateFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intAIMPOSEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intNEXT
PINCHSTRENGTHINDEX
PINCHSTRENGTHLITTLE
PINCHSTRENGTHMIDDLE
PINCHSTRENGTHRINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTATUS
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrHandTrackingAimStateFB(java.nio.ByteBuffer container)Creates aXrHandTrackingAimStateFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XrPosefaimPose()a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data.static XrHandTrackingAimStateFBcalloc()Returns a newXrHandTrackingAimStateFBinstance allocated withmemCalloc.static XrHandTrackingAimStateFB.Buffercalloc(int capacity)Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated withmemCalloc.static XrHandTrackingAimStateFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandTrackingAimStateFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingAimStateFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandTrackingAimStateFBcreate()Returns a newXrHandTrackingAimStateFBinstance allocated withBufferUtils.static XrHandTrackingAimStateFB.Buffercreate(int capacity)Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated withBufferUtils.static XrHandTrackingAimStateFBcreate(long address)Returns a newXrHandTrackingAimStateFBinstance for the specified memory address.static XrHandTrackingAimStateFB.Buffercreate(long address, int capacity)Create aXrHandTrackingAimStateFB.Bufferinstance at the specified memory.static XrHandTrackingAimStateFBcreateSafe(long address)static XrHandTrackingAimStateFB.BuffercreateSafe(long address, int capacity)static XrHandTrackingAimStateFBmalloc()Returns a newXrHandTrackingAimStateFBinstance allocated withmemAlloc.static XrHandTrackingAimStateFB.Buffermalloc(int capacity)Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated withmemAlloc.static XrHandTrackingAimStateFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated on the specifiedMemoryStack.static XrHandTrackingAimStateFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingAimStateFBinstance allocated on the specifiedMemoryStack.static XrPosefnaimPose(long struct)Unsafe version ofaimPose().longnext()NULLor a pointer to the next structure in a structure chain.XrHandTrackingAimStateFBnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static floatnpinchStrengthIndex(long struct)Unsafe version ofpinchStrengthIndex().static floatnpinchStrengthLittle(long struct)Unsafe version ofpinchStrengthLittle().static floatnpinchStrengthMiddle(long struct)Unsafe version ofpinchStrengthMiddle().static floatnpinchStrengthRing(long struct)Unsafe version ofpinchStrengthRing().static longnstatus(long struct)Unsafe version ofstatus().static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.floatpinchStrengthIndex()the current pinching strength for the index finger of this hand.floatpinchStrengthLittle()the current pinching strength for the little finger of this hand.floatpinchStrengthMiddle()the current pinching strength for the middle finger of this hand.floatpinchStrengthRing()the current pinching strength for the ring finger of this hand.XrHandTrackingAimStateFBset(int type, long next)Initializes this struct with the specified values.XrHandTrackingAimStateFBset(XrHandTrackingAimStateFB src)Copies the specified struct data to this struct.intsizeof()longstatus()a bitmask ofXrHandTrackingAimFlagBitsFBdescribing the availability and state of other signals.inttype()theXrStructureTypeof this structure.XrHandTrackingAimStateFBtype(int value)Sets the specified value to thetype()field.XrHandTrackingAimStateFBtype$Default()Sets theTYPE_HAND_TRACKING_AIM_STATE_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrHandTrackingAimStateFB
public XrHandTrackingAimStateFB(java.nio.ByteBuffer container)
Creates aXrHandTrackingAimStateFBinstance 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.
-
status
public long status()
a bitmask ofXrHandTrackingAimFlagBitsFBdescribing the availability and state of other signals.
-
aimPose
public XrPosef aimPose()
a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data.
-
pinchStrengthIndex
public float pinchStrengthIndex()
the current pinching strength for the index finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning index and thumb are fully touching.
-
pinchStrengthMiddle
public float pinchStrengthMiddle()
the current pinching strength for the middle finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning middle and thumb are fully touching.
-
pinchStrengthRing
public float pinchStrengthRing()
the current pinching strength for the ring finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning ring and thumb are fully touching.
-
pinchStrengthLittle
public float pinchStrengthLittle()
the current pinching strength for the little finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning little and thumb are fully touching.
-
type
public XrHandTrackingAimStateFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrHandTrackingAimStateFB type$Default()
Sets theTYPE_HAND_TRACKING_AIM_STATE_FBvalue to thetype()field.
-
next
public XrHandTrackingAimStateFB next(long value)
Sets the specified value to thenext()field.
-
set
public XrHandTrackingAimStateFB set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrHandTrackingAimStateFB set(XrHandTrackingAimStateFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandTrackingAimStateFB malloc()
Returns a newXrHandTrackingAimStateFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandTrackingAimStateFB calloc()
Returns a newXrHandTrackingAimStateFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandTrackingAimStateFB create()
Returns a newXrHandTrackingAimStateFBinstance allocated withBufferUtils.
-
create
public static XrHandTrackingAimStateFB create(long address)
Returns a newXrHandTrackingAimStateFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandTrackingAimStateFB createSafe(long address)
-
malloc
public static XrHandTrackingAimStateFB.Buffer malloc(int capacity)
Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandTrackingAimStateFB.Buffer calloc(int capacity)
Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandTrackingAimStateFB.Buffer create(int capacity)
Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandTrackingAimStateFB.Buffer create(long address, int capacity)
Create aXrHandTrackingAimStateFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandTrackingAimStateFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandTrackingAimStateFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingAimStateFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandTrackingAimStateFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingAimStateFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandTrackingAimStateFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingAimStateFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandTrackingAimStateFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingAimStateFB.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().
-
nstatus
public static long nstatus(long struct)
Unsafe version ofstatus().
-
npinchStrengthIndex
public static float npinchStrengthIndex(long struct)
Unsafe version ofpinchStrengthIndex().
-
npinchStrengthMiddle
public static float npinchStrengthMiddle(long struct)
Unsafe version ofpinchStrengthMiddle().
-
npinchStrengthRing
public static float npinchStrengthRing(long struct)
Unsafe version ofpinchStrengthRing().
-
npinchStrengthLittle
public static float npinchStrengthLittle(long struct)
Unsafe version ofpinchStrengthLittle().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-