Class XrHandTrackingAimStateFB

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, STATUS, AIMPOSE, PINCHSTRENGTHINDEX, PINCHSTRENGTHMIDDLE, PINCHSTRENGTHRING, PINCHSTRENGTHLITTLE

        The struct member offsets.
    • Constructor Detail

      • XrHandTrackingAimStateFB

        public XrHandTrackingAimStateFB​(java.nio.ByteBuffer container)
        Creates a XrHandTrackingAimStateFB instance at the current position of the specified ByteBuffer container. 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:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        the XrStructureType of this structure.
      • next

        public long next()
        NULL or 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 of XrHandTrackingAimFlagBitsFB describing 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.
      • set

        public XrHandTrackingAimStateFB set​(int type,
                                            long next)
        Initializes this struct with the specified values.
      • malloc

        public static XrHandTrackingAimStateFB malloc()
        Returns a new XrHandTrackingAimStateFB instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrHandTrackingAimStateFB calloc()
        Returns a new XrHandTrackingAimStateFB instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrHandTrackingAimStateFB create()
        Returns a new XrHandTrackingAimStateFB instance allocated with BufferUtils.
      • create

        public static XrHandTrackingAimStateFB create​(long address)
        Returns a new XrHandTrackingAimStateFB instance for the specified memory address.
      • malloc

        public static XrHandTrackingAimStateFB malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandTrackingAimStateFB instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrHandTrackingAimStateFB calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandTrackingAimStateFB instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrHandTrackingAimStateFB.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandTrackingAimStateFB.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntype

        public static int ntype​(long struct)
        Unsafe version of type().
      • nnext

        public static long nnext​(long struct)
        Unsafe version of next().
      • nstatus

        public static long nstatus​(long struct)
        Unsafe version of status().
      • naimPose

        public static XrPosef naimPose​(long struct)
        Unsafe version of aimPose().
      • npinchStrengthIndex

        public static float npinchStrengthIndex​(long struct)
        Unsafe version of pinchStrengthIndex().
      • npinchStrengthMiddle

        public static float npinchStrengthMiddle​(long struct)
        Unsafe version of pinchStrengthMiddle().
      • npinchStrengthRing

        public static float npinchStrengthRing​(long struct)
        Unsafe version of pinchStrengthRing().
      • npinchStrengthLittle

        public static float npinchStrengthLittle​(long struct)
        Unsafe version of pinchStrengthLittle().
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.
      • nnext

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.